ATLAS Offline Software
DataArray.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 
3 #ifndef L1TopoEvent_DataArray
4 #define L1TopoEvent_DataArray
5 
6 #include <iostream>
7 
8 namespace TCS {
9 
12  class DataArray {
13  public:
14  // constructor
15  DataArray(const std::string & name) : m_name(name) {};
16 
17  // destructor
18  virtual ~DataArray(){};
19 
20  const std::string & name() const { return m_name; }
21 
22  virtual void print(std::ostream&) const = 0;
23 
24  private:
25  std::string m_name;
26  };
27 
28  std::ostream & operator<< (std::ostream & o, const TCS::DataArray&);
29 }
30 
31 #endif
TCS::DataArray::DataArray
DataArray(const std::string &name)
Definition: DataArray.h:15
TCS::DataArray::~DataArray
virtual ~DataArray()
Definition: DataArray.h:18
TCS::DataArray::name
const std::string & name() const
Definition: DataArray.h:20
TCS::DataArray::print
virtual void print(std::ostream &) const =0
TCS::DataArray::m_name
std::string m_name
Definition: DataArray.h:25
TCS::DataArray
base class for TOB arrays
Definition: DataArray.h:12
TCS
Definition: Global/GlobalSimulation/src/IO/Decision.h:18
TCS::operator<<
std::ostream & operator<<(std::ostream &, const TCS::CountingConnector &)
Definition: CountingConnector.cxx:93