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

#include <ODTCCEEConfig.h>

Inheritance diagram for ODTCCEEConfig:
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
 
int getSLBLatency () const
 
std::string getTable ()
 
unsigned char * getTCCClob () const
 
std::string getTCCConfigurationFile () const
 
std::string getTestPatternFileUrl () const
 
int getTrigPos () const
 
 ODTCCEEConfig ()
 
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 setSLBLatency (int id)
 
void setTCCClob (unsigned char *x)
 
void setTCCConfigurationFile (std::string x)
 
void setTestPatternFileUrl (std::string x)
 
void setTriggerPos (int id)
 
 ~ODTCCEEConfig ()
 
- 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 (ODTCCEEConfig *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
 
int m_slb
 
unsigned char * m_slb_clob
 
std::string m_slb_file
 
unsigned char * m_tcc_ee_clob
 
std::string m_tcc_ee_file
 
std::string m_test_url
 
int m_trigpos
 

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

Constructor & Destructor Documentation

ODTCCEEConfig::ODTCCEEConfig ( )

Definition at line 12 of file ODTCCEEConfig.cc.

ODTCCEEConfig::~ODTCCEEConfig ( )

Definition at line 35 of file ODTCCEEConfig.cc.

Member Function Documentation

void ODTCCEEConfig::clear ( void  )
private

Definition at line 25 of file ODTCCEEConfig.cc.

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

Definition at line 188 of file ODTCCEEConfig.cc.

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

Definition at line 265 of file ODTCCEEConfig.cc.

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

Definition at line 39 of file ODTCCEEConfig.cc.

int ODTCCEEConfig::getId ( ) const
inline

Definition at line 25 of file ODTCCEEConfig.h.

References m_ID.

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

Definition at line 47 of file ODTCCEEConfig.h.

References m_lut_clob.

47 { return m_lut_clob; }
unsigned char * m_lut_clob
Definition: ODTCCEEConfig.h:68
std::string ODTCCEEConfig::getLUTConfigurationFile ( ) const
inline

Definition at line 30 of file ODTCCEEConfig.h.

References m_lut_file.

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

Definition at line 36 of file ODTCCEEConfig.h.

References m_ntest.

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

Definition at line 50 of file ODTCCEEConfig.h.

References m_slb_clob.

50 { return m_slb_clob; }
unsigned char * m_slb_clob
Definition: ODTCCEEConfig.h:69
std::string ODTCCEEConfig::getSLBConfigurationFile ( ) const
inline

Definition at line 32 of file ODTCCEEConfig.h.

References m_slb_file.

32 { return m_slb_file; }
std::string m_slb_file
Definition: ODTCCEEConfig.h:72
int ODTCCEEConfig::getSLBLatency ( ) const
inline

Definition at line 41 of file ODTCCEEConfig.h.

References m_slb.

41 { return m_slb; }
std::string ODTCCEEConfig::getTable ( )
inlinevirtual

Implements IODConfig.

Definition at line 22 of file ODTCCEEConfig.h.

22 { return "ECAL_TCC_EE_CONFIGURATION"; }
unsigned char* ODTCCEEConfig::getTCCClob ( ) const
inline

Definition at line 44 of file ODTCCEEConfig.h.

References m_tcc_ee_clob.

44 { return m_tcc_ee_clob; }
unsigned char * m_tcc_ee_clob
Definition: ODTCCEEConfig.h:67
std::string ODTCCEEConfig::getTCCConfigurationFile ( ) const
inline

Definition at line 28 of file ODTCCEEConfig.h.

References m_tcc_ee_file.

28 { return m_tcc_ee_file; }
std::string m_tcc_ee_file
Definition: ODTCCEEConfig.h:70
std::string ODTCCEEConfig::getTestPatternFileUrl ( ) const
inline

Definition at line 34 of file ODTCCEEConfig.h.

References m_test_url.

34 { return m_test_url; }
std::string m_test_url
Definition: ODTCCEEConfig.h:73
int ODTCCEEConfig::getTrigPos ( ) const
inline

Definition at line 38 of file ODTCCEEConfig.h.

References m_trigpos.

38 { return m_trigpos; }
void ODTCCEEConfig::prepareWrite ( )
throw (std::runtime_error
)
privatevirtual

Implements IODConfig.

Definition at line 87 of file ODTCCEEConfig.cc.

void ODTCCEEConfig::setId ( int  id)
inline

Definition at line 24 of file ODTCCEEConfig.h.

References m_ID.

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

Definition at line 46 of file ODTCCEEConfig.h.

References m_lut_clob, and x.

46 { m_lut_clob = x; }
unsigned char * m_lut_clob
Definition: ODTCCEEConfig.h:68
void ODTCCEEConfig::setLUTConfigurationFile ( std::string  x)
inline

Definition at line 29 of file ODTCCEEConfig.h.

References m_lut_file, and x.

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

Definition at line 35 of file ODTCCEEConfig.h.

References m_ntest.

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

Definition at line 61 of file ODTCCEEConfig.cc.

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

Definition at line 49 of file ODTCCEEConfig.h.

References m_slb_clob, and x.

49 { m_slb_clob = x; }
unsigned char * m_slb_clob
Definition: ODTCCEEConfig.h:69
void ODTCCEEConfig::setSLBConfigurationFile ( std::string  x)
inline

Definition at line 31 of file ODTCCEEConfig.h.

References m_slb_file, and x.

31 { m_slb_file = x; }
std::string m_slb_file
Definition: ODTCCEEConfig.h:72
void ODTCCEEConfig::setSLBLatency ( int  id)
inline

Definition at line 40 of file ODTCCEEConfig.h.

References m_slb.

40 { m_slb = id; }
void ODTCCEEConfig::setTCCClob ( unsigned char *  x)
inline

Definition at line 43 of file ODTCCEEConfig.h.

References m_tcc_ee_clob, and x.

43 { m_tcc_ee_clob = x; }
unsigned char * m_tcc_ee_clob
Definition: ODTCCEEConfig.h:67
void ODTCCEEConfig::setTCCConfigurationFile ( std::string  x)
inline

Definition at line 27 of file ODTCCEEConfig.h.

References m_tcc_ee_file, and x.

27 { m_tcc_ee_file = x; }
std::string m_tcc_ee_file
Definition: ODTCCEEConfig.h:70
void ODTCCEEConfig::setTestPatternFileUrl ( std::string  x)
inline

Definition at line 33 of file ODTCCEEConfig.h.

References m_test_url, and x.

33 { m_test_url = x; }
std::string m_test_url
Definition: ODTCCEEConfig.h:73
void ODTCCEEConfig::setTriggerPos ( int  id)
inline

Definition at line 37 of file ODTCCEEConfig.h.

References m_trigpos.

37 { m_trigpos = id; }
void ODTCCEEConfig::writeDB ( )
throw (std::runtime_error
)
private

Definition at line 145 of file ODTCCEEConfig.cc.

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 17 of file ODTCCEEConfig.h.

Member Data Documentation

int ODTCCEEConfig::m_ID
private

Definition at line 66 of file ODTCCEEConfig.h.

Referenced by getId(), and setId().

unsigned char* ODTCCEEConfig::m_lut_clob
private

Definition at line 68 of file ODTCCEEConfig.h.

Referenced by getLUTClob(), and setLUTClob().

std::string ODTCCEEConfig::m_lut_file
private

Definition at line 71 of file ODTCCEEConfig.h.

Referenced by getLUTConfigurationFile(), and setLUTConfigurationFile().

int ODTCCEEConfig::m_ntest
private

Definition at line 74 of file ODTCCEEConfig.h.

Referenced by getNTestPatternsToLoad(), and setNTestPatternsToLoad().

unsigned int ODTCCEEConfig::m_size
private

Definition at line 77 of file ODTCCEEConfig.h.

int ODTCCEEConfig::m_slb
private

Definition at line 76 of file ODTCCEEConfig.h.

Referenced by getSLBLatency(), and setSLBLatency().

unsigned char* ODTCCEEConfig::m_slb_clob
private

Definition at line 69 of file ODTCCEEConfig.h.

Referenced by getSLBClob(), and setSLBClob().

std::string ODTCCEEConfig::m_slb_file
private

Definition at line 72 of file ODTCCEEConfig.h.

Referenced by getSLBConfigurationFile(), and setSLBConfigurationFile().

unsigned char* ODTCCEEConfig::m_tcc_ee_clob
private

Definition at line 67 of file ODTCCEEConfig.h.

Referenced by getTCCClob(), and setTCCClob().

std::string ODTCCEEConfig::m_tcc_ee_file
private

Definition at line 70 of file ODTCCEEConfig.h.

Referenced by getTCCConfigurationFile(), and setTCCConfigurationFile().

std::string ODTCCEEConfig::m_test_url
private

Definition at line 73 of file ODTCCEEConfig.h.

Referenced by getTestPatternFileUrl(), and setTestPatternFileUrl().

int ODTCCEEConfig::m_trigpos
private

Definition at line 75 of file ODTCCEEConfig.h.

Referenced by getTrigPos(), and setTriggerPos().