VR-Link API Documentation for HLA 1.3
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,
42  DtExerciseConn* ex);
43 
44  virtual DtOMTTree* readFiles(const std::vector<DtString>& str,
45  DtExerciseConn* ex);
46 
47  virtual const DtString& getLastError();
48  virtual void clearLastError();
49 
50 protected:
51  virtual DtFedReadStatus openFile(const char *fedFileName,
52  xmlDoc **newXmlDocTree);
53 
54  bool isEvolvedFormat(xmlNodePtr& rootNode);
55  xmlNode* getNodeByName( xmlNode* rootNode,
56  const xmlChar* nodeName );
57  const xmlChar* childContentByName(xmlNode* node,
58  const xmlChar *name);
59 
60 
61 
62 
63 protected:
66  std::vector<DtOMTTree*> myOMTTrees;
67 
68 private:
69 
71  DtXMLFileReader(const DtXMLFileReader& orig);
72 
74  DtXMLFileReader& operator=(const DtXMLFileReader& rhs);
75 
77  void buildTree(DtOMTTree* omtTree);
78  void setAttributeHandles(DtObjectClassFedNode* objNode);
79  void setParameterHandles(DtInteractionClassFedNode* objNode);
80 };
81 
82 
83 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)