Rev | Line | |
---|
[349] | 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 |
|
---|
| 15 | namespace HepMC {
|
---|
| 16 |
|
---|
| 17 | void version( ); //!< print HepMC version
|
---|
| 18 | void writeVersion( std::ostream & os ); //!< write HepMC version to os
|
---|
| 19 | std::string versionName( ); //!< return HepMC version
|
---|
| 20 |
|
---|
| 21 | inline std::string versionName( )
|
---|
| 22 | {
|
---|
| 23 | return "2.04.01";
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | inline void version( )
|
---|
| 27 | {
|
---|
| 28 | std::cout << " --------------- HepMC Version " << versionName()
|
---|
| 29 | << " --------------- " << std::endl;
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | inline void writeVersion( std::ostream & os )
|
---|
| 33 | {
|
---|
| 34 | os << " HepMC Version: " << versionName() << std::endl;
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 | } // HepMC
|
---|
| 38 |
|
---|
| 39 | #endif // HEPMC_VERSION_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.