Public Member Functions | Public Attributes | List of all members
art::FileFormatVersion Struct Reference

#include <FileFormatVersion.h>

Public Member Functions

 FileFormatVersion ()=default
 
 FileFormatVersion (int const vers)
 
 FileFormatVersion (int const 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 const  vers)
inlineexplicit

Definition at line 11 of file FileFormatVersion.h.

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

Definition at line 12 of file FileFormatVersion.h.

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

Member Function Documentation

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

Definition at line 16 of file FileFormatVersion.h.

17  {
18  return value_ >= 0;
19  }

Member Data Documentation

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

Definition at line 22 of file FileFormatVersion.h.

int art::FileFormatVersion::value_ {-1}

Definition at line 21 of file FileFormatVersion.h.


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