2 #ifndef GAUDIPROPERTYPARSERS_PARSERVALUETOSTREAM_H 3 #define GAUDIPROPERTYPARSERS_PARSERVALUETOSTREAM_H 1 17 #include <type_traits> 62 template <
class ITERATOR>
78 auto c = ( std::string::npos == obj.
find(
'\'' ) ?
'\'' :
'\"' );
79 return s <<
c << obj <<
c;
121 template <
class KTYPE,
class VTYPE>
124 return toStream( obj.second,
toStream( obj.first, s <<
"( " ) <<
" , " ) <<
" )";
133 template <
class TYPE,
class ALLOCATOR>
145 template <
class TYPE,
class ALLOCATOR>
157 template <
class TYPE,
class CMP,
class ALLOCATOR>
170 template <
class KTYPE,
class VTYPE,
class CMP,
class ALLOCATOR>
189 template <
class KTYPE,
class VTYPE,
class CMP,
class ALLOCATOR>
208 template <
class KTYPE,
class VTYPE,
class MAP>
227 template <
class KTYPE,
class VTYPE,
class HASH,
class MAP>
238 template <
class TYPE,
unsigned int N>
241 return toStream( obj, obj + N, s,
"( ",
" )",
" , " );
248 template <
class TYPE, std::
size_t N>
258 template <
unsigned int N>
275 template <
class TYPE>
292 template <
class ITERATOR>
308 template <
class Tuple, std::
size_t N>
317 template <
class Tuple>
331 template <
typename... Args>
334 return TuplePrinter<decltype( tuple ),
sizeof...( Args )>::
toStream( tuple, s <<
" ( " ) <<
" ) ";
345 template <
class TYPE>
349 std::ios::fmtflags orig_flags = s.
flags();
350 s.
setf( std::ios::showpoint );
352 s.
flags( orig_flags );
A bit modified version of 'Loki::AssocVector' associative vector from Loki library by Andrei Alexandr...
Extension of the STL map.
std::ostream & 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
static std::ostream & toStream(const Tuple &t, std::ostream &s)
AttribStringParser::Iterator end(const AttribStringParser &)
std::string toString(const TYPE &obj)
the generic implementation of the type conversion to the string
Provide serialization function (output only) for some common STL classes (vectors, lists, pairs, maps) plus GaudiUtils::Map and GaudiUtils::HashMap.
Stream & ostream_joiner(Stream &os, Iterator first, Iterator last, Separator sep, OutputElement output=OutputElement{})
Common class providing an architecture-independent hash map.
static std::ostream & toStream(const Tuple &t, std::ostream &s)
AttribStringParser::Iterator begin(const AttribStringParser &parser)
Helper functions to set/get the application return code.