| The Gaudi Framework v32r1 (f65d50dc)

Static Public Member Functions | List of all members
GaudiAlg::PrintTuple Class Reference

collection of useful utilities to print INTuple object (currently used for implementation of class GaudiTupleAlg and class GaudiTupleTool) More...

`#include <GaudiAlg/Print.h>`

## Static Public Member Functions
static std::string | print (const INTuple *tuple, const GaudiAlg::TupleID &ID)
static std::string | print (const INTuple *tuple)

## Detailed Description

collection of useful utilities to print INTuple object (currently used for implementation of class GaudiTupleAlg and class GaudiTupleTool)

See also
  INTuple

Author
  Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@l.nosp@m.app..nosp@m.in2p3.nosp@m..fr

Date
  2005-08-04

Definition at line 137 of file Print.h.

## Member Function Documentation

## ◆ print() [1/2]

std::string GaudiAlg::PrintTuple::print | ( | const INTuple * | tuple,
|  | const GaudiAlg::TupleID & | ID
| ) |  |
| static

Definition at line 134 of file Print.cpp.

134 {
135 boost::format fmt( " ID=%|-12|%|18t|%|-s|" );
136 fmt % ID.idAsString() % print( tuple );
137 return fmt.str();
138 }
GaudiAlg::PrintTuple::print
static std::string print(const INTuple *tuple, const GaudiAlg::TupleID &ID)
Definition: Print.cpp:134
format
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition: MsgStream.cpp:109
GaudiAlg::ID::idAsString
GAUDI_API LiteralID idAsString() const
Return ID as string, for both numeric and literal IDs.
Definition: GaudiHistoID.cpp:20

## ◆ print() [2/2]

std::string GaudiAlg::PrintTuple::print | ( | const INTuple * | tuple | ) |
| static

Definition at line 154 of file Print.cpp.

154 {
155 boost::format fmt( "Title=\"%|.39s|\" %|48t|#items=%|-3|%|50t|{%|.81s|}" );
156 fmt % tuple->title();
157 fmt % tuple->items().size();
158 fmt % _print( tuple->items() );
159 return fmt.str();
160 }
format
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition: MsgStream.cpp:109
INTuple::title
virtual const std::string & title() const =0
Object title.
std::vector::size
T size(T... args)
INTuple::items
virtual ItemContainer & items()=0
Access item container.

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

- GaudiAlg/GaudiAlg/Print.h
- GaudiAlg/src/lib/Print.cpp