HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes
HarpoDBTable Class Reference

#include <HarpoDB.h>

Public Member Functions

 HarpoDBTable ()
 
 ~HarpoDBTable ()
 
const TString GetName ()
 
Bool_t GetRunRow (Long_t nrun, HarpoDBRow &row)
 Query Table for given run information. More...
 
Bool_t InsertRunRow (HarpoDBRow row, const TString option="")
 
Bool_t UpdateRunRow (HarpoDBRow row, const TString option="")
 
Bool_t DeleteRun (Long_t run)
 Delete run from table. More...
 
Bool_t Lookup (const TString field)
 Lookup filed exist. More...
 
Bool_t GetType (const TString field, TString &type)
 Return Type of field in TString. More...
 
Bool_t TypeExpression (const TString field)
 Mark filed as expression for insert and update. More...
 
dbFieldsGetFiledsTypes ()
 
void Erase (const TString &field)
 
Bool_t Open (const char *dbnm, const char *tbl)
 
void list ()
 
void MakeClass (TString cname, TString option="")
 

Private Attributes

TString name
 
dbFields ftypes
 

Detailed Description

Class with store table informatype, name, fields, fields types

Definition at line 63 of file HarpoDB.h.

Constructor & Destructor Documentation

HarpoDBTable::HarpoDBTable ( )
inline

Definition at line 66 of file HarpoDB.h.

HarpoDBTable::~HarpoDBTable ( )
inline

Definition at line 67 of file HarpoDB.h.

Member Function Documentation

Bool_t HarpoDBTable::DeleteRun ( Long_t  run)

Delete run from table.

Definition at line 383 of file HarpoDB.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void HarpoDBTable::Erase ( const TString &  field)
inline

Definition at line 97 of file HarpoDB.h.

Here is the caller graph for this function:

dbFields& HarpoDBTable::GetFiledsTypes ( )
inline

Definition at line 94 of file HarpoDB.h.

Here is the caller graph for this function:

const TString HarpoDBTable::GetName ( )
inline

Definition at line 69 of file HarpoDB.h.

Bool_t HarpoDBTable::GetRunRow ( Long_t  nrun,
HarpoDBRow row 
)

Query Table for given run information.

Definition at line 206 of file HarpoDB.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t HarpoDBTable::GetType ( const TString  field,
TString &  type 
)

Return Type of field in TString.

Definition at line 360 of file HarpoDB.cxx.

Bool_t HarpoDBTable::InsertRunRow ( HarpoDBRow  row,
const TString  option = "" 
)

Update DB record

Todo:
insert,update, update or insert, remove unexisting fields on insert

Definition at line 477 of file HarpoDB.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void HarpoDBTable::list ( )

Definition at line 286 of file HarpoDB.cxx.

Here is the caller graph for this function:

Bool_t HarpoDBTable::Lookup ( const TString  field)

Lookup filed exist.

Definition at line 305 of file HarpoDB.cxx.

void HarpoDBTable::MakeClass ( TString  cname,
TString  option = "" 
)

Definition at line 569 of file HarpoDB.cxx.

Here is the caller graph for this function:

Bool_t HarpoDBTable::Open ( const char *  dbnm,
const char *  tbl 
)

Definition at line 140 of file HarpoDB.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t HarpoDBTable::TypeExpression ( const TString  field)

Mark filed as expression for insert and update.

Definition at line 371 of file HarpoDB.cxx.

Here is the caller graph for this function:

Bool_t HarpoDBTable::UpdateRunRow ( HarpoDBRow  row,
const TString  option = "" 
)

Insert new DB record based on class data

Todo:
insert,update, update or insert, remove unexisting fields on insert

Definition at line 408 of file HarpoDB.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

dbFields HarpoDBTable::ftypes
private

Definition at line 108 of file HarpoDB.h.

TString HarpoDBTable::name
private

Definition at line 107 of file HarpoDB.h.


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