ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
XMLHepRepWriter.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file XMLHepRepWriter.h
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
35
namespace
cheprep {
36
37
class
XMLHepRepWriter
:
public
virtual
HEPREP::HepRepWriter
{
38
39
private
:
40
std::ostream *
out
;
41
bool
compress
;
42
std::string
nameSpace
;
43
AbstractXMLWriter
*
xml
;
44
cheprep::ZipOutputStream
*
zip
;
45
cheprep::GZIPOutputStream
*
gz
;
46
std::map<std::string, std::string>
properties
;
47
48
public
:
49
XMLHepRepWriter
(std::ostream*
out
,
bool
randomAccess,
bool
compress
);
50
~XMLHepRepWriter
();
51
52
bool
addProperty
(std::string key, std::string
value
);
53
bool
close
();
54
bool
write
(
HEPREP::HepRep
* heprep, std::string
name
);
55
bool
write
(std::vector<std::string> layers);
56
bool
write
(
HEPREP::HepRepTypeTree
* typeTree);
57
bool
write
(
HEPREP::HepRepType
* type);
58
bool
write
(
HEPREP::HepRepTreeID
* treeID);
59
bool
write
(
HEPREP::HepRepAction
* action);
60
bool
write
(
HEPREP::HepRepInstanceTree
* instanceTree);
61
bool
write
(
HEPREP::HepRepInstance
*
instance
);
62
bool
write
(
HEPREP::HepRepPoint
*
point
);
63
bool
write
(
HEPREP::HepRepAttribute
* attribute);
64
bool
write
(
HEPREP::HepRepDefinition
* definition);
65
bool
write
(
HEPREP::HepRepAttValue
* attValue);
66
bool
write
(
HEPREP::HepRepAttDef
* attDef);
67
};
68
69
}
// cheprep
70
71
72
#endif
geant4
tree
geant4-10.6-release
source
visualization
HepRep
include
cheprep
XMLHepRepWriter.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:54
using
1.8.2 with
ECCE GitHub integration