Belle II Software development
NSMNode.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#ifndef _Belle2_NSMNode_hh
9#define _Belle2_NSMNode_hh
10
11#include <daq/slc/base/Date.h>
12
13#include "daq/slc/nsm/NSMState.h"
14
15namespace Belle2 {
21 class NSMNode {
22
23 public:
24 NSMNode(const std::string& name = "");
25 virtual ~NSMNode() {}
26
27 public:
28 const std::string& getName() const { return m_name; }
29 int getId() const { return m_id; }
30 bool isUsed() const { return m_used; }
31 NSMState& getState() { return m_state; }
32 const NSMState& getState() const { return m_state; }
33 void setName(const std::string& name);
34 void setUsed(bool used) { m_used = used; }
35 void setState(const NSMState& state) { m_state = state; }
36 void setId(int id) { m_id = id; }
37 int getDate() const { return m_date; }
38 void setDate(int date) { m_date = date; }
39 void setDate(const Date& date) { m_date = date.get(); }
40
41 protected:
42 std::string m_name;
43 int m_id;
44 bool m_used;
45 NSMState m_state;
46 int m_date;
47
48 };
49
51};
52
53#endif
Abstract base class for different kinds of events.