BOSS 7.0.3
BESIII Offline Software System
|
#include <XmlBaseCnv.h>
Public Member Functions | |
virtual | ~XmlBaseCnv () |
virtual StatusCode | initialize () |
virtual StatusCode | finalize () |
virtual StatusCode | createObj (IOpaqueAddress *addr, DataObject *&refpObject) |
ICalibXmlSvc * | getCalibXmlSvc () |
XmlBaseCnv (ISvcLocator *svc, const CLID &clid) | |
Public Member Functions inherited from Converter< Ty1, Ty2 > | |
destination * | operator (const source &) const |
destination * | operator (const source &) const |
Static Public Member Functions | |
static const unsigned char | storageType () |
Protected Member Functions | |
virtual StatusCode | internalCreateObj (const DOMElement *element, DataObject *&refpObject, IOpaqueAddress *address) |
virtual StatusCode | i_createObj (const DOMElement *element, DataObject *&refpObject) |
virtual StatusCode | i_processObj (DataObject *pObject, IOpaqueAddress *address) |
In case there is additional work to do on the created object. | |
virtual StatusCode | readHeader (const DOMElement *) |
DOMElement * | findFirstRange (const DOMElement *docElt) |
DOMElement * | findNextRange (const DOMElement *rangeElt) |
Still another one to navigate XML file and find next set of range data. | |
DOMElement * | findFirstDacCol (const DOMElement *docElt) |
Another one to find first dac collection element. | |
DOMElement * | findNextDacCol (const DOMElement *rangeElt) |
Still another one to navigate XML file and find next dac collection. | |
CalibData::DacCol * | processDacCol (DOMElement *dacColElt, unsigned *range) |
CalibData::ValSig * | processValSig (DOMElement *elt, std::string valName, std::string sigName) |
Read in what will become a CalibData::ValSig. | |
std::vector< CalibData::ValSig > * | processValSigs (DOMElement *elt, std::string valName, std::string sigName) |
Read in what will become a vector of CalibData::ValSig. | |
void | setBaseInfo (CalibData::CalibBase *pObj) |
Another utility for derived classes to use. | |
Protected Member Functions inherited from Converter< Ty1, Ty2 > | |
virtual destination * | convert (const source &) const =0 |
virtual destination * | convert (const source &) const =0 |
Protected Attributes | |
ICalibXmlSvc * | m_xmlSvc |
ICalibMetaCnvSvc * | m_metaSvc |
int | m_serNo |
ITime * | m_vstart |
ITime * | m_vend |
Additional Inherited Members | |
Public Types inherited from Converter< Ty1, Ty2 > | |
typedef Ty1 | source |
typedef Ty2 | destination |
typedef Ty1 | source |
typedef Ty2 | destination |
Base class for calibration converters from XML files to TCDS. All such converters need to do certain things, which are handled here.
Definition at line 36 of file XmlBaseCnv.h.
|
virtual |
Definition at line 40 of file XmlBaseCnv.cxx.
XmlBaseCnv::XmlBaseCnv | ( | ISvcLocator * | svc, |
const CLID & | clid | ||
) |
Constructor for this converter
svc | a ISvcLocator interface to find services |
clid | the type of object the converter is able to convert |
Definition at line 44 of file XmlBaseCnv.cxx.
|
virtual |
Create the transient representation of an object, given an opaque address. This and the following update method comprise the core functionality of calibration converters.
Definition at line 84 of file XmlBaseCnv.cxx.
|
virtual |
Definition at line 78 of file XmlBaseCnv.cxx.
|
protected |
Another one to find first dac collection element.
Definition at line 238 of file XmlBaseCnv.cxx.
|
inlineprotected |
Find first range element. Derived classes which need it must define their own implementation.
Definition at line 112 of file XmlBaseCnv.h.
|
protected |
Still another one to navigate XML file and find next dac collection.
Definition at line 242 of file XmlBaseCnv.cxx.
|
inlineprotected |
Still another one to navigate XML file and find next set of range data.
Definition at line 117 of file XmlBaseCnv.h.
|
inline |
Definition at line 54 of file XmlBaseCnv.h.
|
protectedvirtual |
This creates the transient representation of an object from the DOM_Element representing it. This actually does the "new" operation and deals with the attributes of the node. This base class implementation does nothing; it should not normally be called because it doesn't correspond to any TCDS class. Instead, i_createObj of some derived class will be called.
element | the DOM_Element (typically root element of document) to be used to builds the object |
refpObject | the object to be built |
Reimplemented in XmlTest1Cnv.
Definition at line 205 of file XmlBaseCnv.cxx.
Referenced by internalCreateObj().
|
protectedvirtual |
In case there is additional work to do on the created object.
Definition at line 198 of file XmlBaseCnv.cxx.
Referenced by internalCreateObj().
|
virtual |
Definition at line 50 of file XmlBaseCnv.cxx.
|
protectedvirtual |
This creates the transient representation of an object from the DOMElement representing it, then fills it and process it. This implementation actually only calls the i_* methods of the "right" converter to do the job; so the very first thing it does is get a pointer to the appropriate derived converter. Converters typically don't need to override this method but only to override/implement some of the i_* methods.
element | the DOMElement (typically the root element of the document) to be used to build the object |
refpObject | the object to be built |
address | the opaque address for this object |
In a backhanded way, invoke the right specific converter for the type of the object to be created
elt | Document elt from XML document (input) |
refpObject |
Definition at line 141 of file XmlBaseCnv.cxx.
Referenced by createObj().
|
protected |
Definition at line 248 of file XmlBaseCnv.cxx.
|
protected |
Read in what will become a CalibData::ValSig.
Definition at line 288 of file XmlBaseCnv.cxx.
|
protected |
Read in what will become a vector of CalibData::ValSig.
Definition at line 299 of file XmlBaseCnv.cxx.
|
protectedvirtual |
Definition at line 220 of file XmlBaseCnv.cxx.
|
protected |
Another utility for derived classes to use.
Another convenience for derived classes: sets information belonging to the calibration base class, namely validity interval and serial number.
Definition at line 232 of file XmlBaseCnv.cxx.
|
static |
Definition at line 224 of file XmlBaseCnv.cxx.
|
protected |
Definition at line 148 of file XmlBaseCnv.h.
Referenced by initialize().
|
protected |
Definition at line 150 of file XmlBaseCnv.h.
Referenced by XmlTest1Cnv::i_createObj(), internalCreateObj(), and setBaseInfo().
|
protected |
Definition at line 152 of file XmlBaseCnv.h.
Referenced by XmlTest1Cnv::i_createObj(), and setBaseInfo().
|
protected |
Definition at line 151 of file XmlBaseCnv.h.
Referenced by XmlTest1Cnv::i_createObj(), and setBaseInfo().
|
protected |
Definition at line 147 of file XmlBaseCnv.h.
Referenced by createObj(), getCalibXmlSvc(), and initialize().