Fork me on GitHub

source: svn/trunk/Utilities/HepMC/interface/Version.h@ 367

Last change on this file since 367 was 349, checked in by severine ovyn, 16 years ago

first test

File size: 878 bytes
Line 
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
15namespace HepMC {
16
17void version( ); //!< print HepMC version
18void writeVersion( std::ostream & os ); //!< write HepMC version to os
19std::string versionName( ); //!< return HepMC version
20
21inline std::string versionName( )
22{
23 return "2.04.01";
24}
25
26inline void version( )
27{
28 std::cout << " --------------- HepMC Version " << versionName()
29 << " --------------- " << std::endl;
30}
31
32inline 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.