|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef PERSISTENTDATAMODEL_TOKEN_H
6 #define PERSISTENTDATAMODEL_TOKEN_H
24 struct OID_t :
public std::pair<long long int, long long int> {
26 OID_t(
long long int i1,
long long int i2) : std::pair<long long
int, long long
int> (i1,i2) {}
46 if (
less(refToken))
return false;
47 return !
equal(refToken);
54 virtual bool less(
const Token& pTok)
const;
94 virtual const std::string
toString()
const;
96 virtual const std::string
key()
const;
OID_t(long long int i1, long long int i2)
const std::string & contID() const
Access container identifier.
const std::string & auxString() const
Access auxiliary string.
Guid m_dbID
Database identifier.
const Guid & dbID() const
Access database identifier.
bool operator>(const Token &refToken) const
Operator > to allow ordering.
unsigned int m_technology
Technology identifier.
virtual bool less(const Token &pTok) const
Fast token comparison: operator less.
const Guid & classID() const
Access database identifier.
This class provides a token that identifies in a unique way objects on the persistent storage.
Guid m_classID
Object global identifier.
std::string m_cntID
Container identifier.
bool operator<(const Token &refToken) const
Operator < to allow ordering.
int addRef()
Increase reference count.
Token & fromString(const std::string &from)
Build from the string representation of a token.
Token & setClassID(const Guid &cl_id)
Access database identifier.
Token & setDb(const std::string &db)
int technology() const
Access technology type.
Token & setType(int t)
Set token type.
Token & operator=(const Token ©)
No assignment allowed: put prototype to disable bit-wise assignment.
virtual bool equal(const Token &pTok) const
Fast token comparison: operator equals.
OID_t & oid()
Access object identifier.
Token & setDb(const Guid &db)
Set database name.
int release()
Release token: Decrease reference count and eventually delete.
OID_t m_oid
Persistent object identifier.
int type() const
Access token type.
Token & setTechnology(int t)
Set technology type.
bool operator!=(const Token &refToken) const
Equality operator.
virtual const std::string toString() const
Retrieve the string representation of the token.
Token & setOid(const OID_t &oid)
Set object identifier.
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
virtual ~Token()
Standard destructor: release all allocated resources.
std::string m_auxString
Auxiliary string.
Token()
Standard Constructor.
const OID_t & oid() const
Access object identifier.
Token & setAuxString(const std::string &auxString)
Set auxiliary string.
const Guid & fromString(const std::string &s)
Automatic conversion from string representation.
Token & setCont(const std::string &cnt)
Set container name.
This file contains the class definition for the Guid class (migrated from POOL).
static int numInstances()
expose Token instance counter for debugging
int m_refCount
Reference count.
const Token & setData(Token *pToken) const
Set all the data part of the token.
const Token & set(Token *pToken) const
Set token information.
bool operator==(const Token &refToken) const
Equality operator.
virtual const std::string key() const
Retrieve token key.