VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
31 {
32 public:
33 
34  // Default constructor.
36 
37  // Destructor
38  virtual ~DtMetaFlightNode();
39 
40  // Copy constructor
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>
62 
63 };
64 
65 #endif
Definition: metaFlightNode.h:30
xmlNode * xmlNodePtr
Definition: DtLightPointTable.h:20
#define DT_DLL_mtflt
Definition: mtfltDefines.h:23
DtString myName
Definition: metaFlightNode.h:61

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)