Ginga  0.13.6
 All Classes Namespaces Functions Variables
NclConnectorsParser.h
1 /******************************************************************************
2 Este arquivo eh parte da implementacao do ambiente declarativo do middleware
3 Ginga (Ginga-NCL).
4 
5 Direitos Autorais Reservados (c) 1989-2007 PUC-Rio/Laboratorio TeleMidia
6 
7 Este programa eh software livre; voce pode redistribui-lo e/ou modificah-lo sob
8 os termos da Licenca Publica Geral GNU versao 2 conforme publicada pela Free
9 Software Foundation.
10 
11 Este programa eh distribuido na expectativa de que seja util, porem, SEM
12 NENHUMA GARANTIA; nem mesmo a garantia implicita de COMERCIABILIDADE OU
13 ADEQUACAO A UMA FINALIDADE ESPECIFICA. Consulte a Licenca Publica Geral do
14 GNU versao 2 para mais detalhes.
15 
16 Voce deve ter recebido uma copia da Licenca Publica Geral do GNU versao 2 junto
17 com este programa; se nao, escreva para a Free Software Foundation, Inc., no
18 endereco 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.
19 
20 Para maiores informacoes:
21 ncl @ telemidia.puc-rio.br
22 http://www.ncl.org.br
23 http://www.ginga.org.br
24 http://www.telemidia.puc-rio.br
25 ******************************************************************************
26 This file is part of the declarative environment of middleware Ginga (Ginga-NCL)
27 
28 Copyright: 1989-2007 PUC-RIO/LABORATORIO TELEMIDIA, All Rights Reserved.
29 
30 This program is free software; you can redistribute it and/or modify it under
31 the terms of the GNU General Public License version 2 as published by
32 the Free Software Foundation.
33 
34 This program is distributed in the hope that it will be useful, but WITHOUT ANY
35 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
36 PARTICULAR PURPOSE. See the GNU General Public License version 2 for more
37 details.
38 
39 You should have received a copy of the GNU General Public License version 2
40 along with this program; if not, write to the Free Software
41 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
42 
43 For further information contact:
44 ncl @ telemidia.puc-rio.br
45 http://www.ncl.org.br
46 http://www.ginga.org.br
47 http://www.telemidia.puc-rio.br
48 *******************************************************************************/
49 
50 #ifndef NCLCONNECTORSPARSER_H_
51 #define NCLCONNECTORSPARSER_H_
52 
53 #include "../ModuleParser.h"
54 #include "../DocumentParser.h"
55 using namespace ::br::pucrio::telemidia::converter::framework;
56 
57 #include "NclImportParser.h"
58 
59 #include <xercesc/dom/DOM.hpp>
60 XERCES_CPP_NAMESPACE_USE
61 
62 namespace br {
63 namespace pucrio {
64 namespace telemidia {
65 namespace converter {
66 namespace framework {
67 namespace ncl {
69  //Ref Classes
70  private:
71  NclImportParser *importParser;
72 
73  public:
74  NclConnectorsParser(DocumentParser *documentParser);
75 
76  void *parseSimpleCondition(
77  DOMElement *parentElement, void *objGrandParent);
78 
79  virtual void *createSimpleCondition(
80  DOMElement *parentElement, void *objGrandParent)=0;
81 
82  void *parseCompoundCondition(
83  DOMElement *parentElement, void *objGrandParent);
84 
85  virtual void *createCompoundCondition(
86  DOMElement *parentElement, void *objGrandParent)=0;
87 
88  virtual void addSimpleConditionToCompoundCondition(
89  void *parentObject, void *childObject)=0;
90 
91  virtual void addCompoundConditionToCompoundCondition(
92  void *parentObject, void *childObject)=0;
93 
94  virtual void addAssessmentStatementToCompoundCondition(
95  void *parentObject, void *childObject)=0;
96 
97  virtual void addCompoundStatementToCompoundCondition(
98  void *parentObject, void *childObject)=0;
99 
100  void *parseAssessmentStatement(
101  DOMElement *parentElement, void *objGrandParent);
102 
103  virtual void *createAssessmentStatement(
104  DOMElement *parentElement, void *objGrandParent)=0;
105 
106  virtual void addAttributeAssessmentToAssessmentStatement(
107  void *parentObject, void *childObject)=0;
108 
109  virtual void addValueAssessmentToAssessmentStatement(
110  void *parentObject, void *childObject)=0;
111 
112  void *parseAttributeAssessment(
113  DOMElement *parentElement, void *objGrandParent);
114 
115  virtual void *createAttributeAssessment(
116  DOMElement *parentElement, void *objGrandParent)=0;
117 
118  void *parseValueAssessment(
119  DOMElement *parentElement, void *objGrandParent);
120 
121  virtual void *createValueAssessment(
122  DOMElement *parentElement, void *objGrandParent)=0;
123 
124  void *parseCompoundStatement(
125  DOMElement *parentElement, void *objGrandParent);
126 
127  virtual void *createCompoundStatement(
128  DOMElement *parentElement, void *objGrandParent)=0;
129 
130  virtual void addAssessmentStatementToCompoundStatement(
131  void *parentObject, void *childObject)=0;
132 
133  virtual void addCompoundStatementToCompoundStatement(
134  void *parentObject, void *childObject)=0;
135 
136  void *parseSimpleAction(
137  DOMElement *parentElement, void *objGrandParent);
138 
139  virtual void *createSimpleAction(
140  DOMElement *parentElement, void *objGrandParent)=0;
141 
142  void *parseCompoundAction(
143  DOMElement *parentElement, void *objGrandParent);
144 
145  virtual void *createCompoundAction(
146  DOMElement *parentElement, void *objGrandParent)=0;
147 
148  virtual void addSimpleActionToCompoundAction(
149  void *parentObject, void *childObject)=0;
150 
151  virtual void addCompoundActionToCompoundAction(
152  void *parentObject, void *childObject)=0;
153 
154  void *parseConnectorParam(
155  DOMElement *parentElement, void *objGrandParent);
156 
157  virtual void *createConnectorParam(
158  DOMElement *parentElement, void *objGrandParent)=0;
159 
160  void *parseCausalConnector(
161  DOMElement *parentElement, void *objGrandParent);
162 
163  virtual void *createCausalConnector(
164  DOMElement *parentElement, void *objGrandParent)=0;
165 
166  virtual void addSimpleConditionToCausalConnector(
167  void *parentObject, void *childObject)=0;
168 
169  virtual void addCompoundConditionToCausalConnector(
170  void *parentObject, void *childObject)=0;
171 
172  virtual void addSimpleActionToCausalConnector(
173  void *parentObject, void *childObject)=0;
174 
175  virtual void addCompoundActionToCausalConnector(
176  void *parentObject, void *childObject)=0;
177 
178  virtual void addConnectorParamToCausalConnector(
179  void *parentObject, void *childObject)=0;
180 
181  void *parseConnectorBase(
182  DOMElement *parentElement, void *objGrandParent);
183 
184  virtual void *createConnectorBase(
185  DOMElement *parentElement, void *objGrandParent)=0;
186 
187  virtual void addImportBaseToConnectorBase(
188  void *parentObject, void *childObject)=0;
189 
190  virtual void addCausalConnectorToConnectorBase(
191  void *parentObject, void *childObject)=0;
192 
193  NclImportParser *getImportParser();
194  void setImportParser(NclImportParser *importParser);
195  };
196 }
197 }
198 }
199 }
200 }
201 }
202 
203 #endif /*NCLCONNECTORSPARSER_H_*/