BOSS 7.1.0
BESIII Offline Software System
|
#include <CalibMySQLCnvSvc.h>
Public Member Functions | |
CalibMySQLCnvSvc (const std::string &name, ISvcLocator *svc) | |
virtual | ~CalibMySQLCnvSvc () |
virtual StatusCode | initialize () |
virtual StatusCode | finalize () |
virtual StatusCode | createObj (IOpaqueAddress *pAddress, DataObject *&refpObject) |
Create a transient representation from another rep of this object. | |
virtual StatusCode | fillObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Resolve the references of the created transient object. | |
virtual StatusCode | updateObj (IOpaqueAddress *pAddress, DataObject *pObject) |
Update a transient representation from another rep of this object. | |
virtual StatusCode | updateObjRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Update the references of an updated transient object. | |
virtual StatusCode | createRep (DataObject *pObject, IOpaqueAddress *&refpAddress) |
Convert a transient object to a requested representation. | |
virtual StatusCode | fillRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Resolve the references of a converted object. | |
virtual StatusCode | updateRep (IOpaqueAddress *pAddress, DataObject *pObject) |
Update a converted representation of a transient object. | |
virtual StatusCode | updateRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Update the references of an already converted object. | |
virtual StatusCode | createAddress (long svc_type, const CLID &clid, const std::string *par, const unsigned long *ip, IOpaqueAddress *&refpAddress) |
Create an address using explicit arguments to identify a single object. | |
virtual StatusCode | createCalib (DataObject *&refpObject, const std::string &fullpath, const CLID &classID, IRegistry *entry=0) |
virtual StatusCode | updateCalib (DataObject *pObject, const std::string &fullpath, const CLID &classID, IRegistry *entry=0) |
virtual StatusCode | decodeDescription (const std::string &description, unsigned char &type) |
Decode the string storage type to enumerated storage type. | |
virtual calibUtil::Metadata * | getMeta () |
Handle to the MySQL metadata database. | |
StatusCode | getSftParVer (std::string &SftVer, std::string &CalParVer, int &runfrm, int &runto, int RunNo, std::string BossRelease, std::string DataType) |
Public Member Functions inherited from ICalibMetaCnvSvc | |
DeclareInterfaceID (ICalibMetaCnvSvc, 1, 0) | |
virtual StatusCode | createCalib (DataObject *&refpObject, const std::string &fullpath, const CLID &classID, IRegistry *entry=0)=0 |
virtual StatusCode | updateCalib (DataObject *pObject, const std::string &fullpath, const CLID &classID, IRegistry *entry=0)=0 |
virtual calibUtil::Metadata * | getMeta ()=0 |
Friends | |
class | SvcFactory< CalibMySQLCnvSvc > |
Only factories can access protected constructors. | |
A conversion service for GLAST calibration metadata database persistency. Allows to create and update condition data objects (i.e. DataObjects implementing IValidity).
Adapted from LHCb class DetCond/ConditionsDBCnvSvc by Andrea Valassi
Definition at line 32 of file CalibMySQLCnvSvc.h.
CalibMySQLCnvSvc::CalibMySQLCnvSvc | ( | const std::string & | name, |
ISvcLocator * | svc | ||
) |
Definition at line 66 of file CalibMySQLCnvSvc.cxx.
|
virtual |
Definition at line 138 of file CalibMySQLCnvSvc.cxx.
|
virtual |
Create an address using explicit arguments to identify a single object.
Overload ConversionSvc implementation of createAddress.
Create an address using explicit arguments to identify a single object. Par[0] is full path in calibration TDS
Definition at line 381 of file CalibMySQLCnvSvc.cxx.
|
virtual |
Create a calib DataObject by calib type name, flavor and time. This method does not register DataObject in the transient data store. The string storage type is discovered at runtime in the Metadata dbs.
Create a calib DataObject by calib type, flavor, time and instrument. This method does not register DataObject in the transient data store, [but may register TDS addresses for its children if needed (e.g. Catalog).
create a temporary address containing storage type and classID;
Implements ICalibMetaCnvSvc.
Definition at line 467 of file CalibMySQLCnvSvc.cxx.
Referenced by createObj().
|
virtual |
Create a transient representation from another rep of this object.
Create a transient representation from another representation of an object. Overloaded from ConversionSvc because CalibMySQLCnvSvc has no converters. (The typical conversion service delegates this to an appropriate converter)
Definition at line 264 of file CalibMySQLCnvSvc.cxx.
|
virtual |
Convert a transient object to a requested representation.
Convert a transient object to a requested representation. Not implemented. Overloaded from ConversionSvc because CalibMySQLCnvSvc has no converters.
Definition at line 338 of file CalibMySQLCnvSvc.cxx.
|
virtual |
Decode the string storage type to enumerated storage type.
Definition at line 1585 of file CalibMySQLCnvSvc.cxx.
Referenced by createCalib(), and updateCalib().
|
virtual |
Resolve the references of the created transient object.
Resolve the references of the created transient object. (Actually, don't, because this operation isn't supported, nor is it needed for the conversion service.) Overloaded from ConversionSvc because CalibMySQLCnvSvc has no converters.
Definition at line 292 of file CalibMySQLCnvSvc.cxx.
|
virtual |
Resolve the references of a converted object.
Resolve the references of a converted object. [actually, don't. Calib data doesn't have any inter-object references.] Overloaded from ConversionSvc because CalibMySQLCnvSvc has no converters.
Definition at line 350 of file CalibMySQLCnvSvc.cxx.
|
virtual |
Definition at line 236 of file CalibMySQLCnvSvc.cxx.
|
virtual |
Handle to the MySQL metadata database.
Implements ICalibMetaCnvSvc.
Definition at line 1609 of file CalibMySQLCnvSvc.cxx.
StatusCode CalibMySQLCnvSvc::getSftParVer | ( | std::string & | SftVer, |
std::string & | CalParVer, | ||
int & | runfrm, | ||
int & | runto, | ||
int | RunNo, | ||
std::string | BossRelease, | ||
std::string | DataType | ||
) |
Definition at line 407 of file CalibMySQLCnvSvc.cxx.
Referenced by createCalib(), and updateCalib().
|
virtual |
Definition at line 140 of file CalibMySQLCnvSvc.cxx.
|
virtual |
Update a condition DataObject by This method does not register DataObject in the transient data store. The string storage type is discovered at runtime in the metadata dbs.
Update a calib DataObject by calib type, flavor,and instrument if necessary. This method does not register DataObject in the transient data store, The string storage type is discovered at runtime in the MySQL dbs. Implementation:
Implements ICalibMetaCnvSvc.
Definition at line 1100 of file CalibMySQLCnvSvc.cxx.
Referenced by updateObj().
|
virtual |
Update a transient representation from another rep of this object.
Update a transient representation from another representation of an object. Overloaded from ConversionSvc because CalibMySQLCnvSvc has no converters.
Definition at line 301 of file CalibMySQLCnvSvc.cxx.
|
virtual |
Update the references of an updated transient object.
Update the references of an updated transient object. [actually, don't. Calib data doesn't have any inter-object references.] Overloaded from ConversionSvc because CalibMySQLCnvSvc has no converters.
Definition at line 329 of file CalibMySQLCnvSvc.cxx.
|
virtual |
Update a converted representation of a transient object.
Update a converted representation of a transient object. Overloaded from ConversionSvc because CalibMySQLCnvSvc has no converters.
Definition at line 360 of file CalibMySQLCnvSvc.cxx.
|
virtual |
Update the references of an already converted object.
Update the references of an already converted object. Overloaded from ConversionSvc because CalibMySQLCnvSvc has no converters. Don't do anything because calib objects have no inter-object references.
Definition at line 371 of file CalibMySQLCnvSvc.cxx.
|
friend |
Only factories can access protected constructors.
Definition at line 1 of file CalibMySQLCnvSvc.h.