HepMC Reference Documentation

HepMC

Version.h

Go to the documentation of this file.
00001 #ifndef HEPMC_VERSION_H
00002 #define HEPMC_VERSION_H
00003 // ----------------------------------------------------------------------
00004 //
00005 // Version.h
00006 // Author:  Lynn Garren
00007 //
00008 //  for now, these are free functions
00009 //
00010 // ----------------------------------------------------------------------
00011 
00012 #include <string>
00013 #include <iostream>
00014 #include "HepMC/HepMCDefs.h"
00015 
00016 namespace HepMC {
00017 
00018 void version( );                        
00019 void writeVersion( std::ostream & os ); 
00020 std::string versionName( );     
00021 
00022 inline std::string versionName( )
00023 {
00024     return HEPMC_VERSION;
00025 }
00026 
00027 inline void version( )
00028 {
00029     std::cout << " --------------- HepMC Version " << versionName()
00030               << " --------------- " << std::endl;
00031 }
00032 
00033 inline void writeVersion( std::ostream & os )
00034 {
00035     os << "             HepMC Version: " << versionName() << std::endl;
00036 }
00037 
00038 }       // HepMC
00039 
00040 #endif // HEPMC_VERSION_H

Generated on Thu Jan 7 13:10:16 2010 for HepMC by  doxygen 1.4.7