Geant4
9.6.0
Toolkit for the simulation of the passage of particles through matter
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
n
o
p
r
s
t
z
Variables
Typedefs
b
d
f
g
h
i
n
p
s
t
u
y
Enumerations
Enumerator
_
a
c
d
e
f
g
h
i
k
l
n
o
p
r
s
t
u
v
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
Enumerations
c
d
e
f
g
l
m
o
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
a
b
c
d
g
h
i
k
o
q
r
s
t
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
m
n
o
p
r
s
t
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
y
z
Enumerations
b
c
d
e
g
j
l
m
s
t
u
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Loading...
Searching...
No Matches
XMLHepRepWriter.h
Go to the documentation of this file.
1
// Copyright FreeHEP, 2005.
2
#ifndef CHEPREP_XMLHEPREPWRITER_H
3
#define CHEPREP_XMLHEPREPWRITER_H 1
4
5
#include "
cheprep/config.h
"
6
7
#include <iostream>
8
#include <string>
9
#include <stack>
10
#include <set>
11
#include <vector>
12
#include <map>
13
14
#include "
HEPREP/HepRep.h
"
15
#include "
HEPREP/HepRepFactory.h
"
16
#include "
HEPREP/HepRepWriter.h
"
17
#include "
HEPREP/HepRepPoint.h
"
18
#include "
HEPREP/HepRepInstance.h
"
19
#include "
HEPREP/HepRepInstanceTree.h
"
20
#include "
HEPREP/HepRepTreeID.h
"
21
#include "
HEPREP/HepRepAction.h
"
22
#include "
HEPREP/HepRepType.h
"
23
#include "
HEPREP/HepRepTypeTree.h
"
24
#include "
HEPREP/HepRepAttDef.h
"
25
#include "
HEPREP/HepRepAttValue.h
"
26
#include "
HEPREP/HepRepAttribute.h
"
27
28
#include "
cheprep/AbstractXMLWriter.h
"
29
#include "
cheprep/ZipOutputStream.h
"
30
#include "
cheprep/GZIPOutputStream.h
"
31
32
/**
33
* @author Mark Donszelmann
34
* @version $Id: XMLHepRepWriter.h,v 1.4 2005-06-02 21:28:45 duns Exp $
35
*/
36
namespace
cheprep
{
37
38
class
XMLHepRepWriter
:
public
virtual
HEPREP::HepRepWriter
{
39
40
private
:
41
std::ostream *out;
42
bool
compress;
43
std::string nameSpace;
44
AbstractXMLWriter
*xml;
45
cheprep::ZipOutputStream
*zip;
46
cheprep::GZIPOutputStream
*gz;
47
std::map<std::string, std::string> properties;
48
49
public
:
50
XMLHepRepWriter
(std::ostream* out,
bool
randomAccess,
bool
compress
);
51
~XMLHepRepWriter
();
52
53
bool
addProperty
(std::string key, std::string value);
54
bool
close
();
55
bool
write
(
HEPREP::HepRep
* heprep, std::string name);
56
bool
write
(std::vector<std::string> layers);
57
bool
write
(
HEPREP::HepRepTypeTree
* typeTree);
58
bool
write
(
HEPREP::HepRepType
* type);
59
bool
write
(
HEPREP::HepRepTreeID
* treeID);
60
bool
write
(
HEPREP::HepRepAction
* action);
61
bool
write
(
HEPREP::HepRepInstanceTree
* instanceTree);
62
bool
write
(
HEPREP::HepRepInstance
* instance);
63
bool
write
(
HEPREP::HepRepPoint
* point);
64
bool
write
(
HEPREP::HepRepAttribute
* attribute);
65
bool
write
(
HEPREP::HepRepDefinition
* definition);
66
bool
write
(
HEPREP::HepRepAttValue
* attValue);
67
bool
write
(
HEPREP::HepRepAttDef
* attDef);
68
};
69
70
}
// cheprep
71
72
73
#endif
AbstractXMLWriter.h
GZIPOutputStream.h
HepRepAction.h
HepRepAttDef.h
HepRepAttValue.h
HepRepAttribute.h
HepRepFactory.h
HepRepInstanceTree.h
HepRepInstance.h
HepRepPoint.h
HepRepTreeID.h
HepRepTypeTree.h
HepRepType.h
HepRepWriter.h
HepRep.h
ZipOutputStream.h
HEPREP::HepRepAction
Definition:
HepRepAction.h:21
HEPREP::HepRepAttDef
Definition:
HepRepAttDef.h:21
HEPREP::HepRepAttValue
Definition:
HepRepAttValue.h:24
HEPREP::HepRepAttribute
Definition:
HepRepAttribute.h:29
HEPREP::HepRepDefinition
Definition:
HepRepDefinition.h:27
HEPREP::HepRepInstanceTree
Definition:
HepRepInstanceTree.h:28
HEPREP::HepRepInstance
Definition:
HepRepInstance.h:29
HEPREP::HepRepPoint
Definition:
HepRepPoint.h:25
HEPREP::HepRepTreeID
Definition:
HepRepTreeID.h:21
HEPREP::HepRepTypeTree
Definition:
HepRepTypeTree.h:26
HEPREP::HepRepType
Definition:
HepRepType.h:24
HEPREP::HepRepWriter
Definition:
HepRepWriter.h:35
HEPREP::HepRep
Definition:
HepRep.h:52
cheprep::AbstractXMLWriter
Definition:
AbstractXMLWriter.h:15
cheprep::GZIPOutputStream
Definition:
GZIPOutputStream.h:15
cheprep::XMLHepRepWriter
Definition:
XMLHepRepWriter.h:38
cheprep::XMLHepRepWriter::write
bool write(HEPREP::HepRep *heprep, std::string name)
Definition:
XMLHepRepWriter.cc:78
cheprep::XMLHepRepWriter::close
bool close()
Definition:
XMLHepRepWriter.cc:59
cheprep::XMLHepRepWriter::addProperty
bool addProperty(std::string key, std::string value)
Definition:
XMLHepRepWriter.cc:54
cheprep::XMLHepRepWriter::~XMLHepRepWriter
~XMLHepRepWriter()
Definition:
XMLHepRepWriter.cc:49
cheprep::ZipOutputStream
Definition:
ZipOutputStream.h:18
compress
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
Definition:
compress.cc:57
config.h
cheprep
Definition:
AbstractXMLWriter.h:13
geant4-v9.6.0
source
visualization
HepRep
include
cheprep
XMLHepRepWriter.h
Generated by
1.9.6