ATLAS Offline Software
BaseObject.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONCABLINGTOOLS_LVL1OBJECT_H
6 #define MUONCABLINGTOOLS_LVL1OBJECT_H
7 
8 #include <iostream>
9 #include <string>
10 
12 
13 class BaseObject {
14 private:
16  std::string m_name;
17 
18 public:
19  BaseObject(ObjectType, const std::string&);
20  virtual ~BaseObject() = default;
21 
22  ObjectType tag() const { return m_tag; }
23  const std::string& name() const { return m_name; }
24 
25  virtual void Print(std::ostream&, bool) const {}
26 };
27 
28 #endif
BaseObject::name
const std::string & name() const
Definition: BaseObject.h:23
ObjectType
ObjectType
Definition: BaseObject.h:11
BaseObject::m_name
std::string m_name
Definition: BaseObject.h:16
Data
@ Data
Definition: BaseObject.h:11
Logic
@ Logic
Definition: BaseObject.h:11
BaseObject::tag
ObjectType tag() const
Definition: BaseObject.h:22
Hardware
@ Hardware
Definition: BaseObject.h:11
BaseObject
Definition: BaseObject.h:13
BaseObject::BaseObject
BaseObject(ObjectType, const std::string &)
Definition: BaseObject.cxx:7
Monitoring
@ Monitoring
Definition: BaseObject.h:11
BaseObject::m_tag
ObjectType m_tag
Definition: BaseObject.h:15
BaseObject::Print
virtual void Print(std::ostream &, bool) const
Definition: BaseObject.h:25
BaseObject::~BaseObject
virtual ~BaseObject()=default