BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
DatabaseRecord Class Reference

#include <DatabaseRecord.h>

+ Inheritance diagram for DatabaseRecord:

Public Member Functions

 DatabaseRecord ()
 
 ~DatabaseRecord ()
 
void clear ()
 
void DeleteObject ()
 
int GetInt (std::string key)
 
double GetDouble (std::string key)
 
long GetLong (std::string key)
 
std::string GetString (std::string key)
 

Detailed Description

Definition at line 9 of file DatabaseRecord.h.

Constructor & Destructor Documentation

◆ DatabaseRecord()

DatabaseRecord::DatabaseRecord ( )
inline

Definition at line 12 of file DatabaseRecord.h.

12{}

◆ ~DatabaseRecord()

DatabaseRecord::~DatabaseRecord ( )
inline

Definition at line 14 of file DatabaseRecord.h.

15 {
17 }

Member Function Documentation

◆ clear()

void DatabaseRecord::clear ( )
inline

Definition at line 19 of file DatabaseRecord.h.

19 {
21 };

◆ DeleteObject()

void DatabaseRecord::DeleteObject ( )
inline

Definition at line 23 of file DatabaseRecord.h.

24 {
25 DatabaseRecord::iterator it;
26 for(it=this->begin(); it != this->end(); it++)
27 {
28 if((*it).second!=NULL)
29 {
30 delete[] (*it).second;
31 (*it).second = NULL;
32 }
33 }
34 erase(this->begin(),this->end());
35 }
#define NULL

Referenced by clear(), and ~DatabaseRecord().

◆ GetDouble()

double DatabaseRecord::GetDouble ( std::string key)
inline

Definition at line 46 of file DatabaseRecord.h.

47 {
48 DatabaseRecord::iterator it = find(key);
49 if(it==end())
50 return 0;
51 return atof((*it).second);
52 }
*************DOUBLE PRECISION m_pi *DOUBLE PRECISION m_HvecTau2 DOUBLE PRECISION m_HvClone2 DOUBLE PRECISION m_gamma1 DOUBLE PRECISION m_gamma2 DOUBLE PRECISION m_thet1 DOUBLE PRECISION m_thet2 INTEGER m_IFPHOT *COMMON c_Taupair $ !Spin Polarimeter vector first Tau $ !Spin Polarimeter vector second Tau $ !Clone Spin Polarimeter vector first Tau $ !Clone Spin Polarimeter vector second Tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning st tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !Random Euler angle for cloning nd tau $ !phi of HvecTau1 $ !theta of HvecTau1 $ !phi of HvecTau2 $ !theta of HvecTau2 $ !super key
Definition Taupair.h:42

Referenced by FieldDBUtil::ConnectionDB::getBeamEnergy(), BeamEnergySvc::getBeamEnergyInfo(), FieldDBUtil::ConnectionDB::getReadSC_MagnetInfo(), FieldDBUtil::ConnectionDB::getReadSC_MagnetInfo(), ScanEnergySvc::getScanEnergySvcInfo(), TofEnergyCalibSvc::getTofEnergyCalibSvcInfo(), TestDbAlg::initialize(), ReadME::readMeasuredEcms(), and ReadME::readRunParams().

◆ GetInt()

◆ GetLong()

long DatabaseRecord::GetLong ( std::string key)
inline

Definition at line 54 of file DatabaseRecord.h.

55 {
56 DatabaseRecord::iterator it = find(key);
57 if(it==end())
58 return 0;
59 return atol((*it).second);
60 }

Referenced by TestDbAlg::initialize().

◆ GetString()

std::string DatabaseRecord::GetString ( std::string key)
inline

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