Definition at line 158 of file NSMVHandler.h.
◆ NSMVHandlerText() [1/2]
NSMVHandlerText |
( |
const std::string & |
name, |
|
|
bool |
useget, |
|
|
bool |
useset, |
|
|
const std::string & |
val = "" |
|
) |
| |
|
inline |
Definition at line 161 of file NSMVHandler.h.
163 : NSMVHandler("", name, useget, useset)
164 {
165 m_var = val;
166 }
◆ NSMVHandlerText() [2/2]
NSMVHandlerText |
( |
const std::string & |
node, |
|
|
const std::string & |
name, |
|
|
bool |
useget, |
|
|
bool |
useset, |
|
|
const std::string & |
val = "" |
|
) |
| |
|
inline |
Definition at line 167 of file NSMVHandler.h.
169 : NSMVHandler(node, name, useget, useset)
170 {
171 m_var = val;
172 }
◆ ~NSMVHandlerText()
◆ 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 | ) |
|
|
overrideprivatevirtual |
Reimplemented from NSMVHandler.
Definition at line 76 of file NSMVHandler.cc.
77{
78 std::string val;
79 if (handleGetText(val)) {
80 var = val;
81 return true;
82 }
83 return false;
84}
◆ handleGetText()
virtual bool handleGetText |
( |
std::string & |
val | ) |
|
|
inlinevirtual |
Definition at line 180 of file NSMVHandler.h.
181 {
182 val = m_var.getText();
183 return true;
184 }
◆ handleSet()
bool handleSet |
( |
const NSMVar & |
var | ) |
|
|
overrideprivatevirtual |
Reimplemented from NSMVHandler.
Definition at line 86 of file NSMVHandler.cc.
87{
88 if (var.getType() == NSMVar::TEXT && var.getLength() > 0) {
89 if (handleSetText(var.getText())) {
90 m_var = var.getText();
91 return true;
92 }
93 }
94 return false;
95}
◆ handleSetText()
virtual bool handleSetText |
( |
const std::string & |
val | ) |
|
|
inlinevirtual |
Definition at line 185 of file NSMVHandler.h.
186 {
187 m_var = val;
188 return true;
189 }
◆ 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: