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
ODTTCciConfig Class Reference

#include <ODTTCciConfig.h>

Inheritance diagram for ODTTCciConfig:
IODConfig IDBObject

Public Member Functions

std::string getConfigurationScript () const
 
std::string getConfigurationScriptParams () const
 
int getId () const
 
unsigned int getSize () const
 
std::string getTable ()
 
std::string getTrgMode () const
 
int getTrgSleep () const
 
unsigned char * getTTCciClob () const
 
std::string getTTCciConfigurationFile () const
 
 ODTTCciConfig ()
 
void setConfigurationScript (std::string x)
 
void setConfigurationScriptParams (std::string x)
 
void setId (int id)
 
void setParameters (const std::map< std::string, std::string > &my_keys_map)
 
void setSize (unsigned int id)
 
void setTrgMode (std::string x)
 
void setTrgSleep (int id)
 
void setTTCciClob (unsigned char *x)
 
void setTTCciConfigurationFile (std::string x)
 
 ~ODTTCciConfig ()
 
- 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 (ODTTCciConfig *result) throw (std::runtime_error)
 
int fetchID () throw (std::runtime_error)
 
int fetchNextId () throw (std::runtime_error)
 
void prepareWrite () throw (std::runtime_error)
 
void writeDB () throw (std::runtime_error)
 

Private Attributes

std::string m_configuration_script
 
std::string m_configuration_script_params
 
int m_ID
 
int m_size
 
std::string m_trg_mode
 
int m_trg_sleep
 
unsigned char * m_ttcci_clob
 
std::string m_ttcci_file
 

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 15 of file ODTTCciConfig.h.

Constructor & Destructor Documentation

ODTTCciConfig::ODTTCciConfig ( )

Definition at line 15 of file ODTTCciConfig.cc.

ODTTCciConfig::~ODTTCciConfig ( )

Definition at line 39 of file ODTTCciConfig.cc.

Member Function Documentation

void ODTTCciConfig::clear ( void  )
private

Definition at line 29 of file ODTTCciConfig.cc.

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

Definition at line 207 of file ODTTCciConfig.cc.

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

Definition at line 262 of file ODTTCciConfig.cc.

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

Definition at line 43 of file ODTTCciConfig.cc.

std::string ODTTCciConfig::getConfigurationScript ( ) const
inline

Definition at line 31 of file ODTTCciConfig.h.

References m_configuration_script.

31 { return m_configuration_script; }
std::string m_configuration_script
Definition: ODTTCciConfig.h:62
std::string ODTTCciConfig::getConfigurationScriptParams ( ) const
inline

Definition at line 33 of file ODTTCciConfig.h.

References m_configuration_script_params.

std::string m_configuration_script_params
Definition: ODTTCciConfig.h:63
int ODTTCciConfig::getId ( ) const
inline

Definition at line 25 of file ODTTCciConfig.h.

References m_ID.

25 { return m_ID; }
unsigned int ODTTCciConfig::getSize ( ) const
inline

Definition at line 44 of file ODTTCciConfig.h.

References m_size.

44 { return m_size; }
std::string ODTTCciConfig::getTable ( )
inlinevirtual

Implements IODConfig.

Definition at line 22 of file ODTTCciConfig.h.

22 { return "ECAL_TTCci_CONFIGURATION"; }
std::string ODTTCciConfig::getTrgMode ( ) const
inline

Definition at line 37 of file ODTTCciConfig.h.

References m_trg_mode.

37 { return m_trg_mode; }
std::string m_trg_mode
Definition: ODTTCciConfig.h:64
int ODTTCciConfig::getTrgSleep ( ) const
inline

Definition at line 39 of file ODTTCciConfig.h.

References m_trg_sleep.

39 { return m_trg_sleep; }
unsigned char* ODTTCciConfig::getTTCciClob ( ) const
inline

Definition at line 42 of file ODTTCciConfig.h.

References m_ttcci_clob.

42 { return m_ttcci_clob; }
unsigned char * m_ttcci_clob
Definition: ODTTCciConfig.h:60
std::string ODTTCciConfig::getTTCciConfigurationFile ( ) const
inline

