Gaudi Framework, version v21r6

Home   Generated: 11 Nov 2009

ToStream.h File Reference


Detailed Description

implemenattiono fvarioud functions for streaming.

this functionality is essenital for usag eof varuodu types as property for the various Gaudi components

Attention:
the implemenation of the specific specializations must be done before the inclusion of this file
Todo:
ToStream.h : reimplement in terms of functors, to allow easier especializations

Definition in file ToStream.h.

#include <iostream>
#include <iomanip>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <string>
#include <sstream>
#include "GaudiKernel/Map.h"
#include "GaudiKernel/HashMap.h"
#include "GaudiKernel/VectorMap.h"

Include dependency graph for ToStream.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Gaudi
namespace  Gaudi::Utils

Defines

#define GAUDIPROPERTYPARSERS_PARSERVALUETOSTREAM_H   1

Functions

template<class TYPE>
std::ostreamGaudi::Utils::toStream (const TYPE &obj, std::ostream &s)
 the generic implementation of the printout to the std::ostream
template<class ITERATOR>
std::ostreamGaudi::Utils::toStream (ITERATOR first,ITERATOR last,std::ostream &s,const std::string &open,const std::string &close,const std::string &delim)
 the helper function to print the sequence
std::ostreamGaudi::Utils::toStream (const std::string &obj, std::ostream &s)
 the printtout of the strings.
std::ostreamGaudi::Utils::toStream (const bool obj, std::ostream &s)
 the printout of boolean values "a'la Python"
std::ostreamGaudi::Utils::toStream (const float obj, std::ostream &s, const int prec=6)
 the printout of float values with the reasonable precision
std::ostreamGaudi::Utils::toStream (const double obj, std::ostream &s, const int prec=8)
 the printout of double values with the reasonable precision
std::ostreamGaudi::Utils::toStream (const long double obj, std::ostream &s, const int prec=10)
 the printout of long double values with the reasonable precision
template<class KTYPE, class VTYPE>
std::ostreamGaudi::Utils::toStream (const std::pair< KTYPE, VTYPE > &obj, std::ostream &s)
 the partial template specialization of std::pair<KTYPE,VTYPE> printout the pair is printed a'la Python tuple: " ( a , b )"
template<class TYPE, class ALLOCATOR>
std::ostreamGaudi::Utils::toStream (const std::vector< TYPE, ALLOCATOR > &obj, std::ostream &s)
 the partial template specialization of std::vector<TYPE,ALLOCATOR> printout.
template<class TYPE, class ALLOCATOR>
std::ostreamGaudi::Utils::toStream (const std::list< TYPE, ALLOCATOR > &obj, std::ostream &s)
 the partial template specialization of std::list<TYPE,ALLOCATOR> printout.
template<class TYPE, class CMP, class ALLOCATOR>
std::ostreamGaudi::Utils::toStream (const std::set< TYPE, CMP, ALLOCATOR > &obj, std::ostream &s)
 the partial template specialization of std::set<TYPE,CMP,ALLOCATOR> printout.
template<class KTYPE, class VTYPE, class CMP, class ALLOCATOR>
std::ostreamGaudi::Utils::toStream (const std::map< KTYPE, VTYPE, CMP, ALLOCATOR > &obj, std::ostream &s)
 the partial template specialization of std::map<KTYPE,VTYPE,CMP,ALLOCATOR> printout the map is printed a'la Python dict: " ( a : b , c: d , e : f )"
template<class KTYPE, class VTYPE, class CMP, class ALLOCATOR>
std::ostreamGaudi::Utils::toStream (const GaudiUtils::VectorMap< KTYPE, VTYPE, CMP, ALLOCATOR > &obj, std::ostream &s)
 the partial template specialization of GaudiUtils::VectorMap<KTYPE,VTYPE,CMP,ALLOCATOR> printout the map is printed a'la Python dict: " ( a : b , c: d , e : f )"
template<class KTYPE, class VTYPE, class MAP>
std::ostreamGaudi::Utils::toStream (const GaudiUtils::Map< KTYPE, VTYPE, MAP > &obj, std::ostream &s)
 the partial template specialization of GaudiUtils::Map<KTYPE,VTYPE,MAP> printout the map is printed a'la Python dict: " ( a : b , c: d , e : f )"
template<class KTYPE, class VTYPE, class HASH, class MAP>
std::ostreamGaudi::Utils::toStream (const GaudiUtils::HashMap< KTYPE, VTYPE, HASH, MAP > &obj, std::ostream &s)
 the partial template specialization of GaudiUtils::HashMap<KTYPE,VTYPE,HASH,MAP> printout the map is printed a'la Python dict: " ( a : b , c: d , e : f )"
template<class TYPE, unsigned int N>
std::ostreamGaudi::Utils::toStream (TYPE(&obj)[N], std::ostream &s)
 the specialization for C-arrays, a'la python tuple
template<class TYPE, unsigned int N>
std::ostreamGaudi::Utils::toStream (const TYPE(&obj)[N], std::ostream &s)
 the specialization for C-arrays, a'la python tuple
template<unsigned int N>
std::ostreamGaudi::Utils::toStream (char(&obj)[N], std::ostream &s)
 the specialization for C-string, a'la python tuple
template<unsigned int N>
std::ostreamGaudi::Utils::toStream (const char(&obj)[N], std::ostream &s)
 the specialization for C-string, a'la python tuple
std::ostreamGaudi::Utils::toStream (const char *obj, std::ostream &s)
 the specialization for C-string, a'la python tuple
template<class TYPE>
std::string Gaudi::Utils::toString (const TYPE &obj)
 the generic implementation of the type conversion to the string


Define Documentation

#define GAUDIPROPERTYPARSERS_PARSERVALUETOSTREAM_H   1

Definition at line 6 of file ToStream.h.


Generated at Wed Nov 11 16:28:12 2009 for Gaudi Framework, version v21r6 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004