Static Public Member Functions
DataMangler Class Reference

#include <RobonetDataElement.h>

List of all members.

Static Public Member Functions

static uint32_t combineRawValues (std::pair< uint16_t, uint16_t > rawPair)
template<typename T >
static T fromUnsignedIntTo (uint32_t data)
 Convert a value from an unsigned integer to any specified data type.
static std::pair< uint16_t,
uint16_t > 
separateRawValues (uint32_t value)
template<typename T >
static uint32_t toUnsignedIntFrom (T value)
 Convert a value from any specified data type to an unsigned integer.

Detailed Description

Todo:
The DataMangler class needs a description.

Definition at line 26 of file RobonetDataElement.h.


Member Function Documentation

uint32_t DataMangler::combineRawValues ( std::pair< uint16_t, uint16_t >  rawPair) [static]
Todo:
The DataMangler::combineRawValues method needs a description

Definition at line 20 of file RobonetDataElement.cpp.

bool DataMangler::fromUnsignedIntTo< bool > ( uint32_t  data) [inline, static]

Convert a value from an unsigned integer to any specified data type.

Parameters:
dataThe unsigned integer value.
Returns:
static T The value in the specified data type.

Uses the "void pointer" method of conversion.

Parameters:
dataThe unsigned integer value.
Returns:
static T The value in the specified data type.

boolean conversion based on C++ spec.

Definition at line 42 of file RobonetDataElement.h.

pair< uint16_t, uint16_t > DataMangler::separateRawValues ( uint32_t  value) [static]
Todo:
The DataMangler::separateRawValues method needs a description

Definition at line 28 of file RobonetDataElement.cpp.

template<typename T >
static uint32_t DataMangler::toUnsignedIntFrom ( value) [inline, static]

Convert a value from any specified data type to an unsigned integer.

Parameters:
valueThe value in the specified data type.
Returns:
static uint32_t The unsigned integer value.

Uses the "void pointer" method of conversion.

Definition at line 59 of file RobonetDataElement.h.


The documentation for this class was generated from the following files:


robot_instance
Author(s):
autogenerated on Sat Jun 8 2019 20:43:12