1 #ifndef _Belle2_Callback_hh
2 #define _Belle2_Callback_hh
4 #include "daq/slc/nsm/NSMVar.h"
5 #include "daq/slc/nsm/NSMVHandler.h"
7 #include "daq/slc/database/DBObject.h"
27 virtual void notify(
const NSMVar& var) = 0;
29 int add(
NSMVHandler* handler,
bool overwrite =
true,
bool isdump =
true);
30 void remove(
const std::string& node,
const std::string& name);
31 void remove(
const std::string& name) { remove(
"", name); }
33 StringList& getHandlerNames() {
return m_hnames; }
34 NSMVHandlerList& getHandlers() {
return m_handler; }
37 return getHandler(
"", name);
39 NSMVHandler& getHandler(
const std::string& node,
const std::string& name)
41 void setUseGet(
const std::string& name,
bool use)
43 getHandler(name).setUseGet(use);
45 void setUseSet(
const std::string& name,
bool use)
47 getHandler(name).setUseSet(use);
51 void setRevision(
int revision) { m_revision = revision; }
52 int getRevision()
const {
return m_revision; }
55 NSMVHandler* getHandler_p(
const std::string& node,
const std::string& name);
59 NSMVHandlerList m_handler;