![]() |
|
|
Generated: 18 Jul 2008 |
#include <Scouter/ValueMap.h>
It converts the variable to a void* pointer and stores its type information in an enum. This way, the variable can be converted to its original form when being written or published.
Definition at line 18 of file ValueMap.h.
Public Types | |
| enum | m_type { m_int, m_long, m_double, m_bool, m_string, m_null } |
Public Member Functions | |
| ValueMap (void *pointer, m_type pointerType) | |
| standard Constructor | |
| ValueMap () | |
| default Constructor | |
| virtual | ~ValueMap () |
| Destructor. | |
| void | set_ptr (void *pointer) |
| Sets pointer. | |
| void | set_ptrType (m_type pointerType) |
| Sets pointer type (enum). | |
| void * | get_ptr () |
| Return pointer. | |
| m_type | get_ptrType () |
| Return pointer type (enum). | |
Private Attributes | |
| void * | ptr |
| m_type | ptrType |
| enum ValueMap::m_type |
| ValueMap::ValueMap | ( | void * | pointer, | |
| m_type | pointerType | |||
| ) | [inline] |
| ValueMap::ValueMap | ( | ) | [inline] |
| virtual ValueMap::~ValueMap | ( | ) | [inline, virtual] |
| void ValueMap::set_ptr | ( | void * | pointer | ) | [inline] |
Sets pointer.
Definition at line 52 of file ValueMap.h.
References ptr.
Referenced by DataListenerSvc::declareInfo().
00052 { ptr = pointer;}
| void ValueMap::set_ptrType | ( | m_type | pointerType | ) | [inline] |
Sets pointer type (enum).
Definition at line 54 of file ValueMap.h.
References ptrType.
Referenced by DataListenerSvc::declareInfo().
00054 { ptrType = pointerType; }
| void* ValueMap::get_ptr | ( | ) | [inline] |
Return pointer.
Definition at line 60 of file ValueMap.h.
References ptr.
Referenced by DataListenerSvc::sendData(), DataListenerSvc::writeMap(), and DataListenerSvc::writeXML().
00060 { return ptr; }
| m_type ValueMap::get_ptrType | ( | ) | [inline] |
Return pointer type (enum).
Definition at line 62 of file ValueMap.h.
References ptrType.
Referenced by DataListenerSvc::sendData(), DataListenerSvc::writeMap(), and DataListenerSvc::writeXML().
00062 { return ptrType; }
void* ValueMap::ptr [private] |
m_type ValueMap::ptrType [private] |
Definition at line 68 of file ValueMap.h.
Referenced by get_ptrType(), set_ptrType(), and ValueMap().