Definition at line 123 of file NSMVHandler.h.
◆ NSMVHandlerFloat() [1/2]
NSMVHandlerFloat |
( |
const std::string & |
name, |
|
|
bool |
useget, |
|
|
bool |
useset, |
|
|
float |
val = 0 |
|
) |
| |
|
inline |
Definition at line 126 of file NSMVHandler.h.
128 : NSMVHandler("", name, useget, useset)
129 {
130 m_var = val;
131 }
◆ NSMVHandlerFloat() [2/2]
NSMVHandlerFloat |
( |
const std::string & |
node, |
|
|
const std::string & |
name, |
|
|
bool |
useget, |
|
|
bool |
useset, |
|
|
float |
val = 0 |
|
) |
| |
|
inline |
Definition at line 132 of file NSMVHandler.h.
134 : NSMVHandler(node, name, useget, useset)
135 {
136 m_var = val;
137 }
◆ ~NSMVHandlerFloat()
◆ 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 55 of file NSMVHandler.cc.
56{
57 float val;
58 if (handleGetFloat(val)) {
59 var = val;
60 return true;
61 }
62 return false;
63}
◆ handleGetFloat()
virtual bool handleGetFloat |
( |
float & |
val | ) |
|
|
inlinevirtual |
Definition at line 145 of file NSMVHandler.h.
146 {
147 val = m_var.getFloat();
148 return true;
149 }
◆ handleSet()
bool handleSet |
( |
const NSMVar & |
var | ) |
|
|
overrideprivatevirtual |
Reimplemented from NSMVHandler.
Definition at line 65 of file NSMVHandler.cc.
66{
67 if (var.getType() == NSMVar::FLOAT && var.getLength() == 0) {
68 if (handleSetFloat(var.getFloat())) {
69 m_var = var.getFloat();
70 return true;
71 }
72 }
73 return false;
74}
◆ handleSetFloat()
virtual bool handleSetFloat |
( |
float |
val | ) |
|
|
inlinevirtual |
Definition at line 150 of file NSMVHandler.h.
151 {
152 m_var = val;
153 return true;
154 }
◆ 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: