DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
DD4hep::Printer< T > Class Template Reference

Helper class template to implement ASCII object dumps. More...

#include <DD4hep/compact/Conversions.h>

Public Member Functions

 Printer (const Geometry::LCDD *l, std::ostream &stream, const std::string &p="")
 Initializing constructor of the functor. More...
 
void operator() (const T &value) const
 Callback operator to be specialized depending on the element type. More...
 
template<>
void operator() (const Handle< NamedObject > &val) const
 
template<>
void operator() (const Handle< TNamed > &val) const
 
template<>
void operator() (const Constant &val) const
 
template<>
void operator() (const Material &val) const
 
template<>
void operator() (const VisAttr &val) const
 
template<>
void operator() (const Readout &val) const
 
template<>
void operator() (const Region &val) const
 
template<>
void operator() (const RotationZYX &val) const
 
template<>
void operator() (const Position &val) const
 
template<>
void operator() (const Condition &val) const
 
template<>
void operator() (const LCDD *const &) const
 

Public Attributes

const Geometry::LCDDlcdd
 Reference to the detector description object. More...
 
std::ostream & os
 Reference to the output stream object, the Printer object should write. More...
 
std::string prefix
 Optional text prefix when formatting the output. More...
 

Detailed Description

template<typename T>
class DD4hep::Printer< T >

Helper class template to implement ASCII object dumps.

Small helper class to print objects

Author
M.Frank
Version
1.0

Definition at line 245 of file Printout.h.

Constructor & Destructor Documentation

template<typename T>
DD4hep::Printer< T >::Printer ( const Geometry::LCDD l,
std::ostream &  stream,
const std::string &  p = "" 
)
inline

Initializing constructor of the functor.

Definition at line 253 of file Printout.h.

Member Function Documentation

template<>
void DD4hep::Printer< Handle< NamedObject > >::operator() ( const Handle< NamedObject > &  val) const

Definition at line 42 of file ObjectPrintout.cpp.

References DD4hep::INFO, and DD4hep::printout().

template<>
void DD4hep::Printer< Handle< TNamed > >::operator() ( const Handle< TNamed > &  val) const

Definition at line 45 of file ObjectPrintout.cpp.

References DD4hep::INFO, and DD4hep::printout().

template<>
void DD4hep::Printer< Constant >::operator() ( const Constant val) const
template<>
void DD4hep::Printer< Material >::operator() ( const Material val) const
template<>
void DD4hep::Printer< VisAttr >::operator() ( const VisAttr val) const
template<>
void DD4hep::Printer< Readout >::operator() ( const Readout val) const

Definition at line 61 of file ObjectPrintout.cpp.

References DD4hep::INFO, and DD4hep::printout().

template<>
void DD4hep::Printer< Region >::operator() ( const Region val) const

Definition at line 65 of file ObjectPrintout.cpp.

References DD4hep::INFO, and DD4hep::printout().

template<>
void DD4hep::Printer< RotationZYX >::operator() ( const RotationZYX val) const

Definition at line 69 of file ObjectPrintout.cpp.

References DD4hep::INFO, and DD4hep::printout().

template<>
void DD4hep::Printer< Position >::operator() ( const Position val) const

Definition at line 74 of file ObjectPrintout.cpp.

References DD4hep::INFO, and DD4hep::printout().

template<>
void DD4hep::Printer< Condition >::operator() ( const Condition &  val) const

Definition at line 77 of file ObjectPrintout.cpp.

References DD4hep::INFO, and DD4hep::printout().

template<>
void DD4hep::Printer< const LCDD * >::operator() ( const LCDD *const &  ) const

Definition at line 133 of file ObjectPrintout.cpp.

template<typename T>
void DD4hep::Printer< T >::operator() ( const T value) const

Callback operator to be specialized depending on the element type.

Member Data Documentation

template<typename T>
const Geometry::LCDD* DD4hep::Printer< T >::lcdd

Reference to the detector description object.

Definition at line 247 of file Printout.h.

template<typename T>
std::ostream& DD4hep::Printer< T >::os

Reference to the output stream object, the Printer object should write.

Definition at line 249 of file Printout.h.

template<typename T>
std::string DD4hep::Printer< T >::prefix

Optional text prefix when formatting the output.

Definition at line 251 of file Printout.h.


The documentation for this class was generated from the following file: