ATLAS Offline Software
Loading...
Searching...
No Matches
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
14private:
16 std::string m_name;
17
18public:
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
ObjectType
Definition BaseObject.h:11
@ Monitoring
Definition BaseObject.h:11
@ Hardware
Definition BaseObject.h:11
@ Data
Definition BaseObject.h:11
@ Logic
Definition BaseObject.h:11
std::string m_name
Definition BaseObject.h:16
ObjectType tag() const
Definition BaseObject.h:22
ObjectType m_tag
Definition BaseObject.h:15
virtual void Print(std::ostream &, bool) const
Definition BaseObject.h:25
BaseObject(ObjectType, const std::string &)
Definition BaseObject.cxx:7
const std::string & name() const
Definition BaseObject.h:23
virtual ~BaseObject()=default