VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
xmlFileReader.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *******************************************************************************/
7 #pragma once
8 
9 
10 
11 #include <omtReader/omtReader.h>
12 #include <vlutil/vlString.h>
13 
15 #include <mtl/xmlFedTags.h>
16 #include <mtl/fedReader.h>
17 #ifdef DtUSE_UTILITIES_NAMESPACE
18 namespace DtUSE_UTILITIES_NAMESPACE
19 {
20 #endif
21 class DtOMTTree;
23 class DtEnumerationNode;
24 class DtAttributeFedNode;
25 class DtParameterFedNode;
30 class DtExerciseConn;
31 
33 {
34 
35 public:
36 
39 
41  virtual ~DtXMLFileReader();
42 
46  virtual DtOMTTree* readFile(const DtFilename& str, DtExerciseConn* ex = 0);
47 
48  virtual DtOMTTree* readFiles(const std::vector<DtFilename>& str,
49  DtExerciseConn* ex = 0);
50 
51  virtual const DtString& getLastError();
52  virtual void clearLastError();
53 
54  bool isEvolvedFormat(const DtString& fileName);
55  static bool isEvolvedFormat(xmlNodePtr& rootNode);
56  static xmlNode* getNodeByName( xmlNode* rootNode,
57  const xmlChar* nodeName );
58  static const xmlChar* childContentByName(xmlNode* node,
59  const xmlChar *name);
60 
61  void includeMIM(bool inc);
62  bool MIMincluded();
63 
64  static DtFedReadStatus openStream(const char* buffer, int size, xmlDocPtr* newXmlDocTree, DtString& lastError);
65  static DtFedReadStatus openFile(const char *fedFileName,
66  xmlDoc **newXmlDocTree, DtString& lastError);
67 
68 protected:
69 
70 protected:
73  std::vector<DtOMTTree*> myOMTTrees;
74  bool MIM;
75 
76 private:
77 
79  DtXMLFileReader(const DtXMLFileReader& orig);
80 
82  DtXMLFileReader& operator=(const DtXMLFileReader& rhs);
83 
85  void buildTree(DtOMTTree* omtTree);
86  void setAttributeHandles(DtObjectClassFedNode* objNode);
87  void setParameterHandles(DtInteractionClassFedNode* objNode);
88 
89 };
90 
91 
92 
93 #ifdef DtUSE_UTILITIES_NAMESPACE
94 } // end of namespace DtUSE_UTILITIES_NAMESPACE
95 #endif
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:61
Represents an attribute inside a object class.
Definition: attributeFedNode.h:33
bool MIM
Definition: xmlFileReader.h:74
struct _xmlNode xmlNode
Definition: fedReader.h:21
Contains the DtString class declaration.
unsigned char xmlChar
Definition: fedReader.h:19
This file declares DtFedReader and several helper classes.
Contains defines for export control for OMT Reader.
#define DT_DLL_OMTREADER
Definition: omtReader.h:27
DtFedReadStatus
Definition: fedReader.h:31
DtString myLastError
Definition: xmlFileReader.h:71
defines an object class inside our Fed Tree
Definition: interactionClassFedNode.h:31
struct _xmlDoc xmlDoc
Definition: fedReader.h:22
Definition: fieldComponentNode.h:18
Definition: complexComponentNode.h:21
defines an object class inside our Fed Tree
Definition: objectClassFedNode.h:36
DtExerciseConn * myExConn
Definition: xmlFileReader.h:72
Instances of DtFilename are DtStrings which convert filenames to the native format.
Definition: vlFilename.h:20
Definition: xmlFileReader.h:32
A tree using the an OMT File information.
Definition: omtTree.h:64
This file declares constants for XML Fed File Parsing.
Instances of DtString are used to represent strings.
Definition: vlString.h:29
Definition: enumerationNode.h:17
Definition: alternativeComponentNode.h:19
Represents an parameter inside a object class.
Definition: parameterFedNode.h:33
std::vector< DtOMTTree * > myOMTTrees
Definition: xmlFileReader.h:73

Document ID: Generated on Tue Aug 10 00:12:31 EDT 2021 from SVN revision 232765
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)