本文整理汇总了C++中xml::Element::PushBackElement方法的典型用法代码示例。如果您正苦于以下问题:C++ Element::PushBackElement方法的具体用法?C++ Element::PushBackElement怎么用?C++ Element::PushBackElement使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xml::Element
的用法示例。
在下文中一共展示了Element::PushBackElement方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: serialize
/*!
* Dumps the object to an XML element. Unsafe.
*/
xml::Element FeatureExtractorProjection::serialize(xml::Element &parent) const
{
xml::Element el(parent.PushBackElement(GetClassName()));
el.SetAttribute("directions", int(dirs));
el.SetAttribute("size", size);
el.SetAttribute("maxval", maxval);
return el;
}
示例2: Serialize
/*!
* Unsafe save
* \throws ExceptionProtocol the content of the vector is not serializable
*
* \param[in] parent the parent element to which we will add the new element
* \return The newly created element, nullptr if failed.
*/
xml::Element Vector::Serialize(xml::Element &parent) const
{
xml::Element el(parent.PushBackElement(getClassName()));
for (size_t tmp = 0; tmp < data.size(); tmp++)
{
xml::Element item = crn::Serialize(*data[tmp], el);
item.SetAttribute("vector_index", int(tmp));
}
return el;
}
示例3: el
/*!
* Dumps the object to an XML element. Unsafe.
*
* \param[in] parent the parent element to which we will add the new element
* \return The newly created element, nullptr if failed.
*/
xml::Element StringUTF8::Serialize(xml::Element &parent) const
{
xml::Element el(parent.PushBackElement("StringUTF8"));
el.PushBackText(*this);
return el;
}
示例4: Serialize
/*!
* Dumps the object to an XML element. Unsafe.
*
* \param[in] parent the parent element to which we will add the new element
* \return The newly created element, nullptr if failed.
*/
xml::Element String::Serialize(xml::Element &parent) const
{
xml::Element el(parent.PushBackElement("String"));
el.PushBackText(CStr());
return el;
}