HIPO  4.3.0
High Performance Output data format for experimental physics
hipo::FileInfo Struct Reference

Metadata container for a file in the chain. More...

#include <chain.h>

Public Member Functions

 FileInfo ()=default
 
 FileInfo (std::string_view name, int idx)
 
bool metadata_loaded () const noexcept
 Check if metadata has been loaded. More...
 
std::string size_string () const
 Get human-readable file size string. More...
 

Public Attributes

std::string filename
 
int index {0}
 
long total_events {-1}
 
int num_records {-1}
 
std::uintmax_t file_size {0}
 
bool is_valid {true}
 
std::string error_message
 

Detailed Description

Metadata container for a file in the chain.

Definition at line 66 of file chain.h.

Constructor & Destructor Documentation

◆ FileInfo() [1/2]

hipo::FileInfo::FileInfo ( )
default

◆ FileInfo() [2/2]

hipo::FileInfo::FileInfo ( std::string_view  name,
int  idx 
)
inline

Definition at line 76 of file chain.h.

Member Function Documentation

◆ metadata_loaded()

bool hipo::FileInfo::metadata_loaded ( ) const
inlinenoexcept

Check if metadata has been loaded.

Definition at line 80 of file chain.h.

◆ size_string()

std::string hipo::FileInfo::size_string ( ) const
inline

Get human-readable file size string.

Definition at line 85 of file chain.h.

Member Data Documentation

◆ error_message

std::string hipo::FileInfo::error_message

Definition at line 73 of file chain.h.

◆ file_size

std::uintmax_t hipo::FileInfo::file_size {0}

Definition at line 71 of file chain.h.

◆ filename

std::string hipo::FileInfo::filename

Definition at line 67 of file chain.h.

◆ index

int hipo::FileInfo::index {0}

Definition at line 68 of file chain.h.

◆ is_valid

bool hipo::FileInfo::is_valid {true}

Definition at line 72 of file chain.h.

◆ num_records

int hipo::FileInfo::num_records {-1}

Definition at line 70 of file chain.h.

◆ total_events

long hipo::FileInfo::total_events {-1}

Definition at line 69 of file chain.h.


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