Definition at line 28 of file ODTTCciConfig.h.

References m_ttcci_file.

28 { return m_ttcci_file; }
std::string m_ttcci_file
Definition: ODTTCciConfig.h:61
void ODTTCciConfig::prepareWrite ( )
throw (std::runtime_error
)
privatevirtual

Implements IODConfig.

Definition at line 67 of file ODTTCciConfig.cc.

void ODTTCciConfig::setConfigurationScript ( std::string  x)
inline

Definition at line 30 of file ODTTCciConfig.h.

References m_configuration_script, and x.

std::string m_configuration_script
Definition: ODTTCciConfig.h:62
void ODTTCciConfig::setConfigurationScriptParams ( std::string  x)
inline

Definition at line 32 of file ODTTCciConfig.h.

References m_configuration_script_params, and x.

std::string m_configuration_script_params
Definition: ODTTCciConfig.h:63
void ODTTCciConfig::setId ( int  id)
inline

Definition at line 24 of file ODTTCciConfig.h.

References m_ID.

24 { m_ID = id; }
void ODTTCciConfig::setParameters ( const std::map< std::string, std::string > &  my_keys_map)

Definition at line 113 of file ODTTCciConfig.cc.

void ODTTCciConfig::setSize ( unsigned int  id)
inline

Definition at line 43 of file ODTTCciConfig.h.

References m_size.

43 { m_size = id; }
void ODTTCciConfig::setTrgMode ( std::string  x)
inline

Definition at line 36 of file ODTTCciConfig.h.

References m_trg_mode, and x.

36 { m_trg_mode = x; }
std::string m_trg_mode
Definition: ODTTCciConfig.h:64
void ODTTCciConfig::setTrgSleep ( int  id)
inline

Definition at line 38 of file ODTTCciConfig.h.

References m_trg_sleep.

38 { m_trg_sleep = id; }
void ODTTCciConfig::setTTCciClob ( unsigned char *  x)
inline

Definition at line 41 of file ODTTCciConfig.h.

References m_ttcci_clob, and x.

41 { m_ttcci_clob = x; }
unsigned char * m_ttcci_clob
Definition: ODTTCciConfig.h:60
void ODTTCciConfig::setTTCciConfigurationFile ( std::string  x)
inline

Definition at line 27 of file ODTTCciConfig.h.

References m_ttcci_file, and x.

27 { m_ttcci_file = x; }
std::string m_ttcci_file
Definition: ODTTCciConfig.h:61
void ODTTCciConfig::writeDB ( )
throw (std::runtime_error
)
private

Definition at line 163 of file ODTTCciConfig.cc.

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 17 of file ODTTCciConfig.h.

Member Data Documentation

std::string ODTTCciConfig::m_configuration_script
private

Definition at line 62 of file ODTTCciConfig.h.

Referenced by getConfigurationScript(), and setConfigurationScript().

std::string ODTTCciConfig::m_configuration_script_params
private

Definition at line 63 of file ODTTCciConfig.h.

Referenced by getConfigurationScriptParams(), and setConfigurationScriptParams().

int ODTTCciConfig::m_ID
private

Definition at line 59 of file ODTTCciConfig.h.

Referenced by getId(), and setId().

int ODTTCciConfig::m_size
private

Definition at line 66 of file ODTTCciConfig.h.

Referenced by getSize(), and setSize().

std::string ODTTCciConfig::m_trg_mode
private

Definition at line 64 of file ODTTCciConfig.h.

Referenced by getTrgMode(), and setTrgMode().

int ODTTCciConfig::m_trg_sleep
private

Definition at line 65 of file ODTTCciConfig.h.

Referenced by getTrgSleep(), and setTrgSleep().

unsigned char* ODTTCciConfig::m_ttcci_clob
private

Definition at line 60 of file ODTTCciConfig.h.

Referenced by getTTCciClob(), and setTTCciClob().

std::string ODTTCciConfig::m_ttcci_file
private

Definition at line 61 of file ODTTCciConfig.h.

Referenced by getTTCciConfigurationFile(), and setTTCciConfigurationFile().