LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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.

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_.

17  {
18  return value_ >= 0;
19  }

Member Data Documentation

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

Definition at line 22 of file FileFormatVersion.h.

Referenced by FileFormatVersion(), and art::operator<<().

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

Definition at line 21 of file FileFormatVersion.h.

Referenced by isValid(), art::operator<<(), and art::operator==().


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