g4tools  5.4.0
begend
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_waxml_begend
5 #define tools_waxml_begend
6 
7 #include <fstream>
8 
9 #include "../sout"
10 #include "../version"
11 
12 namespace tools {
13 namespace waxml {
14 
15  inline void begin(std::ostream& a_writer){
16  // Header :
17  a_writer << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << std::endl;
18  a_writer << "<!DOCTYPE aida SYSTEM"
19  << " \"http://aida.freehep.org/schemas/3.2.1/aida.dtd\">"
20  << std::endl;
21 
22  std::string sAIDA_VERSION("3.2.1");
23 
24  a_writer << "<aida version=" << sout(sAIDA_VERSION) << ">"
25  << std::endl;
26  a_writer << " <implementation package=" << sout("tools")
27  << " version=" << sout(TOOLS_VERSION) << "/>"
28  << std::endl;
29  }
30 
31  inline void end(std::ostream& a_writer){
32  a_writer << "</aida>" << std::endl;
33  }
34 
35 }}
36 
37 #endif
tools::waxml::begin
void begin(std::ostream &a_writer)
Definition: begend:15
tools::sout
Definition: sout:17
tools
inlined C code : ///////////////////////////////////
Definition: aida_ntuple:26
TOOLS_VERSION
#define TOOLS_VERSION
Definition: version:10
tools::waxml::end
void end(std::ostream &a_writer)
Definition: begend:31