CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
ODRunConfigInfo Class Reference

#include <ODRunConfigInfo.h>

Inheritance diagram for ODRunConfigInfo:
IODConfig IDBObject

Public Member Functions

Tm getDBTime () const
 
int getDefaults () const
 
std::string getDescription () const
 
int getId () const
 
int getNumberOfEvents () const
 
int getNumberOfSequences () const
 
RunModeDef getRunModeDef () const
 
RunTypeDef getRunTypeDef () const
 
std::string getTable ()
 
std::string getTag () const
 
std::string getTriggerMode () const
 
std::string getUsageStatus () const
 
int getVersion () const
 
 ODRunConfigInfo ()
 
bool operator!= (const ODRunConfigInfo &r) const
 
bool operator== (const ODRunConfigInfo &r) const
 
void setDBTime (const Tm &x)
 
void setDefaults (int x)
 
void setDescription (std::string x)
 
void setId (int id)
 
void setNumberOfEvents (int x)
 
void setNumberOfSequences (int n)
 
void setRunModeDef (const RunModeDef &runModeDef)
 
void setRunTypeDef (const RunTypeDef &runTypeDef)
 
void setTag (std::string x)
 
void setTriggerMode (std::string x)
 
void setUsageStatus (std::string x)
 
void setVersion (int x)
 
 ~ODRunConfigInfo ()
 
- Public Member Functions inherited from IODConfig
std::string getConfigTag ()
 
void setConfigTag (std::string x)
 
- Public Member Functions inherited from IDBObject
oracle::occi::Connection * getConn () const
 
oracle::occi::Environment * getEnv () const
 
