Namespaces | |
namespace | serial |
Classes | |
class | ArrayBuilder |
struct | InterfaceAddress |
Typedefs | |
typedef icl_core::Multimap < icl_core::String, InterfaceAddress > | InterfaceAddressMap |
Contains interface addresses sorted by interface name. | |
Functions | |
template<typename T > | |
size_t | fromLittleEndian (T &data, std::vector< uint8_t > &array, size_t &read_pos) |
template function for reating data out of an array while converting everything into correct endianess | |
template<> | |
size_t | fromLittleEndian< double > (double &data, std::vector< uint8_t > &array, size_t &read_pos) |
Template specialization for float as these have to be handled seperately. | |
template<> | |
size_t | fromLittleEndian< float > (float &data, std::vector< uint8_t > &array, size_t &read_pos) |
Template specialization for float as these have to be handled seperately. | |
InterfaceAddressMap | getInterfaceAddresses (bool ipv6_support) |
std::ostream & | operator<< (std::ostream &o, const ArrayBuilder &ab) |
debug output of array as hex values | |
template<typename T > | |
size_t | toLittleEndian (const T &data, std::vector< uint8_t > &array, size_t &write_pos) |
template function for adding data to an array while converting everything into correct endianess | |
template<> | |
size_t | toLittleEndian< double > (const double &data, std::vector< uint8_t > &array, size_t &write_pos) |
Template specialization for float as these have to be handled seperately. | |
template<> | |
size_t | toLittleEndian< float > (const float &data, std::vector< uint8_t > &array, size_t &write_pos) |
Template specialization for float as these have to be handled seperately. |
Contains interface addresses sorted by interface name.
Definition at line 47 of file InterfaceAddress.h.
size_t icl_comm::fromLittleEndian | ( | T & | data, |
std::vector< uint8_t > & | array, | ||
size_t & | read_pos | ||
) |
template function for reating data out of an array while converting everything into correct endianess
Definition at line 77 of file ByteOrderConversion.h.
ICL_COMM_IMPORT_EXPORT size_t icl_comm::fromLittleEndian< double > | ( | double & | data, |
std::vector< uint8_t > & | array, | ||
size_t & | read_pos | ||
) |
Template specialization for float as these have to be handled seperately.
As Bit Shifts for doubles are dissallowed they have to be given as reinterpreted value to currectly shift each byte individually
Definition at line 65 of file ByteOrderConversion.cpp.
ICL_COMM_IMPORT_EXPORT size_t icl_comm::fromLittleEndian< float > | ( | float & | data, |
std::vector< uint8_t > & | array, | ||
size_t & | read_pos | ||
) |
Template specialization for float as these have to be handled seperately.
As Bit Shifts for floats are dissallowed they have to be given as reinterpreted value to currectly shift each byte individually
Definition at line 58 of file ByteOrderConversion.cpp.
InterfaceAddressMap icl_comm::getInterfaceAddresses | ( | bool | ipv6_support | ) |
Definition at line 42 of file InterfaceAddress.cpp.
std::ostream & icl_comm::operator<< | ( | std::ostream & | o, |
const ArrayBuilder & | ab | ||
) |
debug output of array as hex values
Definition at line 31 of file ByteOrderConversion.cpp.
size_t icl_comm::toLittleEndian | ( | const T & | data, |
std::vector< uint8_t > & | array, | ||
size_t & | write_pos | ||
) |
template function for adding data to an array while converting everything into correct endianess
Definition at line 44 of file ByteOrderConversion.h.
ICL_COMM_IMPORT_EXPORT size_t icl_comm::toLittleEndian< double > | ( | const double & | data, |
std::vector< uint8_t > & | array, | ||
size_t & | write_pos | ||
) |
Template specialization for float as these have to be handled seperately.
As Bit Shifts for doubles are dissallowed they have to be given as reinterpreted value to currectly shift each byte individually
Definition at line 50 of file ByteOrderConversion.cpp.
ICL_COMM_IMPORT_EXPORT size_t icl_comm::toLittleEndian< float > | ( | const float & | data, |
std::vector< uint8_t > & | array, | ||
size_t & | write_pos | ||
) |
Template specialization for float as these have to be handled seperately.
As Bit Shifts for floats are dissallowed they have to be given as reinterpreted value to currectly shift each byte individually
Definition at line 43 of file ByteOrderConversion.cpp.