MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
xmlFileReader.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2024 MAK Technologies, Inc
3 ** All rights reserved.
4 *******************************************************************************/
7 #pragma once
8 
9 
10 
11 #include <lgrOmtReader/omtReader.h>
12 #include <vlutil/vlString.h>
13 
15 #include <mtl/xmlFedTags.h>
16 #include <mtl/fedReader.h>
17 class DtOMTTree;
19 class DtEnumerationNode;
20 class DtAttributeFedNode;
21 class DtParameterFedNode;
26 class DtExerciseConn;
27 
29 {
30 
31 public:
32 
35 
37  virtual ~DtXMLFileReader();
38 
42  virtual DtOMTTree* readFile(const DtFilename& str, DtExerciseConn* ex = 0);
43 
44  virtual DtOMTTree* readFiles(const std::vector<DtFilename>& str,
45  DtExerciseConn* ex = 0);
46 
47  virtual const DtString& getLastError();
48  virtual void clearLastError();
49 
50  bool isEvolvedFormat(const DtString& fileName);
51  static bool isEvolvedFormat(xmlNodePtr& rootNode);
52  static xmlNode* getNodeByName( xmlNode* rootNode,
53  const xmlChar* nodeName );
54  static const xmlChar* childContentByName(xmlNode* node,
55  const xmlChar *name);
56 
57  void includeMIM(bool inc);
58  bool MIMincluded();
59 
60  static DtFedReadStatus openStream(const char* buffer, int size, xmlDocPtr* newXmlDocTree, DtString& lastError);
61  static DtFedReadStatus openFile(const char *fedFileName,
62  xmlDoc **newXmlDocTree, DtString& lastError);
63 
64 protected:
65 
66 protected:
67  DtString myLastError;
69  std::vector<DtOMTTree*> myOMTTrees;
70  bool MIM;
71 
72 private:
73 
75  DtXMLFileReader(const DtXMLFileReader& orig);
76 
78  DtXMLFileReader& operator=(const DtXMLFileReader& rhs);
79 
81  void buildTree(DtOMTTree* omtTree);
82  void setAttributeHandles(DtObjectClassFedNode* objNode);
83  void setParameterHandles(DtInteractionClassFedNode* objNode);
84 
85 };
86 
87 
88 
89 
90 
Represents an attribute inside a object class.
Definition: attributeFedNode.h:25
bool MIM
Definition: xmlFileReader.h:70
Contains defines for export control for OMT Reader.
#define DT_DLL_OMTREADER
Definition: omtReader.h:23
DtString myLastError
Definition: xmlFileReader.h:67
defines an object class inside our Fed Tree
Definition: interactionClassFedNode.h:25
Definition: fieldComponentNode.h:14
Definition: complexComponentNode.h:17
defines an object class inside our Fed Tree
Definition: objectClassFedNode.h:30
DtExerciseConn * myExConn
Definition: xmlFileReader.h:68
Definition: xmlFileReader.h:28
A tree using the an OMT File information.
Definition: omtTree.h:58
Definition: enumerationNode.h:13
Definition: alternativeComponentNode.h:15
Represents an parameter inside a object class.
Definition: parameterFedNode.h:25
std::vector< DtOMTTree * > myOMTTrees
Definition: xmlFileReader.h:69

Document ID: Generated on Fri May 31 15:45:35 EDT 2024 from SVN revision 266500
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)