1 #ifndef HEPMC_VERSION_H
2 #define HEPMC_VERSION_H
3 // ----------------------------------------------------------------------
8 // for now, these are free functions
10 // ----------------------------------------------------------------------
14 #include "HepMC/HepMCDefs.h"
18 void version( std::ostream & os = std::cout ); //!< print HepMC version
19 void writeVersion( std::ostream & os ); //!< write HepMC version to os
20 std::string versionName( ); //!< return HepMC version
22 inline std::string versionName( )
27 inline void version( std::ostream & os )
29 os << " --------------- HepMC Version " << versionName()
30 << " --------------- " << std::endl;
33 inline void writeVersion( std::ostream & os )
35 os << " HepMC Version: " << versionName() << std::endl;
40 #endif // HEPMC_VERSION_H