Belle II Software development
|
Public Member Functions | |
AbstractNSMCallback (int timeout) | |
int | addDB (const DBObject &obj) |
bool | get (const NSMNode &node, const std::string &name, int &val, int timeout=5) |
bool | get (const NSMNode &node, const std::string &name, float &val, int timeout=5) |
bool | get (const NSMNode &node, const std::string &name, std::string &val, int timeout=5) |
bool | get (const NSMNode &node, const std::string &name, std::vector< int > &val, int timeout=5) |
bool | get (const NSMNode &node, const std::string &name, std::vector< float > &val, int timeout=5) |
bool | set (const NSMNode &node, const std::string &name, int val, int timeout=5) |
bool | set (const NSMNode &node, const std::string &name, float val, int timeout=5) |
bool | set (const NSMNode &node, const std::string &name, const std::string &val, int timeout=5) |
bool | set (const NSMNode &node, const std::string &name, const std::vector< int > &val, int timeout=5) |
bool | set (const NSMNode &node, const std::string &name, const std::vector< float > &val, int timeout=5) |
bool | get (const NSMNode &node, NSMVHandler *handler, int timeout=5) |
bool | get (const DBObject &obj) |
bool | get (const std::string &name, int &val) |
bool | get (const std::string &name, float &val) |
bool | get (const std::string &name, std::string &val) |
bool | get (const std::string &name, std::vector< int > &val) |
bool | get (const std::string &name, std::vector< float > &val) |
bool | set (const std::string &name, int val) |
bool | set (const std::string &name, float val) |
bool | set (const std::string &name, const std::string &val) |
bool | set (const std::string &name, const std::vector< int > &val) |
bool | set (const std::string &name, const std::vector< float > &val) |
bool | get (const std::string &node, const std::string &name, int &val) |
bool | get (const std::string &node, const std::string &name, float &val) |
bool | get (const std::string &node, const std::string &name, std::string &val) |
bool | get (const std::string &node, const std::string &name, std::vector< int > &val) |
bool | get (const std::string &node, const std::string &name, std::vector< float > &val) |
bool | set (const std::string &node, const std::string &name, int val) |
bool | set (const std::string &node, const std::string &name, float val) |
bool | set (const std::string &node, const std::string &name, const std::string &val) |
bool | set (const std::string &node, const std::string &name, const std::vector< int > &val) |
bool | set (const std::string &node, const std::string &name, const std::vector< float > &val) |
int | wait (double timeout=5) |
NSMCommunicator & | wait (const NSMNode &node, const NSMCommand &cmd, double timeout=5) |
virtual void | notify (const NSMVar &var)=0 |
bool | try_wait () |
NSMNode & | getNode () |
const NSMNode & | getNode () const |
void | setNode (const NSMNode &node) |
int | getTimeout () const |
void | setTimeout (int timeout) |
bool | get (const NSMNode &node, NSMVar &var, int timeout=5) |
bool | set (const NSMNode &node, const NSMVar &var, int timeout=5) |
int | reset () |
int | add (NSMVHandler *handler, bool overwrite=true, bool isdump=true) |
void | remove (const std::string &node, const std::string &name) |
void | remove (const std::string &name) |
void | remove (const DBObject &obj) |
StringList & | getHandlerNames () |
NSMVHandlerList & | getHandlers () |
NSMVHandler & | getHandler (const std::string &name) |
NSMVHandler & | getHandler (const std::string &node, const std::string &name) |
void | setUseGet (const std::string &name, bool use) |
void | setUseSet (const std::string &name, bool use) |
void | setRevision (int revision) |
int | getRevision () const |
Protected Member Functions | |
virtual bool | perform (NSMCommunicator &com)=0 |
void | readVar (const NSMMessage &msg, NSMVar &var) |
Private Member Functions | |
template<typename T > | |
bool | get_t (const NSMNode &node, const std::string &name, T &val, int timeout, NSMVar::Type type=NSMVar::NONE, int len=0) |
template<typename T > | |
bool | get_t (const std::string &node, const std::string &name, T &val) |
template<typename T > | |
bool | set_t (const std::string &node, const std::string &name, const T &val) |
NSMVHandler * | getHandler_p (const std::string &node, const std::string &name) |
Private Attributes | |
NSMNode | m_node |
int | m_timeout |
NSMNodeMapMap | m_node_v_m |
int | m_revision |
NSMVHandlerList | m_handler |
StringList | m_hnames |
Friends | |
class | NSMCallback |
Definition at line 29 of file AbstractNSMCallback.h.
AbstractNSMCallback | ( | int | timeout | ) |
Definition at line 21 of file AbstractNSMCallback.cc.
|
inlinevirtual |
Definition at line 35 of file AbstractNSMCallback.h.
|
inherited |
Definition at line 25 of file Callback.cc.
int addDB | ( | const DBObject & | obj | ) |
Definition at line 26 of file AbstractNSMCallback.cc.
bool get | ( | const DBObject & | obj | ) |
Definition at line 300 of file AbstractNSMCallback.cc.
bool get | ( | const NSMNode & | node, |
const std::string & | name, | ||
float & | val, | ||
int | timeout = 5 |
||
) |
Definition at line 246 of file AbstractNSMCallback.cc.
bool get | ( | const NSMNode & | node, |
const std::string & | name, | ||
int & | val, | ||
int | timeout = 5 |
||
) |
Definition at line 240 of file AbstractNSMCallback.cc.
bool get | ( | const NSMNode & | node, |
const std::string & | name, | ||
std::string & | val, | ||
int | timeout = 5 |
||
) |
Definition at line 252 of file AbstractNSMCallback.cc.
bool get | ( | const NSMNode & | node, |
const std::string & | name, | ||
std::vector< float > & | val, | ||
int | timeout = 5 |
||
) |
Definition at line 264 of file AbstractNSMCallback.cc.
bool get | ( | const NSMNode & | node, |
const std::string & | name, | ||
std::vector< int > & | val, | ||
int | timeout = 5 |
||
) |
Definition at line 258 of file AbstractNSMCallback.cc.
Definition at line 176 of file AbstractNSMCallback.cc.
bool get | ( | const NSMNode & | node, |
NSMVHandler * | handler, | ||
int | timeout = 5 |
||
) |
Definition at line 141 of file AbstractNSMCallback.cc.
|
inline |
Definition at line 52 of file AbstractNSMCallback.h.
|
inline |
Definition at line 51 of file AbstractNSMCallback.h.
|
inline |
Definition at line 53 of file AbstractNSMCallback.h.
|
inline |
Definition at line 55 of file AbstractNSMCallback.h.
|
inline |
Definition at line 54 of file AbstractNSMCallback.h.
|
inline |
Definition at line 62 of file AbstractNSMCallback.h.
|
inline |
Definition at line 61 of file AbstractNSMCallback.h.
|
inline |
Definition at line 63 of file AbstractNSMCallback.h.
|
inline |
Definition at line 65 of file AbstractNSMCallback.h.
|
inline |
Definition at line 64 of file AbstractNSMCallback.h.
|
inlineprivate |
Definition at line 99 of file AbstractNSMCallback.h.
|
inlineprivate |
Definition at line 116 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 42 of file Callback.h.
|
inherited |
Definition at line 56 of file Callback.cc.
|
privateinherited |
Definition at line 65 of file Callback.cc.
|
inlineinherited |
Definition at line 40 of file Callback.h.
|
inlineinherited |
Definition at line 41 of file Callback.h.
|
inline |
Definition at line 78 of file AbstractNSMCallback.h.
|
inline |
Definition at line 79 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 59 of file Callback.h.
|
inline |
Definition at line 81 of file AbstractNSMCallback.h.
|
protected |
Definition at line 129 of file AbstractNSMCallback.cc.
|
inherited |
Definition at line 78 of file Callback.cc.
|
inlineinherited |
Definition at line 38 of file Callback.h.
|
inherited |
Definition at line 45 of file Callback.cc.
|
inherited |
Definition at line 14 of file Callback.cc.
Definition at line 210 of file AbstractNSMCallback.cc.
bool set | ( | const NSMNode & | node, |
const std::string & | name, | ||
const std::string & | val, | ||
int | timeout = 5 |
||
) |
Definition at line 282 of file AbstractNSMCallback.cc.
bool set | ( | const NSMNode & | node, |
const std::string & | name, | ||
const std::vector< float > & | val, | ||
int | timeout = 5 |
||
) |
Definition at line 294 of file AbstractNSMCallback.cc.
bool set | ( | const NSMNode & | node, |
const std::string & | name, | ||
const std::vector< int > & | val, | ||
int | timeout = 5 |
||
) |
Definition at line 288 of file AbstractNSMCallback.cc.
bool set | ( | const NSMNode & | node, |
const std::string & | name, | ||
float | val, | ||
int | timeout = 5 |
||
) |
Definition at line 276 of file AbstractNSMCallback.cc.
bool set | ( | const NSMNode & | node, |
const std::string & | name, | ||
int | val, | ||
int | timeout = 5 |
||
) |
Definition at line 270 of file AbstractNSMCallback.cc.
|
inline |
Definition at line 58 of file AbstractNSMCallback.h.
|
inline |
Definition at line 60 of file AbstractNSMCallback.h.
|
inline |
Definition at line 59 of file AbstractNSMCallback.h.
|
inline |
Definition at line 57 of file AbstractNSMCallback.h.
|
inline |
Definition at line 56 of file AbstractNSMCallback.h.
|
inline |
Definition at line 68 of file AbstractNSMCallback.h.
|
inline |
Definition at line 70 of file AbstractNSMCallback.h.
|
inline |
Definition at line 69 of file AbstractNSMCallback.h.
|
inline |
Definition at line 67 of file AbstractNSMCallback.h.
|
inline |
Definition at line 66 of file AbstractNSMCallback.h.
|
inlineprivate |
Definition at line 128 of file AbstractNSMCallback.h.
|
inline |
Definition at line 80 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 58 of file Callback.h.
|
inline |
Definition at line 82 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 48 of file Callback.h.
|
inlineinherited |
Definition at line 52 of file Callback.h.
bool try_wait | ( | ) |
Definition at line 119 of file AbstractNSMCallback.cc.
NSMCommunicator & wait | ( | const NSMNode & | node, |
const NSMCommand & | cmd, | ||
double | timeout = 5 |
||
) |
Definition at line 75 of file AbstractNSMCallback.cc.
int wait | ( | double | timeout = 5 | ) |
Definition at line 95 of file AbstractNSMCallback.cc.
|
friend |
Definition at line 31 of file AbstractNSMCallback.h.
|
privateinherited |
Definition at line 66 of file Callback.h.
|
privateinherited |
Definition at line 67 of file Callback.h.
|
private |
Definition at line 89 of file AbstractNSMCallback.h.
|
private |
Definition at line 91 of file AbstractNSMCallback.h.
|
privateinherited |
Definition at line 65 of file Callback.h.
|
private |
Definition at line 90 of file AbstractNSMCallback.h.