File indexing completed on 2025-01-18 10:01:10
0001 #ifndef HEPMC_VERSION_H
0002 #define HEPMC_VERSION_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include <string>
0013 #include <iostream>
0014 #include "HepMC/HepMCDefs.h"
0015
0016 namespace HepMC {
0017
0018 void version( std::ostream & os = std::cout );
0019 void writeVersion( std::ostream & os );
0020 std::string versionName( );
0021
0022 inline std::string versionName( )
0023 {
0024 return HEPMC_VERSION;
0025 }
0026
0027 inline void version( std::ostream & os )
0028 {
0029 os << " --------------- HepMC Version " << versionName()
0030 << " --------------- " << std::endl;
0031 }
0032
0033 inline void writeVersion( std::ostream & os )
0034 {
0035 os << " HepMC Version: " << versionName() << std::endl;
0036 }
0037
0038 }
0039
0040 #endif