50 #ifndef NclConnectorsConverter_H
51 #define NclConnectorsConverter_H
53 #include "ncl/Parameter.h"
54 using namespace ::br::pucrio::telemidia::ncl;
56 #include "ncl/animation/Animation.h"
57 using namespace ::br::pucrio::telemidia::ncl::animation;
59 #include "ncl/connectors/EventUtil.h"
60 #include "ncl/connectors/ValueAssessment.h"
61 #include "ncl/connectors/CompoundAction.h"
62 #include "ncl/connectors/CompoundCondition.h"
63 #include "ncl/connectors/CompoundStatement.h"
64 #include "ncl/connectors/CausalConnector.h"
65 #include "ncl/connectors/AttributeAssessment.h"
66 #include "ncl/connectors/AssessmentStatement.h"
67 #include "ncl/connectors/SimpleAction.h"
68 #include "ncl/connectors/SimpleCondition.h"
69 #include "ncl/connectors/ConnectorBase.h"
70 using namespace ::br::pucrio::telemidia::ncl::connectors;
72 #include "ncl/util/Comparator.h"
73 using namespace ::br::pucrio::telemidia::ncl::util;
75 #include "util/functions.h"
76 using namespace ::br::pucrio::telemidia::util;
78 #include "ncl/NclDocument.h"
79 using namespace ::br::pucrio::telemidia::ncl;
81 #include "../framework/DocumentParser.h"
82 using namespace ::br::pucrio::telemidia::converter::framework;
84 #include "../framework/ncl/NclConnectorsParser.h"
85 using namespace ::br::pucrio::telemidia::converter::framework::ncl;
92 #include <xercesc/dom/DOM.hpp>
93 XERCES_CPP_NAMESPACE_USE;
102 Connector *connector;
106 void addCausalConnectorToConnectorBase(
107 void *parentObject,
void *childObject);
109 void addConnectorParamToCausalConnector(
110 void *parentObject,
void *childObject);
112 void addImportBaseToConnectorBase(
113 void *parentObject,
void *childObject);
115 void *createCausalConnector(
116 DOMElement *parentElement,
void *objGrandParent);
118 void *createConnectorBase(
119 DOMElement *parentElement,
void *objGrandParent);
121 void *createConnectorParam(
122 DOMElement *parentElement,
void *objGrandParent);
125 void compileRoleInformation(Role *role, DOMElement *parentElement);
128 void *createSimpleCondition(
129 DOMElement *parentElement,
void *objGrandParent);
131 void *createCompoundCondition(
132 DOMElement *parentElement,
void *objGrandParent);
134 void *createAttributeAssessment(
135 DOMElement *parentElement,
void *objGrandParent);
137 void *createValueAssessment(
138 DOMElement *parentElement,
void *objGrandParent);
140 void *createAssessmentStatement(
141 DOMElement *parentElement,
void *objGrandParent);
143 void *createCompoundStatement(
144 DOMElement *parentElement,
void *objGrandParent);
146 void *createSimpleAction(
147 DOMElement *parentElement,
void *objGrandParent);
149 void *createCompoundAction(
150 DOMElement *parentElement,
void *objGrandParent);
153 Parameter *getParameter(
string paramName);
154 short convertActionType(
string actionType);
157 static short convertEventState(
string eventState);
158 void addSimpleConditionToCompoundCondition(
159 void *parentObject,
void *childObject);
161 void addCompoundConditionToCompoundCondition(
162 void *parentObject,
void *childObject);
164 void addAssessmentStatementToCompoundCondition(
165 void *parentObject,
void *childObject);
167 void addCompoundStatementToCompoundCondition(
168 void *parentObject,
void *childObject);
170 void addAttributeAssessmentToAssessmentStatement(
171 void *parentObject,
void *childObject);
173 void addValueAssessmentToAssessmentStatement(
174 void *parentObject,
void *childObject);
176 void addAssessmentStatementToCompoundStatement(
177 void *parentObject,
void *childObject);
179 void addCompoundStatementToCompoundStatement(
180 void *parentObject,
void *childObject);
182 void addSimpleActionToCompoundAction(
183 void *parentObject,
void *childObject);
185 void addCompoundActionToCompoundAction(
186 void *parentObject,
void *childObject);
188 void addSimpleConditionToCausalConnector(
189 void *parentObject,
void *childObject);
191 void addCompoundConditionToCausalConnector(
192 void *parentObject,
void *childObject);
194 void addSimpleActionToCausalConnector(
195 void *parentObject,
void *childObject);
197 void addCompoundActionToCausalConnector(
198 void *parentObject,
void *childObject);
200 void addAssessmentStatementToConstraintConnector(
201 void *parentObject,
void *childObject);
203 void addCompoundStatementToConstraintConnector(
204 void *parentObject,
void *childObject);
206 void addConstraintConnectorToConnectorBase(
207 void *parentObject,
void *childObject);
209 void *createConstraintConnector(
210 DOMElement *parentElement,
void *objGrandParent);
Definition: NclConnectorsConverter.h:100