Newton Dynamics  4.00
dTinyXmlGlue.h
1 /* Copyright (c) <2003-2019> <Julio Jerez, Newton Game Dynamics>
2 *
3 * This software is provided 'as-is', without any express or implied
4 * warranty. In no event will the authors be held liable for any damages
5 * arising from the use of this software.
6 *
7 * Permission is granted to anyone to use this software for any purpose,
8 * including commercial applications, and to alter it and redistribute it
9 * freely, subject to the following restrictions:
10 *
11 * 1. The origin of this software must not be misrepresented; you must not
12 * claim that you wrote the original software. If you use this software
13 * in a product, an acknowledgment in the product documentation would be
14 * appreciated but is not required.
15 *
16 * 2. Altered source versions must be plainly marked as such, and must not be
17 * misrepresented as being the original software.
18 *
19 * 3. This notice may not be removed or altered from any source distribution.
20 */
21 
22 #ifndef __D_TINYXML_GLUE_H__
23 #define __D_TINYXML_GLUE_H__
24 
25 #include "dCoreStdafx.h"
26 #include "dTypes.h"
27 #include "dArray.h"
28 #include "dVector.h"
29 #include "dMatrix.h"
30 
31 D_CORE_API void xmlSaveParam(nd::TiXmlElement* const rootNode, const char* const name, const char* const type, const char* const value);
32 D_CORE_API void xmlSaveParam(nd::TiXmlElement* const rootNode, const char* const name, dInt32 value);
33 D_CORE_API void xmlSaveParam(nd::TiXmlElement* const rootNode, const char* const name, dInt64 value);
34 D_CORE_API void xmlSaveParam(nd::TiXmlElement* const rootNode, const char* const name, dFloat32 value);
35 D_CORE_API void xmlSaveParam(nd::TiXmlElement* const rootNode, const char* const name, const dVector& value);
36 D_CORE_API void xmlSaveParam(nd::TiXmlElement* const rootNode, const char* const name, const dMatrix& value);
37 D_CORE_API void xmlSaveParam(nd::TiXmlElement* const rootNode, const char* const name, dInt32 count, const dVector* const array);
38 
39 D_CORE_API dInt32 xmlGetInt(const nd::TiXmlNode* const rootNode, const char* const name);
40 D_CORE_API dInt64 xmlGetInt64(const nd::TiXmlNode* const rootNode, const char* const name);
41 D_CORE_API dFloat32 xmlGetFloat(const nd::TiXmlNode* const rootNode, const char* const name);
42 D_CORE_API dVector xmlGetVector3(const nd::TiXmlNode* const rootNode, const char* const name);
43 D_CORE_API dMatrix xmlGetMatrix(const nd::TiXmlNode* const rootNode, const char* const name);
44 D_CORE_API const char* xmlGetString(const nd::TiXmlNode* const rootNode, const char* const name);
45 D_CORE_API void xmlGetFloatArray3(const nd::TiXmlNode* const rootNode, const char* const name, dArray<dVector>& array);
46 
47 #endif
48 
nd::TiXmlNode
The parent class for everything in the Document Object Model.
Definition: tinyxml.h:427
dArray< dVector >
nd::TiXmlElement
The element is a container class.
Definition: tinyxml.h:947
dVector
Definition: dVectorArmNeon.h:1104
dMatrix
Definition: dMatrix.h:39