Newton Dynamics
4.00
ndTinyXmlGlue.h
1
/* Copyright (c) <2003-2022> <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 __ND_TINYXML_GLUE_H__
23
#define __ND_TINYXML_GLUE_H__
24
25
#include "ndCoreStdafx.h"
26
#include "ndTypes.h"
27
#include "ndArray.h"
28
#include "ndVector.h"
29
#include "ndMatrix.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, ndInt32 value);
33
D_CORE_API
void
xmlSaveParam(
nd::TiXmlElement
*
const
rootNode,
const
char
*
const
name, ndInt64 value);
34
D_CORE_API
void
xmlSaveParam(
nd::TiXmlElement
*
const
rootNode,
const
char
*
const
name, ndFloat32 value);
35
D_CORE_API
void
xmlSaveParam(
nd::TiXmlElement
*
const
rootNode,
const
char
*
const
name,
const
ndVector
& value);
36
D_CORE_API
void
xmlSaveParam(
nd::TiXmlElement
*
const
rootNode,
const
char
*
const
name,
const
ndMatrix
& value);
37
D_CORE_API
void
xmlSaveParam(
nd::TiXmlElement
*
const
rootNode,
const
char
*
const
name,
const
char
*
const
value);
38
D_CORE_API
void
xmlSaveParam(
nd::TiXmlElement
*
const
rootNode,
const
char
*
const
name,
const
ndArray<ndFloat32>
& array);
39
D_CORE_API
void
xmlSaveParam(
nd::TiXmlElement
*
const
rootNode,
const
char
*
const
name,
const
ndArray<ndVector>
& array);
40
41
D_CORE_API ndInt32 xmlGetInt(
const
nd::TiXmlNode
*
const
rootNode,
const
char
*
const
name);
42
D_CORE_API ndInt64 xmlGetInt64(
const
nd::TiXmlNode
*
const
rootNode,
const
char
*
const
name);
43
D_CORE_API ndFloat32 xmlGetFloat(
const
nd::TiXmlNode
*
const
rootNode,
const
char
*
const
name);
44
D_CORE_API
ndVector
xmlGetVector3(
const
nd::TiXmlNode
*
const
rootNode,
const
char
*
const
name);
45
D_CORE_API
ndMatrix
xmlGetMatrix(
const
nd::TiXmlNode
*
const
rootNode,
const
char
*
const
name);
46
D_CORE_API
const
char
* xmlGetString(
const
nd::TiXmlNode
*
const
rootNode,
const
char
*
const
name);
47
D_CORE_API
void
xmlGetFloatArray(
const
nd::TiXmlNode
*
const
rootNode,
const
char
*
const
name,
ndArray<ndFloat32>
& array);
48
D_CORE_API
void
xmlGetFloatArray3(
const
nd::TiXmlNode
*
const
rootNode,
const
char
*
const
name,
ndArray<ndVector>
& array);
49
50
51
#ifdef D_NEWTON_USE_DOUBLE
52
D_CORE_API
void
xmlSaveParam(
nd::TiXmlElement
*
const
rootNode,
const
char
*
const
name,
const
ndArray<ndReal>
& array);
53
D_CORE_API
void
xmlGetFloatArray(
const
nd::TiXmlNode
*
const
rootNode,
const
char
*
const
name,
ndArray<ndReal>
& array);
54
#endif
55
56
D_CORE_API
const
nd::TiXmlNode
* xmlFind(
const
nd::TiXmlNode
*
const
rootNode,
const
char
*
const
name);
57
58
#endif
59
nd::TiXmlNode
The parent class for everything in the Document Object Model.
Definition:
tinyxml.h:437
ndArray< ndFloat32 >
nd::TiXmlElement
The element is a container class.
Definition:
tinyxml.h:962
ndMatrix
Definition:
ndMatrix.h:42
ndVector
Definition:
ndVectorArmNeon.h:41
newton-dynamics
newton-4.00
sdk
dCore
ndTinyXmlGlue.h
Generated by
1.8.20