#include <XmlTest1Cnv.h>
Definition at line 16 of file XmlTest1Cnv.h.
◆ XmlTest1Cnv()
XmlTest1Cnv::XmlTest1Cnv |
( |
ISvcLocator * | svcs | ) |
|
|
protected |
Definition at line 29 of file XmlTest1Cnv.cxx.
29 :
31}
const CLID CLID_Calib_CalibTest1
XmlBaseCnv(ISvcLocator *svc, const CLID &clid)
◆ ~XmlTest1Cnv()
virtual XmlTest1Cnv::~XmlTest1Cnv |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ classID()
const CLID & XmlTest1Cnv::classID |
( |
| ) |
|
|
static |
◆ i_createObj()
StatusCode XmlTest1Cnv::i_createObj |
( |
const DOMElement * | element, |
|
|
DataObject *& | refpObject ) |
|
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.
- Parameters
-
element | the DOM_Element (typically root element of document) to be used to builds the object |
refpObject | the object to be built |
- Returns
- status depending on the completion of the call
Reimplemented from XmlBaseCnv.
Definition at line 52 of file XmlTest1Cnv.cxx.
54{
56
57
58 DOMElement* child = Dom::findFirstChildByName(element, "data");
59 if (child == 0) return StatusCode::FAILURE;
60 child = Dom::findFirstChildByName(child, "leaf");
61 if (child == 0) return StatusCode::FAILURE;
62
63 std::string name = Dom::getAttribute(child, "name");
64
65
66
67
68 int value;
69 try {
70 value = Dom::getIntAttribute(child, "value");
71 }
73 std::cerr << "From CalibSvc::XmlTest1Cnv::i_crateObj " << std::endl;
74 std::cerr << ex.
getMsg() << std::endl;
75 }
76
77 refpObject = new
79
80 return StatusCode::SUCCESS;
81}
Base exception class for Dom.
virtual std::string getMsg()
◆ objType()
const CLID & XmlTest1Cnv::objType |
( |
| ) |
const |
◆ CnvFactory< XmlTest1Cnv >
Friend needed for instantiation.
Definition at line 1 of file XmlTest1Cnv.h.
The documentation for this class was generated from the following files: