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

#include <ODLTCConfig.h>

Inheritance diagram for ODLTCConfig:
IODConfig IDBObject

Public Member Functions

int getId () const
 
unsigned char * getLTCClob () const
 
std::string getLTCConfigurationFile () const
 
unsigned int getSize () const
 
std::string getTable ()
 
 ODLTCConfig ()
 
void setId (int id)
 
void setLTCClob (unsigned char *x)
 
void setLTCConfigurationFile (std::string x)
 
void setParameters (const std::map< std::string, std::string > &my_keys_map)
 
void setSize (unsigned int id)
 
 ~ODLTCConfig ()
 
- 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 (ODLTCConfig *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_ltc_clob
 
std::string m_ltc_file
 
int m_size
 

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

Constructor & Destructor Documentation

ODLTCConfig::ODLTCConfig ( )

Definition at line 13 of file ODLTCConfig.cc.

ODLTCConfig::~ODLTCConfig ( )

Definition at line 29 of file ODLTCConfig.cc.

Member Function Documentation

void ODLTCConfig::clear ( void  )
private

Definition at line 190 of file ODLTCConfig.cc.

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

Definition at line 199 of file ODLTCConfig.cc.

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

Definition at line 248 of file ODLTCConfig.cc.

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

Definition at line 34 of file ODLTCConfig.cc.

int ODLTCConfig::getId ( ) const
inline

Definition at line 25 of file ODLTCConfig.h.

References m_ID.

25 { return m_ID; }
unsigned char* ODLTCConfig::getLTCClob ( ) const
inline

Definition at line 34 of file ODLTCConfig.h.

References m_ltc_clob.

34 { return m_ltc_clob; }
unsigned char * m_ltc_clob
Definition: ODLTCConfig.h:50
std::string ODLTCConfig::getLTCConfigurationFile ( ) const
inline

Definition at line 31 of file ODLTCConfig.h.

References m_ltc_file.

31 { return m_ltc_file; }
std::string m_ltc_file
Definition: ODLTCConfig.h:51
unsigned int ODLTCConfig::getSize ( ) const
inline

Definition at line 28 of file ODLTCConfig.h.

References m_size.

28 { return m_size; }
std::string ODLTCConfig::getTable ( )
inlinevirtual

Implements IODConfig.

Definition at line 22 of file ODLTCConfig.h.

22 { return "ECAL_LTC_CONFIGURATION"; }
void ODLTCConfig::prepareWrite ( )
throw (std::runtime_error
)
privatevirtual

Implements IODConfig.

Definition at line 58 of file ODLTCConfig.cc.

void ODLTCConfig::setId ( int  id)
inline

Definition at line 24 of file ODLTCConfig.h.

References m_ID.

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

Definition at line 33 of file ODLTCConfig.h.

References m_ltc_clob, and x.

33 { m_ltc_clob = x; }
unsigned char * m_ltc_clob
Definition: ODLTCConfig.h:50
void ODLTCConfig::setLTCConfigurationFile ( std::string  x)
inline

Definition at line 30 of file ODLTCConfig.h.

References m_ltc_file, and x.

30 { m_ltc_file = x; }
std::string m_ltc_file
Definition: ODLTCConfig.h:51
void ODLTCConfig::setParameters ( const std::map< std::string, std::string > &  my_keys_map)

Definition at line 102 of file ODLTCConfig.cc.

void ODLTCConfig::setSize ( unsigned int  id)
inline

Definition at line 27 of file ODLTCConfig.h.

References m_size.

27 { m_size = id; }
void ODLTCConfig::writeDB ( )
throw (std::runtime_error
)
private

Definition at line 148 of file ODLTCConfig.cc.

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 17 of file ODLTCConfig.h.

Member Data Documentation

int ODLTCConfig::m_ID
private

Definition at line 49 of file ODLTCConfig.h.

Referenced by getId(), and setId().

unsigned char* ODLTCConfig::m_ltc_clob
private

Definition at line 50 of file ODLTCConfig.h.

Referenced by getLTCClob(), and setLTCClob().

std::string ODLTCConfig::m_ltc_file
private

Definition at line 51 of file ODLTCConfig.h.

Referenced by getLTCConfigurationFile(), and setLTCConfigurationFile().

int ODLTCConfig::m_size
private

Definition at line 52 of file ODLTCConfig.h.

Referenced by getSize(), and setSize().