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

#include <LMFSeqDat.h>

Inheritance diagram for LMFSeqDat:
LMFUnique IUniqueDBObject IDBObject

Public Member Functions

std::map< int, LMFSeqDatfetchByRunIOV (RunIOV &iov)
 
std::map< int, LMFSeqDatfetchByRunIOV (RunIOV &iov, const LMFColor &col)
 
LMFSeqDat fetchByRunIOV (RunIOV &iov, int seq_num)
 
std::map< int, LMFSeqDatfetchByRunNumber (int runno)
 
LMFSeqDat fetchByRunNumber (int runno, int seq_num)
 
LMFSeqDat fetchByRunNumber (int runno, const Tm &taken_at)
 
LMFSeqDat fetchByRunNumber (int runno, std::string taken_at)
 
LMFSeqDat fetchLast ()
 
RunIOV fetchLastRun ()
 
RunIOV getRunIOV () const
 
int getSequenceNumber () const
 
Tm getSequenceStart () const
 
Tm getSequenceStop () const
 
int getVmax () const
 
int getVmin () const
 
bool isValid () const
 
 LMFSeqDat ()
 
 LMFSeqDat (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
 LMFSeqDat (EcalDBConnection *c)
 
bool operator!= (const LMFSeqDat &m) const
 
bool operator== (const LMFSeqDat &m) const
 
LMFSeqDatsetRunIOV (const RunIOV &iov)
 
LMFSeqDatsetSequenceNumber (int n)
 
LMFSeqDatsetSequenceStart (const Tm &start)
 
LMFSeqDatsetSequenceStop (const Tm &end)
 
LMFSeqDatsetVersions (int vmin, int vmax)
 
 ~LMFSeqDat ()
 
- Public Member Functions inherited from LMFUnique
void attach (std::string name, LMFUnique *u)
 
void debug ()
 
virtual void dump () const
 
virtual void dump (int n) const
 
virtual bool exists ()
 
virtual boost::ptr_list
< LMFUnique
fetchAll () const throw (std::runtime_error)
 
int fetchID () throw (std::runtime_error)
 
std::string getClassName ()
 
std::string getClassName () const
 
int getID () const
 
int getInt (std::string fieldname) const
 
std::string getString (std::string fieldname) const
 
virtual bool isValid ()
 
 LMFUnique ()
 
 LMFUnique (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
 LMFUnique (EcalDBConnection *c)
 
void nodebug ()
 
virtual bool operator< (const LMFUnique &r)
 
virtual bool operator<= (const LMFUnique &r)
 
std::string sequencePostfix (const Tm &t)
 
void setByID (int id) throw (std::runtime_error)
 
LMFUniquesetInt (std::string key, int value)
 
LMFUniquesetString (std::string key, std::string value)
 
void startProfiling ()
 
void stopProfiling ()
 
virtual ~LMFUnique ()
 
- 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

std::map< int, LMFSeqDatfetchByRunIOV (const std::vector< std::string > &par, std::string sql, std::string method) throw (std::runtime_error)
 
std::map< int, LMFSeqDatfetchByRunIOV (int par, std::string sql, std::string method) throw (std::runtime_error)
 
std::map< int, LMFSeqDatfetchByRunIOV (std::string sql, std::string method) throw (std::runtime_error)
 
std::string fetchIdSql (Statement *stmt)
 
void fetchParentIDs () throw (std::runtime_error)
 
void getParameters (ResultSet *rset)
 
std::string setByIDSql (Statement *stmt, int id)
 
void setVmax (int v)
 
void setVmin (int v)
 
std::string writeDBSql (Statement *stmt)
 

Private Attributes

RunIOV m_runIOV
 

Friends

class EcalCondDBInterface
 

Additional Inherited Members

- Public Types inherited from LMFUnique
typedef oracle::occi::ResultSet ResultSet
 
typedef oracle::occi::Statement Statement
 
- Static Public Attributes inherited from IDBObject
static int const ECALDB_NROWS =1024
 
- Protected Member Functions inherited from LMFUnique
virtual void setClassName (std::string s)
 
virtual int writeDB () throw (std::runtime_error)
 
virtual int writeForeignKeys () throw (std::runtime_error)
 
- Protected Member Functions inherited from IDBObject
void checkConnection () const throw (std::runtime_error)
 
- Protected Attributes inherited from LMFUnique
bool _profiling
 
std::string m_className
 
char m_debug
 
std::map< std::string,
LMFUnique * > 
m_foreignKeys
 
std::map< std::string, int > m_intFields
 
std::map< std::string,
std::string > 
m_stringFields
 
- Protected Attributes inherited from IUniqueDBObject
int m_ID
 
- Protected Attributes inherited from IDBObject
oracle::occi::Connection * m_conn
 
oracle::occi::Environment * m_env
 

Detailed Description

Definition at line 14 of file LMFSeqDat.h.

Constructor & Destructor Documentation

LMFSeqDat::LMFSeqDat ( )

Definition at line 10 of file LMFSeqDat.cc.

LMFSeqDat::LMFSeqDat ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
)

Definition at line 37 of file LMFSeqDat.cc.

LMFSeqDat::LMFSeqDat ( EcalDBConnection c)

Definition at line 24 of file LMFSeqDat.cc.

LMFSeqDat::~LMFSeqDat ( )

Definition at line 51 of file LMFSeqDat.cc.

Member Function Documentation

std::map< int, LMFSeqDat > LMFSeqDat::fetchByRunIOV ( RunIOV iov)

Definition at line 268 of file LMFSeqDat.cc.

Referenced by fetchByRunIOV().

std::map< int, LMFSeqDat > LMFSeqDat::fetchByRunIOV ( RunIOV iov,
const LMFColor col 
)

Definition at line 276 of file LMFSeqDat.cc.

LMFSeqDat LMFSeqDat::fetchByRunIOV ( RunIOV iov,
int  seq_num 
)
inline

Definition at line 66 of file LMFSeqDat.h.

References fetchByRunIOV().

66  {
67  return fetchByRunIOV(iov)[seq_num];
68  }
std::map< int, LMFSeqDat > fetchByRunIOV(RunIOV &iov)
Definition: LMFSeqDat.cc:268
std::map< int, LMFSeqDat > LMFSeqDat::fetchByRunIOV ( const std::vector< std::string > &  par,
std::string  sql,
std::string  method 
)
throw (std::runtime_error
)
private

Definition at line 215 of file LMFSeqDat.cc.

std::map< int, LMFSeqDat > LMFSeqDat::fetchByRunIOV ( int  par,
std::string  sql,
std::string  method 
)
throw (std::runtime_error
)
private

Definition at line 203 of file LMFSeqDat.cc.

std::map< int, LMFSeqDat > LMFSeqDat::fetchByRunIOV ( std::string  sql,
std::string  method 
)
throw (std::runtime_error
)
private

Definition at line 195 of file LMFSeqDat.cc.

std::map< int, LMFSeqDat > LMFSeqDat::fetchByRunNumber ( int  runno)

Definition at line 295 of file LMFSeqDat.cc.

Referenced by fetchByRunNumber().

LMFSeqDat LMFSeqDat::fetchByRunNumber ( int  runno,
int  seq_num 
)
inline

Definition at line 70 of file LMFSeqDat.h.

References fetchByRunNumber().

70  {
71  return fetchByRunNumber(runno)[seq_num];
72  }
std::map< int, LMFSeqDat > fetchByRunNumber(int runno)
Definition: LMFSeqDat.cc:295
LMFSeqDat LMFSeqDat::fetchByRunNumber ( int  runno,
const Tm taken_at 
)

Definition at line 303 of file LMFSeqDat.cc.

LMFSeqDat LMFSeqDat::fetchByRunNumber ( int  runno,
std::string  taken_at 
)

Definition at line 307 of file LMFSeqDat.cc.

std::string LMFSeqDat::fetchIdSql ( Statement stmt)
privatevirtual

Reimplemented from LMFUnique.

Definition at line 75 of file LMFSeqDat.cc.

LMFSeqDat LMFSeqDat::fetchLast ( )

Definition at line 251 of file LMFSeqDat.cc.

RunIOV LMFSeqDat::fetchLastRun ( )

Definition at line 264 of file LMFSeqDat.cc.

void LMFSeqDat::fetchParentIDs ( )
throw (std::runtime_error
)
privatevirtual

Reimplemented from LMFUnique.

Definition at line 181 of file LMFSeqDat.cc.

void LMFSeqDat::getParameters ( ResultSet rset)
privatevirtual

Reimplemented from LMFUnique.

Definition at line 118 of file LMFSeqDat.cc.

RunIOV LMFSeqDat::getRunIOV ( ) const

Definition at line 61 of file LMFSeqDat.cc.

Referenced by operator==().

int LMFSeqDat::getSequenceNumber ( ) const
inline

Definition at line 41 of file LMFSeqDat.h.

References LMFUnique::getInt().

Referenced by operator==().

41 { return getInt("seq_num"); }
int getInt(std::string fieldname) const
Definition: LMFUnique.cc:203
Tm LMFSeqDat::getSequenceStart ( ) const
inline

Definition at line 42 of file LMFSeqDat.h.

References LMFUnique::getString(), Tm::setToString(), and lumiQTWidget::t.

Referenced by operator==().

42  {
43  Tm t;
44  t.setToString(getString("seq_start"));
45  return t;
46  }
void setToString(const std::string s)
Definition: Tm.cc:193
std::string getString(std::string fieldname) const
Definition: LMFUnique.cc:194
Definition: Tm.h:13
Tm LMFSeqDat::getSequenceStop ( ) const

Definition at line 55 of file LMFSeqDat.cc.

Referenced by operator==().

int LMFSeqDat::getVmax ( ) const
inline

Definition at line 49 of file LMFSeqDat.h.

References LMFUnique::getInt().

Referenced by operator==().

49 { return getInt("vmax"); }
int getInt(std::string fieldname) const
Definition: LMFUnique.cc:203
int LMFSeqDat::getVmin ( ) const
inline

Definition at line 48 of file LMFSeqDat.h.

References LMFUnique::getInt().

Referenced by operator==().

48 { return getInt("vmin"); }
int getInt(std::string fieldname) const
Definition: LMFUnique.cc:203
bool LMFSeqDat::isValid ( void  ) const
virtual

Reimplemented from LMFUnique.

Definition at line 134 of file LMFSeqDat.cc.

Referenced by core.AutoHandle.AutoHandle::ReallyLoad().

bool LMFSeqDat::operator!= ( const LMFSeqDat m) const
inline

Definition at line 63 of file LMFSeqDat.h.

References visualization-live-secondInstance_cfg::m.

bool LMFSeqDat::operator== ( const LMFSeqDat m) const
inline

Definition at line 53 of file LMFSeqDat.h.

References getRunIOV(), getSequenceNumber(), getSequenceStart(), getSequenceStop(), getVmax(), and getVmin().

54  {
55  return ( getSequenceNumber() == m.getSequenceNumber() &&
56  getRunIOV() == m.getRunIOV() &&
59  getVmin() == m.getVmin() &&
60  getVmax() == m.getVmax());
61  }
Tm getSequenceStop() const
Definition: LMFSeqDat.cc:55
int getVmax() const
Definition: LMFSeqDat.h:49
int getSequenceNumber() const
Definition: LMFSeqDat.h:41
Tm getSequenceStart() const
Definition: LMFSeqDat.h:42
RunIOV getRunIOV() const
Definition: LMFSeqDat.cc:61
int getVmin() const
Definition: LMFSeqDat.h:48
std::string LMFSeqDat::setByIDSql ( Statement stmt,
int  id 
)
privatevirtual

Reimplemented from LMFUnique.

Definition at line 110 of file LMFSeqDat.cc.

LMFSeqDat & LMFSeqDat::setRunIOV ( const RunIOV iov)

Definition at line 66 of file LMFSeqDat.cc.

LMFSeqDat& LMFSeqDat::setSequenceNumber ( int  n)
inline

Definition at line 26 of file LMFSeqDat.h.

References LMFUnique::setInt().

26 { setInt("seq_num", n); return *this; }
LMFUnique & setInt(std::string key, int value)
Definition: LMFUnique.cc:33
LMFSeqDat& LMFSeqDat::setSequenceStart ( const Tm start)
inline

Definition at line 27 of file LMFSeqDat.h.

References LMFUnique::setString(), and Tm::str().

27  {
28  setString("seq_start", start.str());
29  return *this;
30  }
LMFUnique & setString(std::string key, std::string value)
Definition: LMFUnique.cc:15
std::string str() const
Definition: Tm.cc:89
LMFSeqDat& LMFSeqDat::setSequenceStop ( const Tm end)
inline

Definition at line 31 of file LMFSeqDat.h.

References LMFUnique::setString(), and Tm::str().

31  {
32  setString("seq_stop", end.str());
33  return *this;
34  }
LMFUnique & setString(std::string key, std::string value)
Definition: LMFUnique.cc:15
std::string str() const
Definition: Tm.cc:89
LMFSeqDat& LMFSeqDat::setVersions ( int  vmin,
int  vmax 
)
inline

Definition at line 35 of file LMFSeqDat.h.

References setVmax(), and setVmin().

35  {
36  setVmin(vmin) ; setVmax(vmax);
37  return *this;
38  }
void setVmax(int v)
Definition: LMFSeqDat.h:84
void setVmin(int v)
Definition: LMFSeqDat.h:81
void LMFSeqDat::setVmax ( int  v)
inlineprivate

Definition at line 84 of file LMFSeqDat.h.

References LMFUnique::setInt().

Referenced by setVersions().

84  {
85  setInt("vmax", v);
86  }
LMFUnique & setInt(std::string key, int value)
Definition: LMFUnique.cc:33
void LMFSeqDat::setVmin ( int  v)
inlineprivate

Definition at line 81 of file LMFSeqDat.h.

References LMFUnique::setInt().

Referenced by setVersions().

81  {
82  setInt("vmin", v);
83  }
LMFUnique & setInt(std::string key, int value)
Definition: LMFUnique.cc:33
std::string LMFSeqDat::writeDBSql ( Statement stmt)
privatevirtual

Reimplemented from LMFUnique.

Definition at line 149 of file LMFSeqDat.cc.

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 16 of file LMFSeqDat.h.

Member Data Documentation

RunIOV LMFSeqDat::m_runIOV
private

Definition at line 79 of file LMFSeqDat.h.