Last change
on this file since 595 was 572, checked in by cp3-support, 13 years ago |
upgrade HepMC to version 2.06.05
|
File size:
939 bytes
|
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>
|
---|
[572] | 14 | #include "HepMCDefs.h"
|
---|
[349] | 15 |
|
---|
| 16 | namespace HepMC {
|
---|
| 17 |
|
---|
[572] | 18 | void version( std::ostream & os = std::cout ); //!< print HepMC version
|
---|
[349] | 19 | void writeVersion( std::ostream & os ); //!< write HepMC version to os
|
---|
| 20 | std::string versionName( ); //!< return HepMC version
|
---|
| 21 |
|
---|
| 22 | inline std::string versionName( )
|
---|
| 23 | {
|
---|
[572] | 24 | return HEPMC_VERSION;
|
---|
[349] | 25 | }
|
---|
| 26 |
|
---|
[572] | 27 | inline void version( std::ostream & os )
|
---|
[349] | 28 | {
|
---|
[572] | 29 | os << " --------------- HepMC Version " << versionName()
|
---|
| 30 | << " --------------- " << std::endl;
|
---|
[349] | 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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.