void setConnection (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
virtual ~IDBObject ()
 

Private Member Functions

void clear ()
 
void fetchData (ODRunConfigInfo *result) throw (std::runtime_error)
 
int fetchID () throw (std::runtime_error)
 
int fetchIDFromTagAndVersion () throw (std::runtime_error)
 
int fetchIDLast () throw (std::runtime_error)
 
int fetchNextId () throw (std::runtime_error)
 
void prepareWrite () throw (std::runtime_error)
 
void setByID (int id) throw (std::runtime_error)
 
int updateDefaultCycle () throw (std::runtime_error)
 
void writeDB () throw (std::runtime_error)
 

Private Attributes

Tm m_db_time
 
int m_defaults
 
std::string m_description
 
int m_ID
 
int m_num_events
 
int m_num_seq
 
RunModeDef m_runModeDef
 
RunTypeDef m_runTypeDef
 
std::string m_tag
 
std::string m_trigger_mode
 
std::string m_usage_status
 
int m_version
 

Friends

class EcalCondDBInterface
 

Additional Inherited Members

- Public Types inherited from IODConfig
typedef oracle::occi::Clob Clob
 
typedef oracle::occi::SQLException SQLException
 
typedef oracle::occi::Statement Statement
 
typedef oracle::occi::Stream Stream
 
- Public Attributes inherited from IODConfig
std::string m_config_tag
 
- Static Public Attributes inherited from IDBObject
static int const ECALDB_NROWS =1024
 
- Protected Member Functions inherited from IODConfig
void checkPrepare () throw (std::runtime_error)
 
void createReadStatement () throw (std::runtime_error)
 
void populateClob (Clob &clob, std::string fname, unsigned int bufsize) throw (std::runtime_error)
 
unsigned char * readClob (Clob &clob, int size) throw (std::runtime_error)
 
void setPrefetchRowCount (int ncount) throw (std::runtime_error)
 
void terminateReadStatement () throw (std::runtime_error)
 
void terminateWriteStatement () throw (std::runtime_error)
 
- Protected Member Functions inherited from IDBObject
void checkConnection () const throw (std::runtime_error)
 
- Protected Attributes inherited from IODConfig
Statementm_readStmt
 
Statementm_writeStmt
 
- Protected Attributes inherited from IDBObject
oracle::occi::Connection * m_conn
 
oracle::occi::Environment * m_env
 

Detailed Description

Definition at line 12 of file ODRunConfigInfo.h.

Constructor & Destructor Documentation

ODRunConfigInfo::ODRunConfigInfo ( )

Definition at line 12 of file ODRunConfigInfo.cc.

ODRunConfigInfo::~ODRunConfigInfo ( )

Definition at line 30 of file ODRunConfigInfo.cc.

Member Function Documentation

void ODRunConfigInfo::clear ( void  )
private

Definition at line 294 of file ODRunConfigInfo.cc.

void ODRunConfigInfo::fetchData ( ODRunConfigInfo result)
throw (std::runtime_error
)
private

Definition at line 303 of file ODRunConfigInfo.cc.

int ODRunConfigInfo::fetchID ( )
throw (std::runtime_error
)
private

Definition at line 75 of file ODRunConfigInfo.cc.

int ODRunConfigInfo::fetchIDFromTagAndVersion ( )
throw (std::runtime_error
)
private

Definition at line 140 of file ODRunConfigInfo.cc.

int ODRunConfigInfo::fetchIDLast ( )
throw (std::runtime_error
)
private

Definition at line 112 of file ODRunConfigInfo.cc.

int ODRunConfigInfo::fetchNextId ( )
throw (std::runtime_error
)
private

Definition at line 54 of file ODRunConfigInfo.cc.

Tm ODRunConfigInfo::getDBTime ( ) const
inline

Definition at line 26 of file ODRunConfigInfo.h.

References m_db_time.

26 { return m_db_time;}
int ODRunConfigInfo::getDefaults ( ) const
inline

Definition at line 41 of file ODRunConfigInfo.h.

References m_defaults.

41 { return m_defaults;}
std::string ODRunConfigInfo::getDescription ( ) const
inline

Definition at line 32 of file ODRunConfigInfo.h.

References m_description.

32 { return m_description;}
std::string m_description
int ODRunConfigInfo::getId ( ) const
inline

Definition at line 21 of file ODRunConfigInfo.h.

References m_ID.

21 { return m_ID; }
int ODRunConfigInfo::getNumberOfEvents ( ) const
inline

Definition at line 47 of file ODRunConfigInfo.h.

References m_num_events.

47 { return m_num_events ;}
int ODRunConfigInfo::getNumberOfSequences ( ) const
inline

Definition at line 38 of file ODRunConfigInfo.h.

References m_num_seq.

38 {return m_num_seq; }
RunModeDef ODRunConfigInfo::getRunModeDef ( ) const

Definition at line 44 of file ODRunConfigInfo.cc.

RunTypeDef ODRunConfigInfo::getRunTypeDef ( ) const

Definition at line 35 of file ODRunConfigInfo.cc.

std::string ODRunConfigInfo::getTable ( )
inlinevirtual

Implements IODConfig.

Definition at line 18 of file ODRunConfigInfo.h.

18 { return "ECAL_RUN_CONFIGURATION_DAT"; }
std::string ODRunConfigInfo::getTag ( void  ) const
inline

Definition at line 29 of file ODRunConfigInfo.h.

References m_tag.

29 { return m_tag;}
std::string m_tag
std::string ODRunConfigInfo::getTriggerMode ( ) const
inline

Definition at line 44 of file ODRunConfigInfo.h.

References m_trigger_mode.

44 { return m_trigger_mode;}
std::string m_trigger_mode
std::string ODRunConfigInfo::getUsageStatus ( ) const
inline

Definition at line 50 of file ODRunConfigInfo.h.

References m_usage_status.

50 { return m_usage_status;}
std::string m_usage_status
int ODRunConfigInfo::getVersion ( ) const
inline

Definition at line 35 of file ODRunConfigInfo.h.

References m_version.

35 {return m_version; }
bool ODRunConfigInfo::operator!= ( const ODRunConfigInfo r) const
inline

Definition at line 61 of file ODRunConfigInfo.h.

References alignCSCRings::r.

61 { return !(*this == r); }
bool ODRunConfigInfo::operator== ( const ODRunConfigInfo r) const
inline

Definition at line 60 of file ODRunConfigInfo.h.

References m_ID.

60 { return (m_ID == r.m_ID ); }
void ODRunConfigInfo::prepareWrite ( )
throw (std::runtime_error
)
privatevirtual

Implements IODConfig.

Definition at line 192 of file ODRunConfigInfo.cc.

void ODRunConfigInfo::setByID ( int  id)
throw (std::runtime_error
)
private

Definition at line 149 of file ODRunConfigInfo.cc.

void ODRunConfigInfo::setDBTime ( const Tm x)
inline

Definition at line 25 of file ODRunConfigInfo.h.

References m_db_time, and x.

void ODRunConfigInfo::setDefaults ( int  x)
inline

Definition at line 40 of file ODRunConfigInfo.h.

References m_defaults, and x.

void ODRunConfigInfo::setDescription ( std::string  x)
inline

Definition at line 31 of file ODRunConfigInfo.h.

References m_description, and x.

31 { m_description = x;}
std::string m_description
void ODRunConfigInfo::setId ( int  id)
inline

Definition at line 20 of file ODRunConfigInfo.h.

References m_ID.

20 { m_ID = id; }
void ODRunConfigInfo::setNumberOfEvents ( int  x)
inline

Definition at line 46 of file ODRunConfigInfo.h.

References m_num_events, and x.

void ODRunConfigInfo::setNumberOfSequences ( int  n)
inline

Definition at line 37 of file ODRunConfigInfo.h.

References m_num_seq, and gen::n.

37 { m_num_seq = n; }
void ODRunConfigInfo::setRunModeDef ( const RunModeDef runModeDef)

Definition at line 45 of file ODRunConfigInfo.cc.

void ODRunConfigInfo::setRunTypeDef ( const RunTypeDef runTypeDef)

Definition at line 36 of file ODRunConfigInfo.cc.

void ODRunConfigInfo::setTag ( std::string  x)
inline

Definition at line 28 of file ODRunConfigInfo.h.

References m_tag, and x.

28 { m_tag = x; }
std::string m_tag
void ODRunConfigInfo::setTriggerMode ( std::string  x)
inline

Definition at line 43 of file ODRunConfigInfo.h.

References m_trigger_mode, and x.

43 { m_trigger_mode = x;}
std::string m_trigger_mode
void ODRunConfigInfo::setUsageStatus ( std::string  x)
inline

Definition at line 49 of file ODRunConfigInfo.h.

References m_usage_status, and x.

49 { m_usage_status = x;}
std::string m_usage_status
void ODRunConfigInfo::setVersion ( int  x)
inline

Definition at line 34 of file ODRunConfigInfo.h.

References m_version, and x.

int ODRunConfigInfo::updateDefaultCycle ( )
throw (std::runtime_error
)
private

Definition at line 265 of file ODRunConfigInfo.cc.

void ODRunConfigInfo::writeDB ( )
throw (std::runtime_error
)
private

Definition at line 217 of file ODRunConfigInfo.cc.

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 14 of file ODRunConfigInfo.h.

Member Data Documentation

Tm ODRunConfigInfo::m_db_time
private

Definition at line 66 of file ODRunConfigInfo.h.

Referenced by getDBTime(), and setDBTime().

int ODRunConfigInfo::m_defaults
private

Definition at line 73 of file ODRunConfigInfo.h.

Referenced by getDefaults(), and setDefaults().

std::string ODRunConfigInfo::m_description
private

Definition at line 72 of file ODRunConfigInfo.h.

Referenced by getDescription(), and setDescription().

int ODRunConfigInfo::m_ID
private

Definition at line 65 of file ODRunConfigInfo.h.

Referenced by getId(), operator==(), and setId().

int ODRunConfigInfo::m_num_events
private

Definition at line 75 of file ODRunConfigInfo.h.

Referenced by getNumberOfEvents(), and setNumberOfEvents().

int ODRunConfigInfo::m_num_seq
private

Definition at line 71 of file ODRunConfigInfo.h.

Referenced by getNumberOfSequences(), and setNumberOfSequences().

RunModeDef ODRunConfigInfo::m_runModeDef
private

Definition at line 69 of file ODRunConfigInfo.h.

RunTypeDef ODRunConfigInfo::m_runTypeDef
private

Definition at line 70 of file ODRunConfigInfo.h.

std::string ODRunConfigInfo::m_tag
private

Definition at line 67 of file ODRunConfigInfo.h.

Referenced by getTag(), and setTag().

std::string ODRunConfigInfo::m_trigger_mode
private

Definition at line 74 of file ODRunConfigInfo.h.

Referenced by getTriggerMode(), and setTriggerMode().

std::string ODRunConfigInfo::m_usage_status
private

Definition at line 76 of file ODRunConfigInfo.h.

Referenced by getUsageStatus(), and setUsageStatus().

int ODRunConfigInfo::m_version
private

Definition at line 68 of file ODRunConfigInfo.h.

Referenced by getVersion(), and setVersion().