Bayeux  3.4.1
Core Foundation library for SuperNEMO
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
brio::store_info Struct Reference

A class that contains internal dynamic informations for a given store. More...

#include <bayeux/brio/utils.h>

Classes

struct  constants
 

Public Types

enum  mode_type {
  MODE_READ = 0x0, MODE_WRITE = 0x1, read = MODE_READ, write = MODE_WRITE,
  MODE_BRIO = 0x0, MODE_TRIO = 0x2, MODE_DEFAULT = MODE_READ | MODE_BRIO
}
 

Public Member Functions

 store_info ()
 
virtual ~store_info ()
 
const std::string & get_label () const
 
const std::string & get_serialization_tag () const
 
bool has_dedicated_serialization_tag () const
 
bool has_entries () const
 

Static Public Member Functions

static int guess_mode_from_filename (const std::string &filename_, int &mode_)
 

Public Attributes

std::string label
 the label (name) of the store More...
 
std::string serialization_tag
 the serialization tag associated to the object stored in the store More...
 
size_t bufsize
 the size of the output buffer (used only by the writer) More...
 
TTree * tree
 the embedded ROOT tree More...
 
brio_record record
 the current brio record to be (de)serialized More...
 
brio_recordp_record
 
std::vector< char > buffer
 the input buffer (used only by the writer) More...
 
int64_t number_of_entries
 the number of entries in the store More...
 
int64_t current_entry
 the current entry number in the store More...
 

Static Public Attributes

static const int SUCCESS = 0
 
static const int ERROR = 1
 

Detailed Description

A class that contains internal dynamic informations for a given store.

Member Enumeration Documentation

◆ mode_type

Enumerator
MODE_READ 
MODE_WRITE 
read 
write 
MODE_BRIO 
MODE_TRIO 
MODE_DEFAULT 

Constructor & Destructor Documentation

◆ store_info()

brio::store_info::store_info ( )

◆ ~store_info()

virtual brio::store_info::~store_info ( )
virtual

Member Function Documentation

◆ get_label()

const std::string& brio::store_info::get_label ( ) const

◆ get_serialization_tag()

const std::string& brio::store_info::get_serialization_tag ( ) const

◆ guess_mode_from_filename()

static int brio::store_info::guess_mode_from_filename ( const std::string &  filename_,
int &  mode_ 
)
static

◆ has_dedicated_serialization_tag()

bool brio::store_info::has_dedicated_serialization_tag ( ) const

◆ has_entries()

bool brio::store_info::has_entries ( ) const

Member Data Documentation

◆ buffer

std::vector<char> brio::store_info::buffer

the input buffer (used only by the writer)

◆ bufsize

size_t brio::store_info::bufsize

the size of the output buffer (used only by the writer)

◆ current_entry

int64_t brio::store_info::current_entry

the current entry number in the store

◆ ERROR

const int brio::store_info::ERROR = 1
static

◆ label

std::string brio::store_info::label

the label (name) of the store

◆ number_of_entries

int64_t brio::store_info::number_of_entries

the number of entries in the store

◆ p_record

brio_record* brio::store_info::p_record

◆ record

brio_record brio::store_info::record

the current brio record to be (de)serialized

◆ serialization_tag

std::string brio::store_info::serialization_tag

the serialization tag associated to the object stored in the store

◆ SUCCESS

const int brio::store_info::SUCCESS = 0
static

◆ tree

TTree* brio::store_info::tree

the embedded ROOT tree


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