DRDE/ACTK1_0/se/Period.cpp

20 lines
432 B
C++
Raw Normal View History

#include "se/Period.hpp"
#include "xml/XMLWriter.hpp"
#include "xml/XMLHelper.hpp"
using namespace xercesc;
DOMElement* Period::appendPeriod(XMLWriter *xmlWriter,
DOMElement *parent) const
{
DOMElement *retval =
xmlWriter->appendChild(
parent,
"period",
"unit",
unit->toString());
XMLHelper::setTextContent (retval, period);
return retval;
}