StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Version.h
1 #ifndef HEPMC_VERSION_H
2 #define HEPMC_VERSION_H
3 // ----------------------------------------------------------------------
4 //
5 // Version.h
6 // Author: Lynn Garren
7 //
8 // for now, these are free functions
9 //
10 // ----------------------------------------------------------------------
11 
12 #include <string>
13 #include <iostream>
14 #include "HepMC/HepMCDefs.h"
15 
16 namespace HepMC {
17 
18 void version( std::ostream & os = std::cout );
19 void writeVersion( std::ostream & os );
20 std::string versionName( );
21 
22 inline std::string versionName( )
23 {
24  return HEPMC_VERSION;
25 }
26 
27 inline void version( std::ostream & os )
28 {
29  os << " --------------- HepMC Version " << versionName()
30  << " --------------- " << std::endl;
31 }
32 
33 inline void writeVersion( std::ostream & os )
34 {
35  os << " HepMC Version: " << versionName() << std::endl;
36 }
37 
38 } // HepMC
39 
40 #endif // HEPMC_VERSION_H
void writeVersion(std::ostream &os)
write HepMC version to os
Definition: Version.h:33
void version(std::ostream &os=std::cout)
print HepMC version
Definition: Version.h:27
std::string versionName()
return HepMC version
Definition: Version.h:22