inlib
1.2.0
|
00001 // Copyright (C) 2010, Guy Barrand. All rights reserved. 00002 // See the file inlib.license for terms. 00003 00004 #ifndef inlib_waxml_begend 00005 #define inlib_waxml_begend 00006 00007 #include <fstream> 00008 00009 #include "../sout" 00010 #include "../version" 00011 00012 namespace inlib { 00013 namespace waxml { 00014 00015 inline void begin(std::ostream& a_writer){ 00016 // Header : 00017 a_writer << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << std::endl; 00018 a_writer << "<!DOCTYPE aida SYSTEM" 00019 << " \"http://aida.freehep.org/schemas/3.0/aida.dtd\">" 00020 << std::endl; 00021 00022 std::string sAIDA_VERSION("3.2.1"); 00023 00024 a_writer << "<aida version=" << sout(sAIDA_VERSION) << ">" 00025 << std::endl; 00026 a_writer << " <implementation package=" << sout("inlib") 00027 << " version=" << sout(INLIB_VERSION) << "/>" 00028 << std::endl; 00029 } 00030 00031 inline void end(std::ostream& a_writer){ 00032 a_writer << "</aida>" << std::endl; 00033 } 00034 00035 }} 00036 00037 #endif