VR-Forces 5.0.2 Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
mtflt
metaFlightNode.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2005 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: mtFltNode.h,v $ $Revision: 1.10 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef metaFlightNode_H_
10
#define metaFlightNode_H_
11
12
//
13
// \file mtFltNode.h
14
// \brief Represents an XML node of the Metaflight file.
15
//
16
17
#include "
mtflt/mtfltDefines.h
"
18
#include <vlutil/vlString.h>
19
#include <libxml/xmlreader.h>
20
21
// \brief Abstract class that represents an XML node of the Metaflight file.
22
// An XML Metaflight node has a "name" attribute plus extra properties which
23
// can be nodes themselves.
24
// \par
25
// \code
26
// <node name="aname">
27
// ... properties ...
28
// </node>
29
// \endcode
30
class
DT_DLL_mtflt
DtMetaFlightNode
31
{
32
public
:
33
34
// Default constructor.
35
DtMetaFlightNode
();
36
37
// Destructor
38
virtual
~
DtMetaFlightNode
();
39
40
// Copy constructor
41
DtMetaFlightNode
(
const
DtMetaFlightNode
& node);
42
43
// Assignment operator
44
DtMetaFlightNode
& operator=(
const
DtMetaFlightNode
& orig);
45
46
// Reads the information from the xml node into this object. xmlNodePtr
47
// is the type handed back by libXml which is the library being used to
48
// read xml documents.
49
// \param root pointer to the root node of the document
50
// \param node pointer to the xml node that will be read
51
// \return \b true if success reading the node. \b false otherwise.
52
virtual
bool
readNode(
const
xmlNodePtr
root,
xmlNodePtr
node) = 0;
53
54
// Name of the node
55
virtual
DtString
name()
const
;
56
57
protected
:
58
59
// This is the attribute stored in the name attribute of the xml node
60
// <tt> <node <b>name="myname" </b>>...</node> </tt>
61
DtString
myName
;
62
63
};
64
65
#endif
DtMetaFlightNode
Definition:
metaFlightNode.h:30
xmlNodePtr
xmlNode * xmlNodePtr
Definition:
DtLightPointTable.h:20
DT_DLL_mtflt
#define DT_DLL_mtflt
Definition:
mtfltDefines.h:23
mtfltDefines.h
DtMetaFlightNode::myName
DtString myName
Definition:
metaFlightNode.h:61
DtString
Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (
www.mak.com
)