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

#include <ODDCCConfig.h>

Inheritance diagram for ODDCCConfig:
IODConfig IDBObject

Public Member Functions

unsigned char * getDCCClob () const
 
unsigned int getDCCClobSize () const
 
std::string getDCCConfigurationUrl () const
 
std::string getDCCWeightsMode () const
 
int getId () const
 
int getNTestPatternsToLoad () const
 
unsigned int getSize () const
 
int getSMHalf () const
 
std::string getTable ()
 
std::string getTestPatternFileUrl () const
 
 ODDCCConfig ()
 
void setDCCClob (unsigned char *x)
 
void setDCCConfigurationUrl (std::string x)
 
void setDCCWeightsMode (std::string x)
 
void setId (int id)
 
void setNTestPatternsToLoad (int id)
 
void setParameters (const std::map< std::string, std::string > &my_keys_map)
 
void setSize (unsigned int id)
 
void setSMHalf (int id)
 
void setTestPatternFileUrl (std::string x)
 
 ~ODDCCConfig ()
 
- 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 (ODDCCConfig *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

unsigned char * m_dcc_clob
 
std::string m_dcc_url
 
int m_ID
 
int m_ntest
 
unsigned int m_size
 
int m_sm_half
 
std::string m_test_url
 
std::string m_wei
 

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

Constructor & Destructor Documentation

ODDCCConfig::ODDCCConfig ( )

Definition at line 15 of file ODDCCConfig.cc.

ODDCCConfig::~ODDCCConfig ( )

Definition at line 31 of file ODDCCConfig.cc.

Member Function Documentation

void ODDCCConfig::clear ( void  )
private

Definition at line 194 of file ODDCCConfig.cc.

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

Definition at line 207 of file ODDCCConfig.cc.

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

Definition at line 269 of file ODDCCConfig.cc.

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

Definition at line 35 of file ODDCCConfig.cc.

unsigned char* ODDCCConfig::getDCCClob ( ) const
inline

Definition at line 42 of file ODDCCConfig.h.

References m_dcc_clob.

42 { return m_dcc_clob; }
unsigned char * m_dcc_clob
Definition: ODDCCConfig.h:61
unsigned int ODDCCConfig::getDCCClobSize ( ) const
inline

Definition at line 43 of file ODDCCConfig.h.

References m_size.

43 { return m_size; }
unsigned int m_size
Definition: ODDCCConfig.h:66
std::string ODDCCConfig::getDCCConfigurationUrl ( ) const
inline

Definition at line 30 of file ODDCCConfig.h.

References m_dcc_url.

30 { return m_dcc_url; }
std::string m_dcc_url
Definition: ODDCCConfig.h:62
std::string ODDCCConfig::getDCCWeightsMode ( ) const
inline

Definition at line 45 of file ODDCCConfig.h.

References m_wei.

45 { return m_wei; }
std::string m_wei
Definition: ODDCCConfig.h:67
int ODDCCConfig::getId ( ) const
inline

Definition at line 25 of file ODDCCConfig.h.

References m_ID.

25 { return m_ID; }
int ODDCCConfig::getNTestPatternsToLoad ( ) const
inline

Definition at line 36 of file ODDCCConfig.h.

References m_ntest.

36 { return m_ntest; }
unsigned int ODDCCConfig::getSize ( ) const
inline

Definition at line 27 of file ODDCCConfig.h.

References m_size.

27 { return m_size; }
unsigned int m_size
Definition: ODDCCConfig.h:66
int ODDCCConfig::getSMHalf ( ) const
inline

Definition at line 39 of file ODDCCConfig.h.

References m_sm_half.

39 { return m_sm_half; }
std::string ODDCCConfig::getTable ( )
inlinevirtual

Implements IODConfig.

Definition at line 22 of file ODDCCConfig.h.

22 { return "ECAL_DCC_CONFIGURATION"; }
std::string ODDCCConfig::getTestPatternFileUrl ( ) const
inline

Definition at line 33 of file ODDCCConfig.h.

References m_test_url.

33 { return m_test_url; }
std::string m_test_url
Definition: ODDCCConfig.h:63
void ODDCCConfig::prepareWrite ( )
throw (std::runtime_error
)
privatevirtual

Implements IODConfig.

Definition at line 59 of file ODDCCConfig.cc.

void ODDCCConfig::setDCCClob ( unsigned char *  x)
inline

Definition at line 41 of file ODDCCConfig.h.

References m_dcc_clob, and x.

41 { m_dcc_clob = x; }
unsigned char * m_dcc_clob
Definition: ODDCCConfig.h:61
void ODDCCConfig::setDCCConfigurationUrl ( std::string  x)
inline

Definition at line 29 of file ODDCCConfig.h.

References m_dcc_url, and x.

29 { m_dcc_url = x; }
std::string m_dcc_url
Definition: ODDCCConfig.h:62
void ODDCCConfig::setDCCWeightsMode ( std::string  x)
inline

Definition at line 44 of file ODDCCConfig.h.

References m_wei, and x.

44 { m_wei = x; }
std::string m_wei
Definition: ODDCCConfig.h:67
void ODDCCConfig::setId ( int  id)
inline

Definition at line 24 of file ODDCCConfig.h.

References m_ID.

24 { m_ID = id; }
void ODDCCConfig::setNTestPatternsToLoad ( int  id)
inline

Definition at line 35 of file ODDCCConfig.h.

References m_ntest.

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

Definition at line 110 of file ODDCCConfig.cc.

void ODDCCConfig::setSize ( unsigned int  id)
inline

Definition at line 26 of file ODDCCConfig.h.

References m_size.

26 { m_size = id; }
unsigned int m_size
Definition: ODDCCConfig.h:66
void ODDCCConfig::setSMHalf ( int  id)
inline

Definition at line 38 of file ODDCCConfig.h.

References m_sm_half.

38 { m_sm_half = id; }
void ODDCCConfig::setTestPatternFileUrl ( std::string  x)
inline

Definition at line 32 of file ODDCCConfig.h.

References m_test_url, and x.

32 { m_test_url = x; }
std::string m_test_url
Definition: ODDCCConfig.h:63
void ODDCCConfig::writeDB ( )
throw (std::runtime_error
)
private

Definition at line 153 of file ODDCCConfig.cc.

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 17 of file ODDCCConfig.h.

Member Data Documentation

unsigned char* ODDCCConfig::m_dcc_clob
private

Definition at line 61 of file ODDCCConfig.h.

Referenced by getDCCClob(), and setDCCClob().

std::string ODDCCConfig::m_dcc_url
private

Definition at line 62 of file ODDCCConfig.h.

Referenced by getDCCConfigurationUrl(), and setDCCConfigurationUrl().

int ODDCCConfig::m_ID
private

Definition at line 60 of file ODDCCConfig.h.

Referenced by getId(), and setId().

int ODDCCConfig::m_ntest
private

Definition at line 64 of file ODDCCConfig.h.

Referenced by getNTestPatternsToLoad(), and setNTestPatternsToLoad().

unsigned int ODDCCConfig::m_size
private

Definition at line 66 of file ODDCCConfig.h.

Referenced by getDCCClobSize(), getSize(), and setSize().

int ODDCCConfig::m_sm_half
private

Definition at line 65 of file ODDCCConfig.h.

Referenced by getSMHalf(), and setSMHalf().

std::string ODDCCConfig::m_test_url
private

Definition at line 63 of file ODDCCConfig.h.

Referenced by getTestPatternFileUrl(), and setTestPatternFileUrl().

std::string ODDCCConfig::m_wei
private

Definition at line 67 of file ODDCCConfig.h.

Referenced by getDCCWeightsMode(), and setDCCWeightsMode().