ATLAS Offline Software
Loading...
Searching...
No Matches
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;
25}
std::vector< std::string > m_attributeValues
std::vector< std::string > m_attributeNames

◆ 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;
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;
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.

26{};

◆ 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.

28{};

◆ m_nodeIndex

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

Definition at line 27 of file IElementStreamer.h.

27{};

◆ 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: