ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
SCT_CalibAlgs::IElementStreamer Class Reference

#include <IElementStreamer.h>

Inheritance diagram for SCT_CalibAlgs::IElementStreamer:
Collaboration diagram for SCT_CalibAlgs::IElementStreamer:

Public Member Functions

 IElementStreamer (const std::string &name, const std::map< std::string, std::string > &attributeMap, std::ostream &os=std::cout)
 
 IElementStreamer (const std::string &name, const std::string &attributeName, const std::string &attributeValue, std::ostream &os=std::cout)
 
 IElementStreamer (const std::string &name, const std::vector< std::string > &attributeNames, const std::vector< std::string > &attributeValues, std::ostream &os=std::cout)
 
 ~IElementStreamer ()
 
template<class T >
void value (const T &v)
 

Protected Attributes

std::string m_name
 
std::vector< std::string > m_attributeNames
 
std::vector< std::string > m_attributeValues
 
std::ostream & m_os
 
unsigned int m_depth {}
 
unsigned int m_nodeIndex {}
 
unsigned int m_nodeId {}
 

Detailed Description

Definition at line 19 of file IElementStreamer.h.

Constructor & Destructor Documentation

◆ IElementStreamer() [1/3]

SCT_CalibAlgs::IElementStreamer::IElementStreamer ( const std::string &  name,
const std::map< std::string, std::string > &  attributeMap,
std::ostream &  os = std::cout 
)

Definition at line 15 of file IElementStreamer.cxx.

15  :
17  std::map<std::string, std::string>::const_iterator i{attributeMap.begin()};
18  std::map<std::string, std::string>::const_iterator end{attributeMap.end()};
19  for (; i!=end; ++i) {
20  m_attributeNames.push_back(i->first);
21  m_attributeValues.push_back(i->second);
22  }
23  ++m_depth;
24  ++m_nodeIndex;
25 }

◆ IElementStreamer() [2/3]

SCT_CalibAlgs::IElementStreamer::IElementStreamer ( const std::string &  name,
const std::string &  attributeName,
const std::string &  attributeValue,
std::ostream &  os = std::cout 
)

Definition at line 33 of file IElementStreamer.cxx.

33  :
35  m_attributeNames.push_back(attributeName);
36  m_attributeValues.push_back(attributeValue);
37  ++m_depth;
38  ++m_nodeIndex;
39 }

◆ IElementStreamer() [3/3]

SCT_CalibAlgs::IElementStreamer::IElementStreamer ( const std::string &  name,
const std::vector< std::string > &  attributeNames,
const std::vector< std::string > &  attributeValues,
std::ostream &  os = std::cout 
)

Definition at line 27 of file IElementStreamer.cxx.

27  :
28  m_name{name}, m_attributeNames{attributeNames}, m_attributeValues{attributeValues}, m_os{os}, m_nodeIndex{0}, m_nodeId{m_nodeIndex} {
29  ++m_depth;
30  ++m_nodeIndex;
31 }

◆ ~IElementStreamer()

SCT_CalibAlgs::IElementStreamer::~IElementStreamer ( )

Definition at line 41 of file IElementStreamer.cxx.

41  {
42  --m_depth;
43 }

Member Function Documentation

◆ value()

template<class T >
void SCT_CalibAlgs::IElementStreamer::value ( const T &  v)
inline

Definition at line 36 of file IElementStreamer.h.

36  {
37  m_os<<v;
38  }

Member Data Documentation

◆ m_attributeNames

std::vector<std::string> SCT_CalibAlgs::IElementStreamer::m_attributeNames
protected

Definition at line 23 of file IElementStreamer.h.

◆ m_attributeValues

std::vector<std::string> SCT_CalibAlgs::IElementStreamer::m_attributeValues
protected

Definition at line 24 of file IElementStreamer.h.

◆ m_depth

unsigned int SCT_CalibAlgs::IElementStreamer::m_depth {}
protected

Definition at line 26 of file IElementStreamer.h.

◆ m_name

std::string SCT_CalibAlgs::IElementStreamer::m_name
protected

Definition at line 22 of file IElementStreamer.h.

◆ m_nodeId

unsigned int SCT_CalibAlgs::IElementStreamer::m_nodeId {}
protected

Definition at line 28 of file IElementStreamer.h.

◆ m_nodeIndex

unsigned int SCT_CalibAlgs::IElementStreamer::m_nodeIndex {}
protected

Definition at line 27 of file IElementStreamer.h.

◆ m_os

std::ostream& SCT_CalibAlgs::IElementStreamer::m_os
protected

Definition at line 25 of file IElementStreamer.h.


The documentation for this class was generated from the following files:
SCT_CalibAlgs::IElementStreamer::m_attributeValues
std::vector< std::string > m_attributeValues
Definition: IElementStreamer.h:24
SCT_CalibAlgs::IElementStreamer::m_name
std::string m_name
Definition: IElementStreamer.h:22
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
lumiFormat.i
int i
Definition: lumiFormat.py:92
SCT_CalibAlgs::IElementStreamer::m_nodeId
unsigned int m_nodeId
Definition: IElementStreamer.h:28
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
SCT_CalibAlgs::IElementStreamer::m_nodeIndex
unsigned int m_nodeIndex
Definition: IElementStreamer.h:27
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
python.PyAthena.v
v
Definition: PyAthena.py:157
SCT_CalibAlgs::IElementStreamer::m_attributeNames
std::vector< std::string > m_attributeNames
Definition: IElementStreamer.h:23
SCT_CalibAlgs::IElementStreamer::m_os
std::ostream & m_os
Definition: IElementStreamer.h:25
SCT_CalibAlgs::IElementStreamer::m_depth
unsigned int m_depth
Definition: IElementStreamer.h:26