LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LCSIO.cc
Go to the documentation of this file.
1 #include "SIO/LCSIO.h"
2 #include "EVENT/LCIO.h"
3 
4 // -- sio headers
5 #include <sio/version.h>
6 #include <sio/exception.h>
7 
8 namespace SIO {
9 
10  void LCSIO::checkVersion( sio::version_type versionID ){
11  if ( SIO_VERSION_MAJOR( versionID ) < 1 && SIO_VERSION_MINOR( versionID ) < 8 )
12  SIO_THROW( sio::error_code::invalid_argument, "Old file versions ( < v00-08 ) no longer supported !") ;
13  }
14 
15  //----------------------------------------------------------------------------
16 
17  sio::version_type LCSIO::blockVersion() {
18  return SIO_VERSION_ENCODE( EVENT::LCIO::MAJORVERSION, EVENT::LCIO::MINORVERSION ) ;
19  }
20 
21 }
22 
static sio::version_type blockVersion()
Get the LCIO encoded version number for writing in sio blocks.
Definition: LCSIO.cc:17
static void checkVersion(sio::version_type versionID)
Check for old version of LCIO (&gt; v01-08 ar no longer supported) Throws an exception if not supported...
Definition: LCSIO.cc:10