8#ifndef _Belle2_Callback_hh
9#define _Belle2_Callback_hh
11#include "daq/slc/nsm/NSMVar.h"
12#include "daq/slc/nsm/NSMVHandler.h"
14#include "daq/slc/database/DBObject.h"
34 virtual void notify(
const NSMVar& var) = 0;
36 int add(
NSMVHandler* handler,
bool overwrite =
true,
bool isdump =
true);
37 void remove(
const std::string& node,
const std::string& name);
38 void remove(
const std::string& name) { remove(
"", name); }
40 StringList& getHandlerNames() {
return m_hnames; }
41 NSMVHandlerList& getHandlers() {
return m_handler; }
44 return getHandler(
"", name);
46 NSMVHandler& getHandler(
const std::string& node,
const std::string& name)
48 void setUseGet(
const std::string& name,
bool use)
50 getHandler(name).setUseGet(use);
52 void setUseSet(
const std::string& name,
bool use)
54 getHandler(name).setUseSet(use);
58 void setRevision(
int revision) { m_revision = revision; }
59 int getRevision()
const {
return m_revision; }
62 NSMVHandler* getHandler_p(
const std::string& node,
const std::string& name);
66 NSMVHandlerList m_handler;
Abstract base class for different kinds of events.