Gaudi Framework, version v23r5
Home
Generated: Wed Nov 28 2012
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
GaudiPython
GaudiPython
Printer.h
Go to the documentation of this file.
1
// $Id: Printer.h,v 1.2 2005/10/14 12:57:13 mato Exp $
2
// ============================================================================
3
#ifndef GAUDIPYTHON_PRINTER_H
4
#define GAUDIPYTHON_PRINTER_H 1
5
// ============================================================================
6
// Include files
7
// ============================================================================
8
// STD & STL
9
// ============================================================================
10
#include <
string
>
11
#include <
sstream
>
12
// ============================================================================
13
// GaudiKernel
14
// ============================================================================
15
#include "
GaudiKernel/ContainedObject.h
"
16
#include "
GaudiKernel/DataObject.h
"
17
// ============================================================================
18
19
namespace
GaudiPython
20
{
27
template
<
class
TYPE>
28
struct
Printer
29
{
30
static
std::string
print
31
(
const
TYPE&
object
)
32
{
33
std::stringstream
stream ;
34
stream <<
object
<<
std::endl
;
35
return
stream.str() ;
36
} ;
37
} ;
38
template
<>
39
struct
Printer
<
ContainedObject
>
40
{
41
static
std::string
print
42
(
const
ContainedObject
&
object
)
43
{
44
std::ostringstream
stream ;
45
object
.fillStream( stream ) ;
46
return
stream.
str
() ;
47
} ;
48
} ;
49
template
<>
50
struct
Printer
<
DataObject
>
51
{
52
static
std::string
print
(
const
DataObject
&
type
)
53
{
54
std::ostringstream
stream ;
55
type.
fillStream
( stream ) ;
56
return
stream.str() ;
57
} ;
58
};
59
60
}
// end of namespace GaudiPython
61
62
#endif // GAUDIPYTHON_PRINTER_H
63
// ============================================================================
Generated at Wed Nov 28 2012 12:17:17 for Gaudi Framework, version v23r5 by
Doxygen
version 1.8.2 written by
Dimitri van Heesch
, © 1997-2004