Belle II Software development
|
Public Member Functions | |
NSMCallback (int timeout=5) | |
virtual void | init (NSMCommunicator &) |
virtual void | term () |
virtual void | timeout (NSMCommunicator &) |
bool | perform (NSMCommunicator &com) override |
virtual void | ok (const char *, const char *) |
virtual void | fatal (const char *, const char *) |
virtual void | error (const char *, const char *) |
virtual void | logset (const DAQLogMessage &) |
virtual void | vget (const std::string &nodename, const std::string &vname) |
virtual void | vset (NSMCommunicator &com, const NSMVar &var) |
virtual void | vlistget (NSMCommunicator &com) |
virtual void | vlistset (NSMCommunicator &com) |
virtual void | vreply (NSMCommunicator &, const std::string &, bool) |
void | reply (const NSMMessage &msg) |
void | log (LogFile::Priority pri, const char *format,...) |
void | log (LogFile::Priority pri, const std::string &msg) |
int | reset () |
NSMDataMap & | getDataMap () |
NSMData & | getData (const std::string &name) |
NSMData & | getData () |
void | openData (const std::string &name, const std::string &format, int revision=-1) |
void | allocData (const std::string &name, const std::string &format, int revision) |
const std::string & | getCategory () const |
void | setCategory (const std::string &category) |
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 | 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 | 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 | get (const NSMNode &node, NSMVar &var, 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 | 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 | 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) |
bool | set (const NSMNode &node, const NSMVar &var, int timeout=5) |
int | wait (double timeout=5) |
NSMCommunicator & | wait (const NSMNode &node, const NSMCommand &cmd, double timeout=5) |
bool | try_wait () |
NSMNode & | getNode () |
const NSMNode & | getNode () const |
void | setNode (const NSMNode &node) |
int | getTimeout () const |
void | setTimeout (int timeout) |
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 | |
void | notify (const NSMVar &var) override |
void | reg (const NSMCommand &cmd) |
void | addNode (const NSMNode &node) |
const NSMNodeMap & | getNodes () |
void | setLogNode (const NSMNode &node) |
const NSMNode & | getLogNode () |
void | readVar (const NSMMessage &msg, NSMVar &var) |
Private Types | |
typedef std::vector< NSMCommand > | NSMCommandList |
Private Member Functions | |
int | addDefaultHandlers () |
NSMCommandList & | getCommandList () |
void | alloc_open (NSMCommunicator &com) |
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 | |
NSMCommandList | m_cmd_v |
NSMNodeMap | m_nodes |
NSMData | m_data |
NSMDataMap | m_datas |
NSMNode | m_lognode |
std::string | m_category |
NSMNode | m_node |
int | m_timeout |
NSMNodeMapMap | m_node_v_m |
int | m_revision |
NSMVHandlerList | m_handler |
StringList | m_hnames |
Friends | |
class | NSMCommunicator |
class | NSMNodeDaemon |
Definition at line 31 of file NSMCallback.h.
|
private |
Definition at line 82 of file NSMCallback.h.
NSMCallback | ( | int | timeout = 5 | ) |
Definition at line 24 of file NSMCallback.cc.
|
inlinevirtual |
Definition at line 38 of file NSMCallback.h.
|
inherited |
Definition at line 25 of file Callback.cc.
|
inherited |
Definition at line 26 of file AbstractNSMCallback.cc.
|
private |
Definition at line 49 of file NSMCallback.cc.
|
protected |
Definition at line 54 of file NSMCallback.cc.
|
private |
Definition at line 300 of file NSMCallback.cc.
|
inlinevirtual |
Definition at line 47 of file NSMCallback.h.
|
inlinevirtual |
Definition at line 46 of file NSMCallback.h.
|
inherited |
Definition at line 300 of file AbstractNSMCallback.cc.
|
inherited |
Definition at line 246 of file AbstractNSMCallback.cc.
|
inherited |
Definition at line 240 of file AbstractNSMCallback.cc.
|
inherited |
Definition at line 252 of file AbstractNSMCallback.cc.
|
inherited |
Definition at line 264 of file AbstractNSMCallback.cc.
|
inherited |
Definition at line 258 of file AbstractNSMCallback.cc.
Definition at line 176 of file AbstractNSMCallback.cc.
|
inherited |
Definition at line 141 of file AbstractNSMCallback.cc.
|
inlineinherited |
Definition at line 52 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 51 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 53 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 55 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 54 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 62 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 61 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 63 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 65 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 64 of file AbstractNSMCallback.h.
|
inlineprivateinherited |
Definition at line 99 of file AbstractNSMCallback.h.
|
inlineprivateinherited |
Definition at line 116 of file AbstractNSMCallback.h.
|
inline |
Definition at line 70 of file NSMCallback.h.
|
inlineprivate |
Definition at line 87 of file NSMCallback.h.
|
inline |
Definition at line 65 of file NSMCallback.h.
|
inline |
Definition at line 63 of file NSMCallback.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.
|
inlineprotected |
Definition at line 79 of file NSMCallback.h.
|
inlineinherited |
Definition at line 78 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 79 of file AbstractNSMCallback.h.
|
inlineprotected |
Definition at line 77 of file NSMCallback.h.
|
inlineinherited |
Definition at line 59 of file Callback.h.
|
inlineinherited |
Definition at line 81 of file AbstractNSMCallback.h.
|
inlinevirtual |
Definition at line 41 of file NSMCallback.h.
void log | ( | LogFile::Priority | pri, |
const char * | format, | ||
... | |||
) |
Definition at line 77 of file NSMCallback.cc.
void log | ( | LogFile::Priority | pri, |
const std::string & | msg | ||
) |
Definition at line 87 of file NSMCallback.cc.
|
inlinevirtual |
Definition at line 48 of file NSMCallback.h.
|
overrideprotectedvirtual |
Implements AbstractNSMCallback.
Definition at line 155 of file NSMCallback.cc.
|
inlinevirtual |
Definition at line 45 of file NSMCallback.h.
|
overridevirtual |
Implements AbstractNSMCallback.
Definition at line 101 of file NSMCallback.cc.
|
protectedinherited |
Definition at line 129 of file AbstractNSMCallback.cc.
|
inlineprotected |
Definition at line 75 of file NSMCallback.h.
|
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.
void reply | ( | const NSMMessage & | msg | ) |
Definition at line 62 of file NSMCallback.cc.
int reset | ( | ) |
Definition at line 40 of file NSMCallback.cc.
Definition at line 210 of file AbstractNSMCallback.cc.
|
inherited |
Definition at line 282 of file AbstractNSMCallback.cc.
|
inherited |
Definition at line 294 of file AbstractNSMCallback.cc.
|
inherited |
Definition at line 288 of file AbstractNSMCallback.cc.
|
inherited |
Definition at line 276 of file AbstractNSMCallback.cc.
|
inherited |
Definition at line 270 of file AbstractNSMCallback.cc.
|
inlineinherited |
Definition at line 58 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 60 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 59 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 57 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 56 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 68 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 70 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 69 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 67 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 66 of file AbstractNSMCallback.h.
|
inlineprivateinherited |
Definition at line 128 of file AbstractNSMCallback.h.
|
inline |
Definition at line 71 of file NSMCallback.h.
|
inlineprotected |
Definition at line 78 of file NSMCallback.h.
|
inlineinherited |
Definition at line 80 of file AbstractNSMCallback.h.
|
inlineinherited |
Definition at line 58 of file Callback.h.
|
inlineinherited |
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.
|
inlinevirtual |
Definition at line 42 of file NSMCallback.h.
|
inlinevirtual |
Definition at line 43 of file NSMCallback.h.
|
inherited |
Definition at line 119 of file AbstractNSMCallback.cc.
|
virtual |
Definition at line 181 of file NSMCallback.cc.
|
virtual |
Definition at line 240 of file NSMCallback.cc.
|
virtual |
Definition at line 275 of file NSMCallback.cc.
|
inlinevirtual |
Definition at line 54 of file NSMCallback.h.
|
virtual |
Definition at line 211 of file NSMCallback.cc.
|
inherited |
Definition at line 75 of file AbstractNSMCallback.cc.
|
inherited |
Definition at line 95 of file AbstractNSMCallback.cc.
|
friend |
Definition at line 33 of file NSMCallback.h.
|
friend |
Definition at line 34 of file NSMCallback.h.
|
private |
Definition at line 96 of file NSMCallback.h.
|
private |
Definition at line 91 of file NSMCallback.h.
|
private |
Definition at line 93 of file NSMCallback.h.
|
private |
Definition at line 94 of file NSMCallback.h.
|
privateinherited |
Definition at line 66 of file Callback.h.
|
privateinherited |
Definition at line 67 of file Callback.h.
|
private |
Definition at line 95 of file NSMCallback.h.
|
privateinherited |
Definition at line 89 of file AbstractNSMCallback.h.
|
privateinherited |
Definition at line 91 of file AbstractNSMCallback.h.
|
private |
Definition at line 92 of file NSMCallback.h.
|
privateinherited |
Definition at line 65 of file Callback.h.
|
privateinherited |
Definition at line 90 of file AbstractNSMCallback.h.