本文整理汇总了C++中XML_ElementParser::AddChild方法的典型用法代码示例。如果您正苦于以下问题:C++ XML_ElementParser::AddChild方法的具体用法?C++ XML_ElementParser::AddChild怎么用?C++ XML_ElementParser::AddChild使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XML_ElementParser
的用法示例。
在下文中一共展示了XML_ElementParser::AddChild方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
XML_ElementParser*
StarGameProtocol::GetParser() {
static bool sAddedChildren = false;
if(!sAddedChildren)
{
sStarParser.AddChild(Hub_GetParser());
sStarParser.AddChild(Spoke_GetParser());
sAddedChildren = true;
}
return &sStarParser;
}
示例2:
// XML-parser support
XML_ElementParser *Items_GetParser()
{
ItemParser.AddChild(Shape_GetParser());
ItemsParser.AddChild(&ItemParser);
return &ItemsParser;
}
示例3: SetupParseTree
void SetupParseTree()
{
// Add the only recognized XML-document-root object here
RootParser.AddChild(&MarathonParser);
// Add all its subobjects
MarathonParser.AddChild(TS_GetParser()); // Text strings
MarathonParser.AddChild(Interface_GetParser());
MarathonParser.AddChild(PlayerName_GetParser());
MarathonParser.AddChild(Infravision_GetParser());
MarathonParser.AddChild(MotionSensor_GetParser());
MarathonParser.AddChild(OverheadMap_GetParser());
MarathonParser.AddChild(DynamicLimits_GetParser());
MarathonParser.AddChild(AnimatedTextures_GetParser());
MarathonParser.AddChild(Player_GetParser());
MarathonParser.AddChild(Items_GetParser());
MarathonParser.AddChild(ControlPanels_GetParser());
MarathonParser.AddChild(Liquids_GetParser());
MarathonParser.AddChild(Sounds_GetParser());
MarathonParser.AddChild(Platforms_GetParser());
MarathonParser.AddChild(Scenery_GetParser());
MarathonParser.AddChild(Faders_GetParser());
MarathonParser.AddChild(View_GetParser());
MarathonParser.AddChild(Landscapes_GetParser());
MarathonParser.AddChild(Weapons_GetParser());
MarathonParser.AddChild(OpenGL_GetParser());
MarathonParser.AddChild(Cheats_GetParser());
MarathonParser.AddChild(TextureLoading_GetParser());
MarathonParser.AddChild(Keyboard_GetParser());
MarathonParser.AddChild(DamageKicks_GetParser());
MarathonParser.AddChild(Logging_GetParser());
MarathonParser.AddChild(Scenario_GetParser());
#ifdef SDL
MarathonParser.AddChild(Theme_GetParser());
#endif
#ifndef HAVE_DINGOO // sw alpha dingoo exclude -- Nigel
MarathonParser.AddChild(SW_Texture_Extras_GetParser());
#endif
MarathonParser.AddChild(Console_GetParser());
MarathonParser.AddChild(ExternalDefaultLevelScript_GetParser());
}
示例4:
XML_ElementParser*
Logging_GetParser() {
LoggingParser.AddChild(&LoggingConfigurationParser);
return &LoggingParser;
}