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

Document ID: Generated on Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)