Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
visualization
HepRep
include
cheprep
IndentPrintWriter.h
Go to the documentation of this file.
1
// Copyright FreeHEP, 2005.
2
#ifndef CHEPREP_INDENTPRINTWRITER_H
3
#define CHEPREP_INDENTPRINTWRITER_H 1
4
5
#include "
cheprep/config.h
"
6
7
#include <iostream>
8
#include <string>
9
20
namespace
cheprep {
21
22
class
IndentPrintWriter
{
23
24
public
:
25
IndentPrintWriter
(std::ostream* out,
int
level = 0);
26
virtual
~IndentPrintWriter
();
27
28
void
close
();
29
IndentPrintWriter
&
operator<<
(
const
std::string &
s
);
30
IndentPrintWriter
&
operator<<
(std::ostream& (*pf)(std::ostream&));
31
void
println
(
const
std::string & s);
32
void
print
(
const
std::string & s);
33
void
println
();
34
void
indent
();
35
void
outdent
();
36
int
getIndent
()
const
;
37
void
setIndent
(
const
int
level);
38
std::string
getIndentString
()
const
;
39
void
setIndentString
(
const
std::string & indentString);
40
41
private
:
42
void
doIndent();
43
44
std::ostream* out;
45
bool
closed;
46
int
indentLevel;
47
bool
indented;
48
std::string indentString;
49
};
50
51
}
// cheprep
52
53
54
#endif
55
Generated on Sat May 25 2013 14:34:14 for Geant4 by
1.8.4