Definition at line 36 of file RCCallback.cc.
◆ RCConfigHandler()
◆ 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 | ) |
|
|
overrideprivatevirtualinherited |
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()
bool handleGetText |
( |
std::string & |
val | ) |
|
|
inlineoverridevirtual |
◆ handleSet()
bool handleSet |
( |
const NSMVar & |
var | ) |
|
|
overrideprivatevirtualinherited |
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()
bool handleSetText |
( |
const std::string & |
val | ) |
|
|
inlineoverridevirtual |
Reimplemented from NSMVHandlerText.
Definition at line 47 of file RCCallback.cc.
48 {
49 RCState state(m_callback.getNode().getState());
50 RCState tstate(RCCommand::CONFIGURE.nextTState());
51 m_callback.setState(tstate);
52 try {
53 m_callback.abort();
54 m_callback.dbload(val.size(), val.c_str());
57 }
58 const DBObject& obj(m_callback.getDBObject());
59 obj.getName();
60 m_callback.configure(obj);
61 m_callback.setState(state);
62 return true;
63 }
◆ 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_callback
◆ 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 file: