当前位置: 首页>>代码示例>>C++>>正文


C++ XML_ElementParser::AddChild方法代码示例

本文整理汇总了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;
}
开发者ID:Aleph-One-Marathon,项目名称:alephone-dingoo,代码行数:12,代码来源:StarGameProtocol.cpp

示例2:

// XML-parser support
XML_ElementParser *Items_GetParser()
{
	ItemParser.AddChild(Shape_GetParser());
	ItemsParser.AddChild(&ItemParser);

	return &ItemsParser;
}
开发者ID:0x7F800000,项目名称:Aleph-NONE,代码行数:8,代码来源:items.cpp

示例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());
}
开发者ID:Aleph-One-Marathon,项目名称:alephone-dingoo,代码行数:41,代码来源:XML_MakeRoot.cpp

示例4:

XML_ElementParser*
Logging_GetParser() {
	LoggingParser.AddChild(&LoggingConfigurationParser);
	
	return &LoggingParser;
}
开发者ID:Aleph-One-Marathon,项目名称:alephone-psp,代码行数:6,代码来源:Logging.cpp


注:本文中的XML_ElementParser::AddChild方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。