BOSS 8.0.0
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)
 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)
 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

Constructor & Destructor Documentation

◆ DatabaseRecord() [1/3]

DatabaseRecord::DatabaseRecord ( )
inline

◆ ~DatabaseRecord() [1/3]

DatabaseRecord::~DatabaseRecord ( )
inline

◆ DatabaseRecord() [2/3]

DatabaseRecord::DatabaseRecord ( )
inline

◆ ~DatabaseRecord() [2/3]

DatabaseRecord::~DatabaseRecord ( )
inline

◆ DatabaseRecord() [3/3]

DatabaseRecord::DatabaseRecord ( )
inline

◆ ~DatabaseRecord() [3/3]

DatabaseRecord::~DatabaseRecord ( )
inline

Member Function Documentation

◆ clear() [1/3]

void DatabaseRecord::clear ( )
inline

◆ clear() [2/3]

void DatabaseRecord::clear ( )
inline

◆ clear() [3/3]

void DatabaseRecord::clear ( )
inline

◆ DeleteObject() [1/3]

void DatabaseRecord::DeleteObject ( )
inline

Definition at line 17 of file Database/DatabaseSvc/include/DatabaseSvc/DatabaseRecord.h.

17 {
18 DatabaseRecord::iterator it;
19 for ( it = this->begin(); it != this->end(); it++ )
20 {
21 if ( ( *it ).second != NULL )
22 {
23 delete[] ( *it ).second;
24 ( *it ).second = NULL;
25 }
26 }
27 erase( this->begin(), this->end() );
28 }

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

◆ DeleteObject() [2/3]

void DatabaseRecord::DeleteObject ( )
inline

Definition at line 17 of file InstallArea/x86_64-el9-gcc13-dbg/include/DatabaseSvc/DatabaseRecord.h.

17 {
18 DatabaseRecord::iterator it;
19 for ( it = this->begin(); it != this->end(); it++ )
20 {
21 if ( ( *it ).second != NULL )
22 {
23 delete[] ( *it ).second;
24 ( *it ).second = NULL;
25 }
26 }
27 erase( this->begin(), this->end() );
28 }

◆ DeleteObject() [3/3]

void DatabaseRecord::DeleteObject ( )
inline

Definition at line 17 of file InstallArea/x86_64-el9-gcc13-opt/include/DatabaseSvc/DatabaseRecord.h.

17 {
18 DatabaseRecord::iterator it;
19 for ( it = this->begin(); it != this->end(); it++ )
20 {
21 if ( ( *it ).second != NULL )
22 {
23 delete[] ( *it ).second;
24 ( *it ).second = NULL;
25 }
26 }
27 erase( this->begin(), this->end() );
28 }

◆ GetDouble() [1/3]

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

Definition at line 36 of file Database/DatabaseSvc/include/DatabaseSvc/DatabaseRecord.h.

36 {
37 DatabaseRecord::iterator it = find( key );
38 if ( it == end() ) return 0;
39 return atof( ( *it ).second );
40 }
*************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().

◆ GetDouble() [2/3]

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

Definition at line 36 of file InstallArea/x86_64-el9-gcc13-dbg/include/DatabaseSvc/DatabaseRecord.h.

36 {
37 DatabaseRecord::iterator it = find( key );
38 if ( it == end() ) return 0;
39 return atof( ( *it ).second );
40 }

◆ GetDouble() [3/3]

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

Definition at line 36 of file InstallArea/x86_64-el9-gcc13-opt/include/DatabaseSvc/DatabaseRecord.h.

36 {
37 DatabaseRecord::iterator it = find( key );
38 if ( it == end() ) return 0;
39 return atof( ( *it ).second );
40 }

◆ GetInt() [1/3]

◆ GetInt() [2/3]

int DatabaseRecord::GetInt ( std::string key)
inline

Definition at line 30 of file InstallArea/x86_64-el9-gcc13-dbg/include/DatabaseSvc/DatabaseRecord.h.

30 {
31 DatabaseRecord::iterator it = find( key );
32 if ( it == end() ) return 0;
33 return atoi( ( *it ).second );
34 }

◆ GetInt() [3/3]

int DatabaseRecord::GetInt ( std::string key)
inline

Definition at line 30 of file InstallArea/x86_64-el9-gcc13-opt/include/DatabaseSvc/DatabaseRecord.h.

30 {
31 DatabaseRecord::iterator it = find( key );
32 if ( it == end() ) return 0;
33 return atoi( ( *it ).second );
34 }

◆ GetLong() [1/3]

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

Definition at line 42 of file Database/DatabaseSvc/include/DatabaseSvc/DatabaseRecord.h.

42 {
43 DatabaseRecord::iterator it = find( key );
44 if ( it == end() ) return 0;
45 return atol( ( *it ).second );
46 }

Referenced by TestDbAlg::initialize().

◆ GetLong() [2/3]

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

Definition at line 42 of file InstallArea/x86_64-el9-gcc13-dbg/include/DatabaseSvc/DatabaseRecord.h.

42 {
43 DatabaseRecord::iterator it = find( key );
44 if ( it == end() ) return 0;
45 return atol( ( *it ).second );
46 }

◆ GetLong() [3/3]

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

Definition at line 42 of file InstallArea/x86_64-el9-gcc13-opt/include/DatabaseSvc/DatabaseRecord.h.

42 {
43 DatabaseRecord::iterator it = find( key );
44 if ( it == end() ) return 0;
45 return atol( ( *it ).second );
46 }

◆ GetString() [1/3]

◆ GetString() [2/3]

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

Definition at line 48 of file InstallArea/x86_64-el9-gcc13-dbg/include/DatabaseSvc/DatabaseRecord.h.

48 {
49 // std::string str1;
50 DatabaseRecord::iterator it = find( key );
51 if ( it == end() ) return 0;
52 std::string str1( ( *it ).second );
53 return str1;
54 }

◆ GetString() [3/3]

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

Definition at line 48 of file InstallArea/x86_64-el9-gcc13-opt/include/DatabaseSvc/DatabaseRecord.h.

48 {
49 // std::string str1;
50 DatabaseRecord::iterator it = find( key );
51 if ( it == end() ) return 0;
52 std::string str1( ( *it ).second );
53 return str1;
54 }

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