ATLAS Offline Software
Loading...
Searching...
No Matches
XMLFormatTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef JIVEXML__XMLFORMATTOOL_H
6#define JIVEXML__XMLFORMATTOOL_H
7
10
11namespace JiveXML{
12
20
21 class XMLFormatTool : virtual public IFormatTool, public AthAlgTool{
22
23 public:
24
26 XMLFormatTool( const std::string&, const std::string&, const IInterface*);
27
29 virtual StatusCode initialize() override;
30
32 virtual StatusCode finalize() override;
33
35 virtual StatusCode SetTag ( const TagType tag ) override;
36
38 virtual StatusCode StartEvent( const unsigned long EventNumber, const unsigned int RunNumber,
39 const std::string& DateTime,
40 const unsigned int lumiBlock,
41 const std::string& eventProperty,
42 const std::string& geometryVersion ) override;
43
45 virtual StatusCode EndEvent() override;
46
48 virtual StatusCode AddToEvent( const std::string& component,
49 const std::string& key,
50 const DataMap* aMap) override;
51
53 virtual const std::ostringstream* getFormattedEvent() const override;
54
55
56 private:
57
59 std::ostringstream* m_EventBuffer;
60
62 std::string m_release;
63
64 };
65
66
67} //namespace
68
69#endif
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Abstract interface to event data formatting classes.
Definition IFormatTool.h:23
virtual StatusCode EndEvent() override
Finialize this event.
virtual const std::ostringstream * getFormattedEvent() const override
Return the formated stringstream.
std::string m_release
the release tag
virtual StatusCode initialize() override
Initialize.
XMLFormatTool(const std::string &, const std::string &, const IInterface *)
Constructor.
std::ostringstream * m_EventBuffer
the string buffer that will hold the complete event
virtual StatusCode AddToEvent(const std::string &component, const std::string &key, const DataMap *aMap) override
Append a formatted version of one event component.
virtual StatusCode SetTag(const TagType tag) override
Set additional tags.
virtual StatusCode StartEvent(const unsigned long EventNumber, const unsigned int RunNumber, const std::string &DateTime, const unsigned int lumiBlock, const std::string &eventProperty, const std::string &geometryVersion) override
Start a new event.
virtual StatusCode finalize() override
Finalize.
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
std::map< std::string, DataVect > DataMap
Definition DataType.h:59
std::pair< std::string, std::string > TagType
Defines a tag as a pair of strings.
Definition DataType.h:62