DABC (Data Acquisition Backbone Core)  2.9.9
Public Member Functions | Protected Member Functions | Protected Attributes
dabc::HierarchyReading Class Reference

#include <dabc/HierarchyStore.h>

Public Member Functions

Hierarchy GetSerie (const std::string &entry, const DateTime &from, const DateTime &till)
 Get entry with history for specified time interval. More...
 
bool GetStrucutre (Hierarchy &h, const DateTime &dt=0)
 Get full structure at given point of time. More...
 
 HierarchyReading ()
 
bool ScanTree ()
 Scan only directories, do not open any files. More...
 
void SetBasePath (const std::string &path)
 Set top directory for all recorded data. More...
 
virtual ~HierarchyReading ()
 

Protected Member Functions

std::string MakeFileName (const std::string &fpath, const DateTime &dt)
 
bool ProduceStructure (Hierarchy &tree, const DateTime &from, const DateTime &till, const std::string &entry, Hierarchy &tgt)
 
dabc::Buffer ReadBuffer (dabc::BinaryFile &f)
 
bool ScanFiles (const std::string &dirname, const DateTime &onlydate, std::vector< uint64_t > &vect)
 
bool ScanTreeDir (dabc::Hierarchy &h, const std::string &dirname)
 ! scanned files tree More...
 

Protected Attributes

std::string fBasePath
 
FileInterfacefIO
 ! base directory More...
 
dabc::Hierarchy fTree
 ! file interface More...
 

Detailed Description

Definition at line 76 of file HierarchyStore.h.

Constructor & Destructor Documentation

◆ HierarchyReading()

dabc::HierarchyReading::HierarchyReading ( )

Definition at line 202 of file HierarchyStore.cxx.

◆ ~HierarchyReading()

dabc::HierarchyReading::~HierarchyReading ( )
virtual

Definition at line 208 of file HierarchyStore.cxx.

Member Function Documentation

◆ ScanTreeDir()

bool dabc::HierarchyReading::ScanTreeDir ( dabc::Hierarchy h,
const std::string &  dirname 
)
protected

! scanned files tree

Definition at line 265 of file HierarchyStore.cxx.

◆ ScanFiles()

bool dabc::HierarchyReading::ScanFiles ( const std::string &  dirname,
const DateTime onlydate,
std::vector< uint64_t > &  vect 
)
protected

Definition at line 235 of file HierarchyStore.cxx.

◆ MakeFileName()

std::string dabc::HierarchyReading::MakeFileName ( const std::string &  fpath,
const DateTime dt 
)
protected

Definition at line 222 of file HierarchyStore.cxx.

◆ ProduceStructure()

bool dabc::HierarchyReading::ProduceStructure ( Hierarchy tree,
const DateTime from,
const DateTime till,
const std::string &  entry,
Hierarchy tgt 
)
protected

we exclude building of the structures which are not interesting for us

Definition at line 354 of file HierarchyStore.cxx.

◆ ReadBuffer()

dabc::Buffer dabc::HierarchyReading::ReadBuffer ( dabc::BinaryFile f)
protected

Definition at line 333 of file HierarchyStore.cxx.

◆ SetBasePath()

void dabc::HierarchyReading::SetBasePath ( const std::string &  path)

Set top directory for all recorded data.

Definition at line 216 of file HierarchyStore.cxx.

◆ ScanTree()

bool dabc::HierarchyReading::ScanTree ( )

Scan only directories, do not open any files.

Definition at line 325 of file HierarchyStore.cxx.

◆ GetStrucutre()

bool dabc::HierarchyReading::GetStrucutre ( Hierarchy h,
const DateTime dt = 0 
)

Get full structure at given point of time.

Definition at line 428 of file HierarchyStore.cxx.

◆ GetSerie()

dabc::Hierarchy dabc::HierarchyReading::GetSerie ( const std::string &  entry,
const DateTime from,
const DateTime till 
)

Get entry with history for specified time interval.

Definition at line 442 of file HierarchyStore.cxx.

Field Documentation

◆ fBasePath

std::string dabc::HierarchyReading::fBasePath
protected

Definition at line 78 of file HierarchyStore.h.

◆ fIO

FileInterface* dabc::HierarchyReading::fIO
protected

! base directory

Definition at line 80 of file HierarchyStore.h.

◆ fTree

dabc::Hierarchy dabc::HierarchyReading::fTree
protected

! file interface

Definition at line 82 of file HierarchyStore.h.


The documentation for this class was generated from the following files: