Definition at line 226 of file NSMVHandler.h.
◆ NSMVHandlerFloatArray() [1/2]
NSMVHandlerFloatArray |
( |
const std::string & |
name, |
|
|
bool |
useget, |
|
|
bool |
useset, |
|
|
const std::vector< float > & |
val = std::vector<float>() |
|
) |
| |
|
inline |
Definition at line 229 of file NSMVHandler.h.
232 : NSMVHandler("", name, useset, useget)
233 {
234 m_var = val;
235 }
◆ NSMVHandlerFloatArray() [2/2]
NSMVHandlerFloatArray |
( |
const std::string & |
node, |
|
|
const std::string & |
name, |
|
|
bool |
useget, |
|
|
bool |
useset, |
|
|
const std::vector< float > & |
val = std::vector<float>() |
|
) |
| |
|
inline |
Definition at line 236 of file NSMVHandler.h.
239 : NSMVHandler(node, name, useset, useget)
240 {
241 m_var = val;
242 }
◆ ~NSMVHandlerFloatArray()
◆ 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 143 of file NSMVHandler.cc.
144{
145 std::vector<float> val;
146 if (handleGetFloatArray(val)) {
147 var = val;
148 return true;
149 }
150 return false;
151}
◆ handleGetFloatArray()
bool handleGetFloatArray |
( |
std::vector< float > & |
val | ) |
|
|
virtual |
Definition at line 133 of file NSMVHandler.cc.
134{
135 const float* pv = (const float*)m_var.get();
136 val = std::vector<float>();
137 for (int i = 0; i < m_var.getLength(); i++) {
138 val.push_back(pv[i]);
139 }
140 return true;
141}
◆ handleSet()
bool handleSet |
( |
const NSMVar & |
var | ) |
|
|
overridevirtual |
Reimplemented from NSMVHandler.
Definition at line 153 of file NSMVHandler.cc.
154{
155 if (var.getType() == NSMVar::FLOAT && var.getLength() > 0) {
156 const float* pv = (const float*)var.get();
157 std::vector<float> val;
158 for (int i = 0; i < var.getLength(); i++) {
159 val.push_back(pv[i]);
160 }
161 if (handleSetFloatArray(val)) {
162 m_var = val;
163 return true;
164 }
165 }
166 return false;
167}
◆ handleSetFloatArray()
virtual bool handleSetFloatArray |
( |
const std::vector< float > & |
val | ) |
|
|
inlinevirtual |
Definition at line 251 of file NSMVHandler.h.
252 {
253 m_var = val;
254 return true;
255 }
◆ 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: