本文整理汇总了C++中ConstIterator::HasNext方法的典型用法代码示例。如果您正苦于以下问题:C++ ConstIterator::HasNext方法的具体用法?C++ ConstIterator::HasNext怎么用?C++ ConstIterator::HasNext使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConstIterator
的用法示例。
在下文中一共展示了ConstIterator::HasNext方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AppendInformation
/**
* @brief
* Appends the parsed information about a plugin to the given XML document
*/
void PLPluginInfo::AppendInformation(XmlDocument &cDocument) const
{
// Add declaration
XmlDeclaration *pDeclaration = new XmlDeclaration("1.0", "", "");
cDocument.LinkEndChild(*pDeclaration);
XmlElement *pRootElement = new XmlElement("Plugin");
pRootElement->SetAttribute("Version", m_sPluginFileVersion);
pRootElement->SetAttribute("PixelLightVersion", m_sPLVersion);
AddTextXmlElement(*pRootElement, "Active", m_bActive ? "1" : "0");
AddTextXmlElement(*pRootElement, "Delayed", m_bDelayed ? "1" : "0");
AddTextXmlElement(*pRootElement, "Name", m_sPluginName);
if (m_sModuleVersion.GetLength())
AddTextXmlElement(*pRootElement, "Version", m_sModuleVersion);
if (m_sVendor.GetLength())
AddTextXmlElement(*pRootElement, "Vendor", m_sVendor);
if (m_sLicense.GetLength())
AddTextXmlElement(*pRootElement, "License", m_sLicense);
if (m_sDescription.GetLength())
AddTextXmlElement(*pRootElement, "Description", m_sDescription);
cDocument.LinkEndChild(*pRootElement);
// Append the parsed information to the given XML element
m_cPluginPlatformInfo.Save(*pRootElement);
// Are there any classes?
if (!m_lstClasses.IsEmpty()) {
// Create the classes XML element instance
XmlElement *pClassesElement = new XmlElement("Classes");
// Iterate through all classes
ConstIterator<PLPluginClassInfo*> cIterator = m_lstClasses.GetConstIterator();
while (cIterator.HasNext())
cIterator.Next()->Save(*pClassesElement);
// Link the classes XML element instance to the XML root element
pRootElement->LinkEndChild(*pClassesElement);
}
}