BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
rdbModel::Builder Class Referenceabstract

#include <Builder.h>

+ Inheritance diagram for rdbModel::Builder:

Public Member Functions

 Builder ()
 
virtual unsigned int parseInput (const std::string &)=0
 
virtual int buildRdb ()=0
 
void setRdb (Rdb *pRdb)
 
RdbgetRdb ()
 

Protected Attributes

Rdbm_currentRdb
 

Detailed Description

This class defines the public interface for the generic functionalities of a builder. Each subclass must provide implementation for its methods.

Author
J. Bogart, but basically stolen from detModel Builder Many thanks to R. Giannitrapani and D. Favretto

Definition at line 18 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Management/Builder.h.

Constructor & Destructor Documentation

◆ Builder()

rdbModel::Builder::Builder ( )
inline

Member Function Documentation

◆ buildRdb()

virtual int rdbModel::Builder::buildRdb ( )
pure virtual

This method start the parser (implemented in a concrete subclass of this class) for the sections part and put the result in a private pointer Return is number of tables built. If negative, indicates error.

Implemented in rdbModel::XercesBuilder.

Referenced by rdbModel::Manager::build().

◆ getRdb()

Rdb * rdbModel::Builder::getRdb ( )
inline

◆ parseInput()

virtual unsigned int rdbModel::Builder::parseInput ( const std::string &  )
pure virtual

This method parses the input into an intermediate in-memeory form. For now, the only acceptable input source is an xml file and the intermediate form is its DOM represenation. Conceivably could accept other forms someday. Return is to be interpreted as error code: 0 is ok.

Implemented in rdbModel::XercesBuilder.

Referenced by rdbModel::Manager::build().

◆ setRdb()

void rdbModel::Builder::setRdb ( Rdb pRdb)
inline

Member Data Documentation

◆ m_currentRdb

Rdb* rdbModel::Builder::m_currentRdb
protected

This is a private pointer to an Rdb used during the building

Definition at line 50 of file Calibration/rdbModel/rdbModel-00-01-01/rdbModel/Management/Builder.h.

Referenced by getRdb(), and setRdb().


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