Definition at line 88 of file NSMVHandler.h.
◆ NSMVHandlerInt() [1/2]
NSMVHandlerInt |
( |
const std::string & |
name, |
|
|
bool |
useget, |
|
|
bool |
useset, |
|
|
int |
val = 0 |
|
) |
| |
|
inline |
Definition at line 91 of file NSMVHandler.h.
93 : NSMVHandler("", name, useget, useset)
94 {
95 m_var = val;
96 }
◆ NSMVHandlerInt() [2/2]
NSMVHandlerInt |
( |
const std::string & |
node, |
|
|
const std::string & |
name, |
|
|
bool |
useget, |
|
|
bool |
useset, |
|
|
int |
val = 0 |
|
) |
| |
|
inline |
Definition at line 97 of file NSMVHandler.h.
99 : NSMVHandler(node, name, useget, useset)
100 {
101 m_var = val;
102 }
◆ ~NSMVHandlerInt()
◆ 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 |
|
inlineinherited |
◆ getNode()
const std::string & getNode |
( |
| ) |
const |
|
inlineinherited |
◆ getTimeStamp()
int getTimeStamp |
( |
| ) |
const |
|
inlineinherited |
◆ getType()
NSMVar::Type getType |
( |
| ) |
const |
|
inlineinherited |
◆ getTypeLabel()
const char * getTypeLabel |
( |
| ) |
const |
|
inlineinherited |
Definition at line 70 of file NSMVHandler.h.
70{ return m_var.getTypeLabel(); }
◆ handleGet()
bool handleGet |
( |
NSMVar & |
var | ) |
|
|
overridevirtual |
Reimplemented from NSMVHandler.
Definition at line 34 of file NSMVHandler.cc.
35{
36 int val;
37 if (handleGetInt(val)) {
38 var = val;
39 return true;
40 }
41 return false;
42}
◆ handleGetInt()
virtual bool handleGetInt |
( |
int & |
val | ) |
|
|
inlinevirtual |
Definition at line 110 of file NSMVHandler.h.
111 {
112 val = m_var.getInt();
113 return true;
114 }
◆ handleSet()
bool handleSet |
( |
const NSMVar & |
var | ) |
|
|
overridevirtual |
Reimplemented from NSMVHandler.
Definition at line 44 of file NSMVHandler.cc.
45{
46 if (var.getType() == NSMVar::INT&& var.getLength() == 0) {
47 if (handleSetInt(var.getInt())) {
48 m_var = var.getInt();
49 return true;
50 }
51 }
52 return false;
53}
◆ handleSetInt()
virtual bool handleSetInt |
( |
int |
val | ) |
|
|
inlinevirtual |
Definition at line 115 of file NSMVHandler.h.
116 {
117 m_var = val;
118 return true;
119 }
◆ isDumped()
◆ set() [1/6]
void set |
( |
const NSMVar & |
var | ) |
|
|
inlineinherited |
◆ set() [2/6]
void set |
( |
const std::string & |
val | ) |
|
|
inlineinherited |
◆ set() [3/6]
void set |
( |
const std::vector< float > & |
val | ) |
|
|
inlineinherited |
◆ set() [4/6]
void set |
( |
const std::vector< int > & |
val | ) |
|
|
inlineinherited |
◆ set() [5/6]
◆ set() [6/6]
◆ setDumped()
void setDumped |
( |
bool |
isdump | ) |
|
|
inlineinherited |
◆ setId()
◆ setNode()
void setNode |
( |
const std::string & |
node | ) |
|
|
inlineinherited |
◆ setUseGet()
void setUseGet |
( |
bool |
use | ) |
|
|
inlineinherited |
◆ setUseSet()
void setUseSet |
( |
bool |
use | ) |
|
|
inlineinherited |
◆ useGet()
◆ useSet()
◆ 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: