tools/navgenproj/TiXml.h Source File

TiXml.h
Go to the documentation of this file.
1 /*
2 * Copyright 2017 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 #pragma once
8 
9 #include <string>
10 
11 class TiXmlNode;
12 class TiXmlDocument;
13 
14 // hides tinyxml behind a narrow api (that also serves as a compile firewal)
15 namespace TiXml
16 {
17 
18 bool SameValue(const char* a, const char* b); // case insensitive
19 
20 bool HasName(TiXmlNode* node, const char* name);
21 const char* GetName(TiXmlNode* node);
22 
23 bool HasValue(TiXmlNode* node);
24 bool HasValue(TiXmlNode* node, const char* value);
25 bool HasValue(TiXmlNode* node, const std::string& value);
26 
27 const char* GetValue(TiXmlNode* node);
28 void CreateValue(TiXmlNode* node, const char* value);
29 
30 TiXmlNode* CreateChild(TiXmlNode* node, const char* name);
31 TiXmlNode* GetChild(TiXmlNode* node, const char* name);
32 
33 TiXmlNode* FirstChild(TiXmlNode* node);
34 TiXmlNode* NextSibling(TiXmlNode* node);
35 
36 bool IsElement(TiXmlNode* node);
37 
38 TiXmlDocument* CreateDoc(const char* path);
39 void DestroyDoc(TiXmlDocument* doc);
40 
41 bool LoadDoc(TiXmlDocument* doc);
42 bool SaveDoc(TiXmlDocument* doc);
43 
44 }
45 
46 
47 
Definition: TiXml.cpp:11