Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/Geant4/tools/waxml/begend is written in an unsupported language. File is not indexed.

0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003 
0004 #ifndef tools_waxml_begend
0005 #define tools_waxml_begend
0006 
0007 #include <fstream>
0008 
0009 #include "../sout"
0010 #include "../version"
0011 
0012 namespace tools {
0013 namespace waxml {
0014 
0015   inline void begin(std::ostream& a_writer){
0016     // Header :
0017     a_writer << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << std::endl;
0018     a_writer << "<!DOCTYPE aida SYSTEM"
0019              << " \"http://aida.freehep.org/schemas/3.2.1/aida.dtd\">"
0020              << std::endl;
0021 
0022     std::string sAIDA_VERSION("3.2.1");
0023 
0024     a_writer << "<aida version=" << sout(sAIDA_VERSION) << ">"
0025              << std::endl;
0026     a_writer << "  <implementation package=" << sout("tools")
0027              << " version=" << sout(TOOLS_VERSION) << "/>"
0028              << std::endl;
0029   }
0030 
0031   inline void end(std::ostream& a_writer){
0032     a_writer << "</aida>" << std::endl;
0033   }
0034 
0035 }}
0036 
0037 #endif