Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:01:10

0001 #ifndef HEPMC_VERSION_H
0002 #define HEPMC_VERSION_H
0003 // ----------------------------------------------------------------------
0004 //
0005 // Version.h
0006 // Author:  Lynn Garren
0007 //
0008 //  for now, these are free functions
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 );          //!< print HepMC version
0019 void writeVersion( std::ostream & os ); //!< write HepMC version to os
0020 std::string versionName( ); //!< return HepMC version
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 }   // HepMC
0039 
0040 #endif // HEPMC_VERSION_H