Simple wrapper class with better api.
More...
#include <Messaging.h>
|
| template<typename T> |
| int32 | getBinary (IAttributeList::AttrID id, T *iData, uint32 iSize) const |
| | Gets a binary message.
|
| double | getFloat (IAttributeList::AttrID id, double defaultValue) const |
| int64 | getInt (IAttributeList::AttrID id, int64 defaultValue) const |
| MessageID | getMessageID () const |
| template<typename T> |
| tresult | getSerializableValue (IAttributeList::AttrID id, IParamSerializer< T > const &iSerializer, T &oValue) const |
| | Deserializes the parameter value from an entry in the message.
|
| | Message (IMessage *message) |
| template<typename T> |
| tresult | setBinary (IAttributeList::AttrID id, const T *iData, uint32 iSize) |
| | Sets a binary message.
|
| void | setFloat (IAttributeList::AttrID id, double value) |
| void | setInt (IAttributeList::AttrID id, int64 value) |
| void | setMessageID (MessageID messageID) |
| template<typename T> |
| tresult | setSerializableValue (IAttributeList::AttrID id, IParamSerializer< T > const &iSerializer, T const &iValue) |
| | Serializes the parameter value as an entry in the message.
|
Simple wrapper class with better api.
◆ Message()
| Message |
( |
IMessage * | message | ) |
|
|
inlineexplicit |
◆ getBinary()
template<typename T>
| int32 getBinary |
( |
IAttributeList::AttrID | id, |
|
|
T * | iData, |
|
|
uint32 | iSize ) const |
|
inline |
Gets a binary message.
- Parameters
-
| id | attribute id |
| iData | the array into which the binary data will be copied |
| iSize | the number of elements in iData array (NOT the size in bytes!) |
- Returns
- -1 if cannot ready binary otherwise number of elements read (always <= iSize)
◆ getFloat()
| double getFloat |
( |
IAttributeList::AttrID | id, |
|
|
double | defaultValue ) const |
|
inline |
◆ getInt()
| int64 getInt |
( |
IAttributeList::AttrID | id, |
|
|
int64 | defaultValue ) const |
|
inline |
◆ getMessageID()
◆ getSerializableValue()
template<typename T>
| tresult getSerializableValue |
( |
IAttributeList::AttrID | id, |
|
|
IParamSerializer< T > const & | iSerializer, |
|
|
T & | oValue ) const |
Deserializes the parameter value from an entry in the message.
- Returns
- kResultOk if successful
◆ setBinary()
template<typename T>
| tresult setBinary |
( |
IAttributeList::AttrID | id, |
|
|
const T * | iData, |
|
|
uint32 | iSize ) |
|
inline |
Sets a binary message.
- Parameters
-
| id | attribute id |
| iData | the array from which the binary data will be copied |
| iSize | the number of elements in iData array (NOT the size in bytes!) |
◆ setFloat()
| void setFloat |
( |
IAttributeList::AttrID | id, |
|
|
double | value ) |
|
inline |
◆ setInt()
| void setInt |
( |
IAttributeList::AttrID | id, |
|
|
int64 | value ) |
|
inline |
◆ setMessageID()
◆ setSerializableValue()
template<typename T>
| tresult setSerializableValue |
( |
IAttributeList::AttrID | id, |
|
|
IParamSerializer< T > const & | iSerializer, |
|
|
T const & | iValue ) |
Serializes the parameter value as an entry in the message.
- Returns
- kResultOk if successful
◆ fMessage
The documentation for this class was generated from the following file: