Definition at line 22 of file NSMVHandler.h.
◆ NSMVHandler()
NSMVHandler |
( |
const std::string & |
node, |
|
|
const std::string & |
name, |
|
|
bool |
useget, |
|
|
bool |
useset |
|
) |
| |
|
inline |
Definition at line 32 of file NSMVHandler.h.
34 : m_id(0), m_timestamp(0), m_node(node), m_name(name),
35 m_useget(useget), m_useset(useset), m_var(name) {}
◆ ~NSMVHandler()
◆ create()
Definition at line 14 of file NSMVHandler.cc.
15{
16 const std::string node = var.getNode();
17 const std::string name = var.getName();
18 if (var.getType() == NSMVar::INT) {
19 if (var.getLength() == 0) {
21 }
23 } else if (var.getType() == NSMVar::FLOAT) {
24 if (var.getLength() == 0) {
26 }
28 } else if (var.getType() == NSMVar::TEXT) {
30 }
31 return NULL;
32}
◆ get() [1/2]
◆ get() [2/2]
◆ getId()
◆ getName()
const std::string & getName |
( |
| ) |
const |
|
inline |
◆ getNode()
const std::string & getNode |
( |
| ) |
const |
|
inline |
◆ getTimeStamp()
int getTimeStamp |
( |
| ) |
const |
|
inline |
◆ getType()
NSMVar::Type getType |
( |
| ) |
const |
|
inline |
◆ getTypeLabel()
const char * getTypeLabel |
( |
| ) |
const |
|
inline |
Definition at line 70 of file NSMVHandler.h.
70{ return m_var.getTypeLabel(); }
◆ handleGet()
virtual bool handleGet |
( |
NSMVar & |
var | ) |
|
|
inlinevirtual |
Definition at line 39 of file NSMVHandler.h.
40 {
41 var = m_var;
42 return true;
43 }
◆ handleSet()
virtual bool handleSet |
( |
const NSMVar & |
var | ) |
|
|
inlinevirtual |
Definition at line 44 of file NSMVHandler.h.
45 {
46 m_var = var;
47 return true;
48 }
◆ isDumped()
◆ set() [1/6]
void set |
( |
const NSMVar & |
var | ) |
|
|
inline |
◆ set() [2/6]
void set |
( |
const std::string & |
val | ) |
|
|
inline |
◆ set() [3/6]
void set |
( |
const std::vector< float > & |
val | ) |
|
|
inline |
◆ set() [4/6]
void set |
( |
const std::vector< int > & |
val | ) |
|
|
inline |
◆ set() [5/6]
◆ set() [6/6]
◆ setDumped()
void setDumped |
( |
bool |
isdump | ) |
|
|
inline |
◆ setId()
◆ setNode()
void setNode |
( |
const std::string & |
node | ) |
|
|
inline |
◆ setUseGet()
void setUseGet |
( |
bool |
use | ) |
|
|
inline |
◆ setUseSet()
void setUseSet |
( |
bool |
use | ) |
|
|
inline |
◆ useGet()
◆ useSet()
◆ AbstractNSMCallback
◆ Callback
◆ NSMCallback
◆ m_id
◆ m_isdump
◆ m_name
◆ m_node
◆ m_timestamp
◆ m_useget
◆ m_useset
◆ m_var
The documentation for this class was generated from the following files: