|
BOSS 8.0.0
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 |
| 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 |
| 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 |
| 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 41 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 45 of file XmlBaseCnv.cxx.
Referenced by internalCreateObj(), and XmlTest1Cnv::XmlTest1Cnv().
|
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 82 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 221 of file XmlBaseCnv.cxx.
|
inlineprotected |
Find first range element. Derived classes which need it must define their own implementation.
Definition at line 104 of file XmlBaseCnv.h.
|
protected |
Still another one to navigate XML file and find next dac collection.
Definition at line 225 of file XmlBaseCnv.cxx.
|
inlineprotected |
Still another one to navigate XML file and find next set of range data.
Definition at line 107 of file XmlBaseCnv.h.
|
inline |
Definition at line 52 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 193 of file XmlBaseCnv.cxx.
Referenced by internalCreateObj().
|
protectedvirtual |
In case there is additional work to do on the created object.
Definition at line 187 of file XmlBaseCnv.cxx.
Referenced by internalCreateObj().
|
virtual |
Definition at line 55 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 132 of file XmlBaseCnv.cxx.
Referenced by createObj().
|
protected |
Definition at line 231 of file XmlBaseCnv.cxx.
|
protected |
Read in what will become a CalibData::ValSig.
Definition at line 269 of file XmlBaseCnv.cxx.
|
protected |
Read in what will become a vector of CalibData::ValSig.
Definition at line 279 of file XmlBaseCnv.cxx.
|
protectedvirtual |
Definition at line 208 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 216 of file XmlBaseCnv.cxx.
|
static |
Definition at line 210 of file XmlBaseCnv.cxx.
|
protected |
Definition at line 136 of file XmlBaseCnv.h.
Referenced by initialize(), and XmlBaseCnv().
|
protected |
Definition at line 138 of file XmlBaseCnv.h.
Referenced by XmlTest1Cnv::i_createObj(), internalCreateObj(), and setBaseInfo().
|
protected |
Definition at line 140 of file XmlBaseCnv.h.
Referenced by XmlTest1Cnv::i_createObj(), setBaseInfo(), and XmlBaseCnv().
|
protected |
Definition at line 139 of file XmlBaseCnv.h.
Referenced by XmlTest1Cnv::i_createObj(), setBaseInfo(), and XmlBaseCnv().
|
protected |
Definition at line 135 of file XmlBaseCnv.h.
Referenced by createObj(), getCalibXmlSvc(), initialize(), and XmlBaseCnv().