#include <Version.h>
Public Member Functions | |
bool | operator!= (const Version &rhs) const |
bool | operator< (const Version &rhs) const |
bool | operator<= (const Version &rhs) const |
Version & | operator= (const Version &rhs) |
bool | operator== (const Version &rhs) const |
bool | operator> (const Version &rhs) const |
bool | operator>= (const Version &rhs) const |
void | toOutputStream (std::ostream &os) const |
std::string | toString () const |
Version (const Version &rhs) | |
Version () | |
~Version () | |
Static Public Member Functions | |
static Version | fromString (const std::string &versionString) |
static Version & | poolSchemaVersion () |
static Version & | thisSchemaVersion () |
Private Attributes | |
std::string | m_label |
int | m_main |
int | m_patch |
int | m_release |
Version::Version | ( | ) |
Version::Version | ( | const Version & | rhs | ) |
ora::Version Version::fromString | ( | const std::string & | versionString | ) | [static] |
Definition at line 24 of file Version.cc.
References fmt, m_label, m_main, m_patch, m_release, AlCaHLTBitMon_ParallelJobs::p, ora::poolSchemaVersion(), poolSchemaVersionLabel, LaserTracksInput_cfi::source, AlCaHLTBitMon_QueryRunRegistry::string, and tmp.
Referenced by ora::Database::schemaVersion().
{ if ( source == poolSchemaVersionLabel ) return poolSchemaVersion(); Version ver; ver.m_label = source; std::string tmp = source; char* p = (char*)tmp.c_str(); ::sscanf(p, fmt, &ver.m_main, &ver.m_release, &ver.m_patch ); return ver; }
bool Version::operator!= | ( | const Version & | rhs | ) | const |
bool Version::operator< | ( | const Version & | rhs | ) | const |
bool Version::operator<= | ( | const Version & | rhs | ) | const |
ora::Version & Version::operator= | ( | const Version & | rhs | ) |
bool Version::operator== | ( | const Version & | rhs | ) | const |
bool Version::operator> | ( | const Version & | rhs | ) | const |
bool Version::operator>= | ( | const Version & | rhs | ) | const |
ora::Version & Version::poolSchemaVersion | ( | ) | [static] |
Definition at line 11 of file Version.cc.
References m_label, m_main, poolSchemaVersionLabel, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::DbSession::isOldSchema().
{ static Version s_ver; s_ver.m_label = std::string(poolSchemaVersionLabel); s_ver.m_main = -1; return s_ver; }
ora::Version & Version::thisSchemaVersion | ( | ) | [static] |
Definition at line 18 of file Version.cc.
References pat::helper::ParametrizationHelper::fromString(), AlCaHLTBitMon_QueryRunRegistry::string, and thisSchemaVersionLabel.
{ static Version s_ver; s_ver = fromString( std::string( thisSchemaVersionLabel )); return s_ver; }
void Version::toOutputStream | ( | std::ostream & | os | ) | const |
std::string Version::toString | ( | ) | const |
Definition at line 108 of file Version.cc.
{ return m_label; }
std::string ora::Version::m_label [private] |
Definition at line 34 of file Version.h.
Referenced by fromString(), operator=(), and poolSchemaVersion().
int ora::Version::m_main [private] |
Definition at line 35 of file Version.h.
Referenced by fromString(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), and poolSchemaVersion().
int ora::Version::m_patch [private] |
Definition at line 37 of file Version.h.
Referenced by fromString(), operator<(), operator<=(), operator=(), operator==(), operator>(), and operator>=().
int ora::Version::m_release [private] |
Definition at line 36 of file Version.h.
Referenced by fromString(), operator<(), operator<=(), operator=(), operator==(), operator>(), and operator>=().