VR-Link API Documentation for HLA 1516
 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 #include <omtReader/omtReader.h>
10 #include <vlutil/vlString.h>
11 
13 #include <mtl/xmlFedTags.h>
14 #include <mtl/fedReader.h>
15 
16 class DtOMTTree;
18 class DtEnumerationNode;
19 class DtAttributeFedNode;
20 class DtParameterFedNode;
25 class DtExerciseConn;
26 
28 {
29 
30 public:
31 
34 
36  virtual ~DtXMLFileReader();
37 
41  virtual DtOMTTree* readFile(const DtString& str, DtExerciseConn* ex);
42 
43  virtual DtOMTTree* readFiles(const std::vector<DtString>& str,
44  DtExerciseConn* ex);
45 
46  virtual const DtString& getLastError();
47  virtual void clearLastError();
48 
49  bool isEvolvedFormat(const DtString& fileName);
50  bool isEvolvedFormat(xmlNodePtr& rootNode);
51  xmlNode* getNodeByName( xmlNode* rootNode,
52  const xmlChar* nodeName );
53  const xmlChar* childContentByName(xmlNode* node,
54  const xmlChar *name);
55 
56  void includeMIM(bool inc);
57  bool MIMincluded();
58 
59 protected:
60  virtual DtFedReadStatus openFile(const char *fedFileName,
61  xmlDoc **newXmlDocTree);
62  DtFedReadStatus openStream(char* buffer, int size, xmlDocPtr* newXmlDocTree);
63 
64 protected:
67  std::vector<DtOMTTree*> myOMTTrees;
68  bool MIM;
69 
70 private:
71 
73  DtXMLFileReader(const DtXMLFileReader& orig);
74 
76  DtXMLFileReader& operator=(const DtXMLFileReader& rhs);
77 
79  void buildTree(DtOMTTree* omtTree);
80  void setAttributeHandles(DtObjectClassFedNode* objNode);
81  void setParameterHandles(DtInteractionClassFedNode* objNode);
82 
83 };
84 
85 
86 

Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)