VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
mtflt
mtFltNode.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 mtFltNode_H_
10
#define mtFltNode_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
DtMtFltNode
31
{
32
public
:
33
34
// Default constructor.
35
DtMtFltNode
();
36
37
// Destructor
38
virtual
~
DtMtFltNode
();
39
40
// Copy constructor
41
DtMtFltNode
(
const
DtMtFltNode
& node);
42
43
// Assignment operator
44
DtMtFltNode
& operator=(
const
DtMtFltNode
& 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
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)