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

#include <ODTCCConfig.h>

Inheritance diagram for ODTCCConfig:
IODConfig IDBObject

Public Member Functions

int getId () const
 
unsigned char * getLUTClob () const
 
std::string getLUTConfigurationFile () const
 
int getNTestPatternsToLoad () const
 
unsigned char * getSLBClob () const
 
std::string getSLBConfigurationFile () const
 
std::string getTable ()
 
unsigned char * getTCCClob () const
 
std::string getTCCConfigurationFile () const
 
std::string getTestPatternFileUrl () const
 
 ODTCCConfig ()
 
void setId (int id)
 
void setLUTClob (unsigned char *x)
 
void setLUTConfigurationFile (std::string x)
 
void setNTestPatternsToLoad (int id)
 
void setParameters (const std::map< std::string, std::string > &my_keys_map)
 
void setSLBClob (unsigned char *x)
 
void setSLBConfigurationFile (std::string x)
 
void setTCCClob (unsigned char *x)
 
void setTCCConfigurationFile (std::string x)
 
void setTestPatternFileUrl (std::string x)
 
 ~ODTCCConfig ()
 
- 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 (ODTCCConfig *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

int m_ID
 
unsigned char * m_lut_clob
 
std::string m_lut_file
 
int m_ntest
 
unsigned int m_size
 
unsigned char * m_slb_clob
 
std::string m_slb_file
 
unsigned char * m_tcc_clob
 
std::string m_tcc_file
 
std::string m_test_url
 

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 ODTCCConfig.h.

Constructor & Destructor Documentation

ODTCCConfig::ODTCCConfig ( )

Definition at line 11 of file ODTCCConfig.cc.

ODTCCConfig::~ODTCCConfig ( )

Definition at line 34 of file ODTCCConfig.cc.

Member Function Documentation

void ODTCCConfig::clear ( void  )
private

Definition at line 24 of file ODTCCConfig.cc.

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

Definition at line 180 of file ODTCCConfig.cc.

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

Definition at line 256 of file ODTCCConfig.cc.

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

Definition at line 38 of file ODTCCConfig.cc.

int ODTCCConfig::getId ( ) const
inline

Definition at line 25 of file ODTCCConfig.h.

References m_ID.

25 { return m_ID; }
unsigned char* ODTCCConfig::getLUTClob ( ) const
inline

Definition at line 42 of file ODTCCConfig.h.

References m_lut_clob.

42 { return m_lut_clob; }
unsigned char * m_lut_clob
Definition: ODTCCConfig.h:63
std::string ODTCCConfig::getLUTConfigurationFile ( ) const
inline

Definition at line 30 of file ODTCCConfig.h.

References m_lut_file.

30 { return m_lut_file; }
std::string m_lut_file
Definition: ODTCCConfig.h:66
int ODTCCConfig::getNTestPatternsToLoad ( ) const
inline

Definition at line 36 of file ODTCCConfig.h.

References m_ntest.

36 { return m_ntest; }
unsigned char* ODTCCConfig::getSLBClob ( ) const
inline

Definition at line 45 of file ODTCCConfig.h.

References m_slb_clob.

45 { return m_slb_clob; }
unsigned char * m_slb_clob
Definition: ODTCCConfig.h:64
std::string ODTCCConfig::getSLBConfigurationFile ( ) const
inline

Definition at line 32 of file ODTCCConfig.h.

References m_slb_file.

32 { return m_slb_file; }
std::string m_slb_file
Definition: ODTCCConfig.h:67
std::string ODTCCConfig::getTable ( )
inlinevirtual

Implements IODConfig.

Definition at line 22 of file ODTCCConfig.h.

22 { return "ECAL_TCC_CONFIGURATION"; }
unsigned char* ODTCCConfig::getTCCClob ( ) const
inline

Definition at line 39 of file ODTCCConfig.h.

References m_tcc_clob.

39 { return m_tcc_clob; }
unsigned char * m_tcc_clob
Definition: ODTCCConfig.h:62
std::string ODTCCConfig::getTCCConfigurationFile ( ) const
inline

Definition at line 28 of file ODTCCConfig.h.

References m_tcc_file.

28 { return m_tcc_file; }
std::string m_tcc_file
Definition: ODTCCConfig.h:65
std::string ODTCCConfig::getTestPatternFileUrl ( ) const
inline

Definition at line 34 of file ODTCCConfig.h.

References m_test_url.

34 { return m_test_url; }
std::string m_test_url
Definition: ODTCCConfig.h:68
void ODTCCConfig::prepareWrite ( )
throw (std::runtime_error
)
privatevirtual

Implements IODConfig.

Definition at line 81 of file ODTCCConfig.cc.

void ODTCCConfig::setId ( int  id)
inline

Definition at line 24 of file ODTCCConfig.h.

References m_ID.

24 { m_ID = id; }
void ODTCCConfig::setLUTClob ( unsigned char *  x)
inline

Definition at line 41 of file ODTCCConfig.h.

References m_lut_clob, and x.

41 { m_lut_clob = x; }
unsigned char * m_lut_clob
Definition: ODTCCConfig.h:63
void ODTCCConfig::setLUTConfigurationFile ( std::string  x)
inline

Definition at line 29 of file ODTCCConfig.h.

References m_lut_file, and x.

29 { m_lut_file = x; }
std::string m_lut_file
Definition: ODTCCConfig.h:66
void ODTCCConfig::setNTestPatternsToLoad ( int  id)
inline

Definition at line 35 of file ODTCCConfig.h.

References m_ntest.

35 { m_ntest = id; }
void ODTCCConfig::setParameters ( const std::map< std::string, std::string > &  my_keys_map)

Definition at line 60 of file ODTCCConfig.cc.

void ODTCCConfig::setSLBClob ( unsigned char *  x)
inline

Definition at line 44 of file ODTCCConfig.h.

References m_slb_clob, and x.

44 { m_slb_clob = x; }
unsigned char * m_slb_clob
Definition: ODTCCConfig.h:64
void ODTCCConfig::setSLBConfigurationFile ( std::string  x)
inline

Definition at line 31 of file ODTCCConfig.h.

References m_slb_file, and x.

31 { m_slb_file = x; }
std::string m_slb_file
Definition: ODTCCConfig.h:67
void ODTCCConfig::setTCCClob ( unsigned char *  x)
inline

Definition at line 38 of file ODTCCConfig.h.

References m_tcc_clob, and x.

38 { m_tcc_clob = x; }
unsigned char * m_tcc_clob
Definition: ODTCCConfig.h:62
void ODTCCConfig::setTCCConfigurationFile ( std::string  x)
inline

Definition at line 27 of file ODTCCConfig.h.

References m_tcc_file, and x.

27 { m_tcc_file = x; }
std::string m_tcc_file
Definition: ODTCCConfig.h:65
void ODTCCConfig::setTestPatternFileUrl ( std::string  x)
inline

Definition at line 33 of file ODTCCConfig.h.

References m_test_url, and x.

33 { m_test_url = x; }
std::string m_test_url
Definition: ODTCCConfig.h:68
void ODTCCConfig::writeDB ( )
throw (std::runtime_error
)
private

Definition at line 137 of file ODTCCConfig.cc.

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 17 of file ODTCCConfig.h.

Member Data Documentation

int ODTCCConfig::m_ID
private

Definition at line 61 of file ODTCCConfig.h.

Referenced by getId(), and setId().

unsigned char* ODTCCConfig::m_lut_clob
private

Definition at line 63 of file ODTCCConfig.h.

Referenced by getLUTClob(), and setLUTClob().

std::string ODTCCConfig::m_lut_file
private

Definition at line 66 of file ODTCCConfig.h.

Referenced by getLUTConfigurationFile(), and setLUTConfigurationFile().

int ODTCCConfig::m_ntest
private

Definition at line 69 of file ODTCCConfig.h.

Referenced by getNTestPatternsToLoad(), and setNTestPatternsToLoad().

unsigned int ODTCCConfig::m_size
private

Definition at line 70 of file ODTCCConfig.h.

unsigned char* ODTCCConfig::m_slb_clob
private

Definition at line 64 of file ODTCCConfig.h.

Referenced by getSLBClob(), and setSLBClob().

std::string ODTCCConfig::m_slb_file
private

Definition at line 67 of file ODTCCConfig.h.

Referenced by getSLBConfigurationFile(), and setSLBConfigurationFile().

unsigned char* ODTCCConfig::m_tcc_clob
private

Definition at line 62 of file ODTCCConfig.h.

Referenced by getTCCClob(), and setTCCClob().

std::string ODTCCConfig::m_tcc_file
private

Definition at line 65 of file ODTCCConfig.h.

Referenced by getTCCConfigurationFile(), and setTCCConfigurationFile().

std::string ODTCCConfig::m_test_url
private

Definition at line 68 of file ODTCCConfig.h.

Referenced by getTestPatternFileUrl(), and setTestPatternFileUrl().