MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
omtFileReader.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 <lgrOmtReader/omtReader.h>
12 #include <vlutil/vlString.h>
13 #include <mtl/mtl.h>
14 class DtOMTTree;
16 class DtEnumerationNode;
17 class DtAttributeFedNode;
18 class DtParameterFedNode;
19 class DtExerciseConn;
22 
24 {
25 
26 public:
27 
30 
32  virtual ~DtOMTFileReader();
33 
37  virtual DtOMTTree* readFile(const DtString& str, DtExerciseConn* ex = 0);
38 
39  virtual const DtString& getLastError();
40  virtual void clearLastError();
41 
42 protected:
43 
44  virtual DtOMTTree* processObjectModel(DtlObjPtr& ptr);
45 
46  virtual void processName(DtlObjPtr& ptr, DtOMTTree*);
47  virtual void processVersionNo(DtlObjPtr& ptr, DtOMTTree*);
48  virtual void processType(DtlObjPtr& ptr, DtOMTTree*);
49  virtual void processPurpose(DtlObjPtr& ptr, DtOMTTree*);
50  virtual void processApplicationDomain(DtlObjPtr& ptr, DtOMTTree*);
51  virtual void processSponsorOrgName(DtlObjPtr& ptr, DtOMTTree*);
52  virtual void processModificationDate(DtlObjPtr& ptr, DtOMTTree*);
53  virtual void processMOMVersion(DtlObjPtr& ptr, DtOMTTree*);
54  virtual void processComplexDataType(DtlObjPtr& ptr, DtOMTTree*);
55  virtual void processEnumeratedDataType(DtlObjPtr& ptr, DtOMTTree*);
56  virtual void processNote(DtlObjPtr& ptr, DtOMTTree*);
57  virtual void processObjectClass(DtlObjPtr& ptr, DtOMTTree*);
58  virtual void processInteractionClass(DtlObjPtr& ptr, DtOMTTree*);
59 
60  DtComplexComponentNode* processComplexComponent(DtlObjPtr& ptr);
61  DtEnumerationNode* processEnumeration(DtlObjPtr& ptr);
62  DtAttributeFedNode* processAttribute(DtlObjPtr& ptr);
63  DtParameterFedNode* processParameter(DtlObjPtr& ptr);
64 
65 protected:
66 
68  // get the object class and attribute handles and link the children nodes with their parents.
69  virtual void buildObjectClassTree(DtOMTTree* omtTree);
70 
72  // get the interaction class and parameter handles and link the children nodes with their parents.
73  virtual void buildInteractionClassTree(DtOMTTree* omtTree);
74 
75  //Helper function for build tree
76  virtual void setAttributeHandles(DtObjectClassFedNode* objNode);
77  virtual void setParameterHandles(DtInteractionClassFedNode* objNode);
78 
79 protected:
80  DtString myLastError;
82 
83 private:
84 
86  DtOMTFileReader(const DtOMTFileReader& orig);
87 
89  DtOMTFileReader& operator=(const DtOMTFileReader& rhs);
90 
91 
92 
93 
94 };
95 
96 
97 
98 

Document ID: Generated on Tue Aug 1 09:00:26 EDT 2017 from SVN revision 179128
Copyright © 2017 VT MÄK. All Rights Reserved (www.mak.com)