ATLAS Offline Software
Loading...
Searching...
No Matches
BaseTOB.h
Go to the documentation of this file.
1// Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
3#ifndef TopoCore_BaseTOB
4#define TopoCore_BaseTOB
5
6
8#include <iosfwd>
9#include <cstdint>
10
11namespace TCS {
12
13 class BaseTOB {
14 public:
15 BaseTOB(uint32_t roiWord, const std::string_view tobType);
16 virtual ~BaseTOB();
17
18 virtual void print(std::ostream&) const = 0;
19
20 virtual inputTOBType_t tobType() const = 0;
21
22 uint32_t roiWord() const { return m_roiWord; }
23
24 const std::string& tobName() const { return m_tobName; }
25
26 static size_t instances() { return 0; }
27
28 protected:
29 int sizeCheck(int value, unsigned int size) const;
30 int sizeCheckM(int value, unsigned int size) const;
31
32 unsigned int sizeCheck(unsigned int value, unsigned int size) const;
33
34
35 private:
36
37 uint32_t m_roiWord{};
38 std::string m_tobName;
39
40 };
41
42std::ostream & operator<< (std::ostream & o, const TCS::BaseTOB&);
43
44}
45
46#endif
size_t size() const
Number of registered mappings.
const std::string & tobName() const
Definition BaseTOB.h:24
virtual void print(std::ostream &) const =0
virtual ~BaseTOB()
int sizeCheck(int value, unsigned int size) const
Definition BaseTOB.cxx:32
uint32_t roiWord() const
Definition BaseTOB.h:22
std::string m_tobName
Definition BaseTOB.h:38
int sizeCheckM(int value, unsigned int size) const
Definition BaseTOB.cxx:19
BaseTOB(uint32_t roiWord, const std::string_view tobType)
Definition BaseTOB.cxx:11
static size_t instances()
Definition BaseTOB.h:26
uint32_t m_roiWord
Definition BaseTOB.h:37
virtual inputTOBType_t tobType() const =0
std::ostream & operator<<(std::ostream &os, const TCS::Bin &bin)