Belle II Software development
|
Public Member Functions | |
RCCallback (int timeout=4) | |
void | init (NSMCommunicator &com) override |
virtual void | boot (const std::string &, const DBObject &) |
virtual void | load (const DBObject &, const std::string &) |
virtual void | start (int, int) |
virtual void | stop () |
virtual void | recover (const DBObject &, const std::string &) |
virtual bool | resume (int) |
virtual bool | pause () |
virtual void | abort () |
virtual void | monitor () |
virtual std::string | dbdump () |
bool | perform (NSMCommunicator &com) override |
void | timeout (NSMCommunicator &com) override |
virtual void | initialize (const DBObject &) |
virtual void | configure (const DBObject &) |
void | dump (bool isstart) |
const NSMNode & | getRuncontrol () const |
void | setState (const RCState &state) |
void | setRCConfig (const std::string &rcconfig) |
void | setDBTable (const std::string &table) |
void | setDBFile (const std::string &file) |
const std::string & | getDBTable () const |
void | setAutoReply (bool auto_reply) |
void | setDB (DBInterface *db, const std::string &table) |
DBInterface * | getDB () |
void | setProvider (const std::string &host, int port) |
DBObject & | getDBObject () |
void | setRunNumbers (int expno, int runno) |
int | getExpNumber () const |
int | getRunNumber () const |
void | setRunTypeRecord (const std::string &runtype) |
const std::string & | getRunTypeRecord () const |
DBObject | dbload (const std::string &path) |
void | configure_raw (int length, const char *data) |
virtual void | term () |
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) |
Protected Attributes | |
bool | m_showall |
Private Types | |
typedef std::vector< NSMCommand > | NSMCommandList |
Private Member Functions | |
void | dbload (int length, const char *data) |
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 | |
RCState | m_state_demand |
DBObject | m_obj |
DBInterface * | m_db |
std::string | m_table |
std::string | m_file |
bool | m_auto |
std::string | m_rcconfig |
std::string | m_rcconfig_org |
std::string | m_provider_host |
int | m_provider_port |
int | m_expno |
int | m_runno |
NSMNode | m_runcontrol |
std::string | m_runtype_record |
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 | RCMonitor |
class | RCConfigHandler |
Definition at line 25 of file RCCallback.h.
|
privateinherited |
Definition at line 82 of file NSMCallback.h.
RCCallback | ( | int | timeout = 4 | ) |
Definition at line 73 of file RCCallback.cc.
|
inlinevirtual |
Definition at line 32 of file RCCallback.h.
|
inlinevirtual |
Definition at line 43 of file RCCallback.h.
|
inherited |
Definition at line 25 of file Callback.cc.
|
inherited |
Definition at line 26 of file AbstractNSMCallback.cc.
|
privateinherited |
Definition at line 49 of file NSMCallback.cc.
|
protectedinherited |
Definition at line 54 of file NSMCallback.cc.
|
privateinherited |
Definition at line 300 of file NSMCallback.cc.
|
inlinevirtual |
Definition at line 36 of file RCCallback.h.
|
inlinevirtual |
Definition at line 53 of file RCCallback.h.
void configure_raw | ( | int | length, |
const char * | data | ||
) |
Definition at line 401 of file RCCallback.cc.
|
virtual |
Definition at line 292 of file RCCallback.cc.
DBObject dbload | ( | const std::string & | path | ) |
Definition at line 347 of file RCCallback.cc.
|
private |
Definition at line 411 of file RCCallback.cc.
void dump | ( | bool | isstart | ) |
Definition at line 237 of file RCCallback.cc.
|
inlinevirtualinherited |
Definition at line 47 of file NSMCallback.h.
|
inlinevirtualinherited |
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.
|
inlineinherited |
Definition at line 70 of file NSMCallback.h.
|
inlineprivateinherited |
Definition at line 87 of file NSMCallback.h.
|
inlineinherited |
Definition at line 65 of file NSMCallback.h.
|
inlineinherited |
Definition at line 63 of file NSMCallback.h.
|
inline |
Definition at line 65 of file RCCallback.h.
|
inline |
Definition at line 71 of file RCCallback.h.
|
inline |
Definition at line 62 of file RCCallback.h.
|
inline |
Definition at line 77 of file RCCallback.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.
|
inlineprotectedinherited |
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.
|
inlineprotectedinherited |
Definition at line 77 of file NSMCallback.h.
|
inlineinherited |
Definition at line 59 of file Callback.h.
|
inline |
Definition at line 57 of file RCCallback.h.
|
inline |
Definition at line 78 of file RCCallback.h.
|
inline |
Definition at line 80 of file RCCallback.h.
|
inlineinherited |
Definition at line 81 of file AbstractNSMCallback.h.
|
overridevirtual |
Reimplemented from NSMCallback.
Definition at line 93 of file RCCallback.cc.
|
inlinevirtual |
Definition at line 52 of file RCCallback.h.
|
inlinevirtual |
|
inherited |
Definition at line 77 of file NSMCallback.cc.
|
inherited |
Definition at line 87 of file NSMCallback.cc.
|
inlinevirtualinherited |
Definition at line 48 of file NSMCallback.h.
|
inlinevirtual |
Definition at line 44 of file RCCallback.h.
|
overrideprotectedvirtualinherited |
Implements AbstractNSMCallback.
Definition at line 155 of file NSMCallback.cc.
|
inlinevirtualinherited |
Definition at line 45 of file NSMCallback.h.
|
inlinevirtual |
Definition at line 42 of file RCCallback.h.
|
overridevirtual |
Reimplemented from NSMCallback.
Definition at line 109 of file RCCallback.cc.
|
protectedinherited |
Definition at line 129 of file AbstractNSMCallback.cc.
|
inlinevirtual |
Definition at line 40 of file RCCallback.h.
|
inlineprotectedinherited |
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.
|
inherited |
Definition at line 62 of file NSMCallback.cc.
|
inherited |
Definition at line 40 of file NSMCallback.cc.
|
inlinevirtual |
Definition at line 41 of file RCCallback.h.
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 63 of file RCCallback.h.
|
inlineinherited |
Definition at line 71 of file NSMCallback.h.
|
inline |
Definition at line 61 of file RCCallback.h.
|
inline |
Definition at line 60 of file RCCallback.h.
|
inlineprotectedinherited |
Definition at line 78 of file NSMCallback.h.
|
inlineinherited |
Definition at line 80 of file AbstractNSMCallback.h.
|
inline |
Definition at line 66 of file RCCallback.h.
|
inline |
Definition at line 59 of file RCCallback.h.
|
inlineinherited |
Definition at line 58 of file Callback.h.
|
inline |
Definition at line 72 of file RCCallback.h.
|
inline |
Definition at line 79 of file RCCallback.h.
void setState | ( | const RCState & | state | ) |
Definition at line 332 of file RCCallback.cc.
|
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 38 of file RCCallback.h.
|
inlinevirtual |
Definition at line 39 of file RCCallback.h.
|
inlinevirtualinherited |
Definition at line 42 of file NSMCallback.h.
|
overridevirtual |
Reimplemented from NSMCallback.
Definition at line 275 of file RCCallback.cc.
|
inherited |
Definition at line 119 of file AbstractNSMCallback.cc.
|
virtualinherited |
Definition at line 181 of file NSMCallback.cc.
|
virtualinherited |
Definition at line 240 of file NSMCallback.cc.
|
virtualinherited |
Definition at line 275 of file NSMCallback.cc.
|
inlinevirtualinherited |
Definition at line 54 of file NSMCallback.h.
|
virtualinherited |
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 28 of file RCCallback.h.
|
friend |
Definition at line 27 of file RCCallback.h.
|
private |
Definition at line 95 of file RCCallback.h.
|
privateinherited |
Definition at line 96 of file NSMCallback.h.
|
privateinherited |
Definition at line 91 of file NSMCallback.h.
|
privateinherited |
Definition at line 93 of file NSMCallback.h.
|
privateinherited |
Definition at line 94 of file NSMCallback.h.
|
private |
Definition at line 92 of file RCCallback.h.
|
private |
Definition at line 100 of file RCCallback.h.
|
private |
Definition at line 94 of file RCCallback.h.
|
privateinherited |
Definition at line 66 of file Callback.h.
|
privateinherited |
Definition at line 67 of file Callback.h.
|
privateinherited |
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.
|
privateinherited |
Definition at line 92 of file NSMCallback.h.
|
private |
Definition at line 91 of file RCCallback.h.
|
private |
Definition at line 98 of file RCCallback.h.
|
private |
Definition at line 99 of file RCCallback.h.
|
private |
Definition at line 96 of file RCCallback.h.
|
private |
Definition at line 97 of file RCCallback.h.
|
privateinherited |
Definition at line 65 of file Callback.h.
|
private |
Definition at line 102 of file RCCallback.h.
|
private |
Definition at line 101 of file RCCallback.h.
|
private |
Definition at line 103 of file RCCallback.h.
|
protected |
Definition at line 106 of file RCCallback.h.
|
private |
Definition at line 90 of file RCCallback.h.
|
private |
Definition at line 93 of file RCCallback.h.
|
privateinherited |
Definition at line 90 of file AbstractNSMCallback.h.