LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
art::FileFormatVersion Struct Reference

#include "FileFormatVersion.h"

Public Member Functions

 FileFormatVersion ()=default
 
 FileFormatVersion (int vers)
 
 FileFormatVersion (int vers, std::string const &era)
 
bool isValid () const
 

Public Attributes

int value_ {-1}
 
std::string era_ {}
 

Detailed Description

Definition at line 9 of file FileFormatVersion.h.

Constructor & Destructor Documentation

art::FileFormatVersion::FileFormatVersion ( )
default
art::FileFormatVersion::FileFormatVersion ( int  vers)
inlineexplicit

Definition at line 11 of file FileFormatVersion.h.

11 : FileFormatVersion{vers, {}} {}
art::FileFormatVersion::FileFormatVersion ( int  vers,
std::string const &  era 
)
inline

Definition at line 12 of file FileFormatVersion.h.

References era_.

13  : value_{vers}, era_{era}
14  {}

Member Function Documentation

bool art::FileFormatVersion::isValid ( ) const
inline

Definition at line 16 of file FileFormatVersion.h.

References value_.

Referenced by art::MixHelper::generateEventSequence(), and art::MixHelper::openNextFile_().

17  {
18  return value_ >= 0;
19  }

Member Data Documentation

std::string art::FileFormatVersion::era_ {}

The documentation for this struct was generated from the following file: