Definition at line 193 of file NSMVHandler.h.
◆ NSMVHandlerIntArray() [1/2]
NSMVHandlerIntArray |
( |
const std::string & |
name, |
|
|
bool |
useget, |
|
|
bool |
useset, |
|
|
const std::vector< int > & |
val = std::vector<int>() |
|
) |
| |
|
inline |
Definition at line 196 of file NSMVHandler.h.
199 : NSMVHandler("", name, useget, useset)
200 {
201 m_var = val;
202 }
◆ NSMVHandlerIntArray() [2/2]
NSMVHandlerIntArray |
( |
const std::string & |
node, |
|
|
const std::string & |
name, |
|
|
bool |
useget, |
|
|
bool |
useset, |
|
|
const std::vector< int > & |
val = std::vector<int>() |
|
) |
| |
|
inline |
Definition at line 203 of file NSMVHandler.h.
206 : NSMVHandler(node, name, useget, useset)
207 {
208 m_var = val;
209 }
◆ ~NSMVHandlerIntArray()
◆ 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 107 of file NSMVHandler.cc.
108{
109 std::vector<int> val;
110 if (handleGetIntArray(val)) {
111 var = val;
112 return true;
113 }
114 return false;
115}
◆ handleGetIntArray()
bool handleGetIntArray |
( |
std::vector< int > & |
val | ) |
|
|
virtual |
Definition at line 97 of file NSMVHandler.cc.
98{
99 const int* pv = (const int*)m_var.get();
100 val = std::vector<int>();
101 for (int i = 0; i < m_var.getLength(); i++) {
102 val.push_back(pv[i]);
103 }
104 return true;
105}
◆ handleSet()
bool handleSet |
( |
const NSMVar & |
var | ) |
|
|
overridevirtual |
Reimplemented from NSMVHandler.
Definition at line 117 of file NSMVHandler.cc.
118{
119 if (var.getType() == NSMVar::INT&& var.getLength() > 0) {
120 const int* pv = (const int*)var.get();
121 std::vector<int> val;
122 for (int i = 0; i < var.getLength(); i++) {
123 val.push_back(pv[i]);
124 }
125 if (handleSetIntArray(val)) {
126 m_var = val;
127 return true;
128 }
129 }
130 return false;
131}
◆ handleSetIntArray()
virtual bool handleSetIntArray |
( |
const std::vector< int > & |
val | ) |
|
|
inlinevirtual |
Definition at line 218 of file NSMVHandler.h.
219 {
220 m_var = val;
221 return true;
222 }
◆ 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: