base class for XML writer tools for 2004 event display
More...
#include <TBXMLWriterToolBase.h>
|
| | TBXMLWriterToolBase (const std::string &type, const std::string &name, const IInterface *parent) |
| virtual StatusCode | writeRunFiles (const std::string &fileDir, unsigned int runNumber)=0 |
| virtual StatusCode | writeEvent (std::ostream &theFile, const std::string &entryTag)=0 |
| virtual void | openDictionary (std::ostream &outStream, const std::string &dictName, const std::vector< std::string > &listOfElements) |
| virtual void | openDictionary (std::ostream &outStream, const std::string &dictName) |
| virtual void | closeDictionary (std::ostream &outStream) |
| virtual void | addDictElement (std::ostream &outStream, const std::string &theElement, const std::vector< std::string > &listOfElements) |
| virtual void | addAttributes (std::ostream &outStream, const std::string &theElement, const std::vector< std::string > &listOfAttributes) |
| virtual void | openElement (std::ostream &outStream, const std::string &theElement, const std::vector< std::string > &listOfAttr, const std::vector< std::string > &listOfValues) |
| virtual void | closeElement (std::ostream &outStream, const std::string &theElement) |
| virtual void | closeElement (std::ostream &outStream) |
| virtual void | closeAllElements (std::ostream &outStream) |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| | remove all handles from I/O resolution
|
| std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| | Add StoreName to extra input/output deps as needed.
|
base class for XML writer tools for 2004 event display
Definition at line 16 of file TBXMLWriterToolBase.h.
◆ StoreGateSvc_t
◆ TBXMLWriterToolBase()
| TBXMLWriterToolBase::TBXMLWriterToolBase |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
|
inlineprotected |
◆ ~TBXMLWriterToolBase()
| virtual TBXMLWriterToolBase::~TBXMLWriterToolBase |
( |
| ) |
|
|
inlinevirtual |
◆ addAttributes()
| void TBXMLWriterToolBase::addAttributes |
( |
std::ostream & | outStream, |
|
|
const std::string & | theElement, |
|
|
const std::vector< std::string > & | listOfAttributes ) |
|
protectedvirtual |
Definition at line 93 of file TBXMLWriterToolBase.cxx.
97{
98 outStream << " <!ATTLIST " << theElement << std::endl;
99 for (
unsigned int i=0;
i<listOfAttr.size();
i++ )
100 {
101 outStream <<
" " << listOfAttr[
i] << std::endl;
102 }
103 outStream << ">" << std::endl;
104}
◆ addDictElement()
| void TBXMLWriterToolBase::addDictElement |
( |
std::ostream & | outStream, |
|
|
const std::string & | theElement, |
|
|
const std::vector< std::string > & | listOfElements ) |
|
protectedvirtual |
Definition at line 59 of file TBXMLWriterToolBase.cxx.
63{
64 outStream << "<!ELEMENT " << theElement;
65
66 if ( listOfElements.size() == 0 )
67 {
68 outStream << ">" << std::endl;
69 }
70 else
71 {
72
73 if ( listOfElements[0] == "ANY" ||
74 listOfElements[0] == "EMPTY" ||
75 listOfElements[0] == "ALL" )
76 {
77 outStream << " " << listOfElements[0] << " >" << std::endl;
78 }
79 else
80 {
81 outStream << " (" << listOfElements[0];
82 for (
unsigned int i=1;
i<listOfElements.size();
i++ )
83 {
84 outStream <<
"," << listOfElements[
i];
85 }
86 outStream << ") >" << std::endl;
87 }
88 }
89}
◆ closeAllElements()
| void TBXMLWriterToolBase::closeAllElements |
( |
std::ostream & | outStream | ) |
|
|
protectedvirtual |
◆ closeDictionary()
| void TBXMLWriterToolBase::closeDictionary |
( |
std::ostream & | outStream | ) |
|
|
protectedvirtual |
◆ closeElement() [1/2]
| void TBXMLWriterToolBase::closeElement |
( |
std::ostream & | outStream | ) |
|
|
protectedvirtual |
◆ closeElement() [2/2]
| void TBXMLWriterToolBase::closeElement |
( |
std::ostream & | outStream, |
|
|
const std::string & | theElement ) |
|
protectedvirtual |
Definition at line 141 of file TBXMLWriterToolBase.cxx.
143{
144 std::vector<std::string>::iterator inVec =
147 {
148 outStream << "</" << (*inVec) << ">" << std::endl;
150 }
151 else
152 {
153 outStream << "<!-- XML Structural Problem! \n\n"
154 << " cannot find an element " << theElement << "!\n\n"
155 << "-->" << std::endl;
156 }
157}
std::string find(const std::string &s)
return a remapped string
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ finalize() [1/2]
| virtual StatusCode TBXMLWriterToolBase::finalize |
( |
| ) |
|
|
inlineoverridevirtual |
◆ finalize() [2/2]
| virtual StatusCode TBXMLWriterToolBase::finalize |
( |
std::ostream & | outStream | ) |
|
|
inlinevirtual |
◆ initialize()
| virtual StatusCode TBXMLWriterToolBase::initialize |
( |
| ) |
|
|
inlineoverridevirtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ openDictionary() [1/2]
| void TBXMLWriterToolBase::openDictionary |
( |
std::ostream & | outStream, |
|
|
const std::string & | dictName ) |
|
protectedvirtual |
◆ openDictionary() [2/2]
| void TBXMLWriterToolBase::openDictionary |
( |
std::ostream & | outStream, |
|
|
const std::string & | dictName, |
|
|
const std::vector< std::string > & | listOfElements ) |
|
protectedvirtual |
Definition at line 20 of file TBXMLWriterToolBase.cxx.
24{
25
28
29
32
33
34 outStream << "<!DOCTYPE " << dictName
35 << " [" << std::endl;
36
37
39}
◆ openElement()
| void TBXMLWriterToolBase::openElement |
( |
std::ostream & | outStream, |
|
|
const std::string & | theElement, |
|
|
const std::vector< std::string > & | listOfAttr, |
|
|
const std::vector< std::string > & | listOfValues ) |
|
protectedvirtual |
Definition at line 108 of file TBXMLWriterToolBase.cxx.
114{
116 outStream << "<" << theElement;
117 if ( listOfAttr.size() > 0 && listOfValues.size() == listOfAttr.size() )
118 {
119 for (
unsigned int i=0;
i<listOfAttr.size();
i++ )
120 {
121 outStream <<
" " << listOfAttr[
i] <<
"="
125 }
126 }
127 outStream << ">" << std::endl;
128}
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ writeEvent()
| virtual StatusCode TBXMLWriterToolBase::writeEvent |
( |
std::ostream & | theFile, |
|
|
const std::string & | entryTag ) |
|
protectedpure virtual |
◆ writeOut()
| virtual StatusCode TBXMLWriterToolBase::writeOut |
( |
std::ostream & | outStream, |
|
|
const std::string & | entryTag = " " ) |
|
inlinevirtual |
◆ writeRunFiles()
| virtual StatusCode TBXMLWriterToolBase::writeRunFiles |
( |
const std::string & | fileDir, |
|
|
unsigned int | runNumber ) |
|
protectedpure virtual |
◆ m_detStore
◆ m_dictionary
| std::string TBXMLWriterToolBase::m_dictionary |
|
protected |
◆ m_doubleQuote
| const std::string TBXMLWriterToolBase::m_doubleQuote = "\042" |
|
staticprotected |
◆ m_elementList
| std::vector<std::string> TBXMLWriterToolBase::m_elementList |
|
protected |
◆ m_evtStore
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: