Files
geant4/source/analysis/include/tools/waxml/begend
T
2016-06-09 16:46:55 +02:00

38 lines
911 B
Plaintext

// Copyright (C) 2010, Guy Barrand. All rights reserved.
// See the file tools.license for terms.
#ifndef tools_waxml_begend
#define tools_waxml_begend
#include <fstream>
#include "../sout"
#include "../version"
namespace tools {
namespace waxml {
inline void begin(std::ostream& a_writer){
// Header :
a_writer << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" << std::endl;
a_writer << "<!DOCTYPE aida SYSTEM"
<< " \"http://aida.freehep.org/schemas/3.0/aida.dtd\">"
<< std::endl;
std::string sAIDA_VERSION("3.2.1");
a_writer << "<aida version=" << sout(sAIDA_VERSION) << ">"
<< std::endl;
a_writer << " <implementation package=" << sout("tools")
<< " version=" << sout(TOOLS_VERSION) << "/>"
<< std::endl;
}
inline void end(std::ostream& a_writer){
a_writer << "</aida>" << std::endl;
}
}}
#endif