50 #ifndef PrivateBaseContext_H_
51 #define PrivateBaseContext_H_
53 #include "ncl/components/PrivateBase.h"
54 #include "ncl/components/ContextNode.h"
55 #include "ncl/components/Node.h"
56 #include "ncl/components/ReferenceContent.h"
57 using namespace ::br::pucrio::telemidia::ncl::components;
59 #include "ncl/switches/Rule.h"
60 #include "ncl/switches/SwitchNode.h"
61 #include "ncl/switches/RuleBase.h"
62 using namespace ::br::pucrio::telemidia::ncl::switches;
64 #include "ncl/interfaces/SwitchPort.h"
65 #include "ncl/interfaces/Anchor.h"
66 #include "ncl/interfaces/InterfacePoint.h"
67 #include "ncl/interfaces/Port.h"
68 using namespace ::br::pucrio::telemidia::ncl::interfaces;
70 #include "ncl/connectors/Connector.h"
71 #include "ncl/connectors/ConnectorBase.h"
72 using namespace ::br::pucrio::telemidia::ncl::connectors;
74 #include "ncl/layout/IDeviceLayout.h"
75 #include "ncl/layout/LayoutRegion.h"
76 #include "ncl/layout/RegionBase.h"
77 using namespace ::br::pucrio::telemidia::ncl::layout;
79 #include "ncl/descriptor/GenericDescriptor.h"
80 #include "ncl/descriptor/DescriptorBase.h"
81 using namespace ::br::pucrio::telemidia::ncl::descriptor;
83 #include "ncl/link/Link.h"
84 using namespace ::br::pucrio::telemidia::ncl::link;
86 #include "ncl/transition/Transition.h"
87 #include "ncl/transition/TransitionBase.h"
88 using namespace ::br::pucrio::telemidia::ncl::transition;
91 #include "ncl/NclDocument.h"
92 #include "ncl/IPrivateBaseContext.h"
93 #include "ncl/IllegalBaseTypeException.h"
94 using namespace ::br::pucrio::telemidia::ncl;
102 string embeddedNclNodeId;
103 string embeddedNclNodeLocation;
104 NclDocument* embeddedDocument;
109 namespace telemidia {
114 map<string, NclDocument*> baseDocuments;
115 map<string, NclDocument*> visibleDocuments;
116 map<string, EmbeddedNclData*> embeddedDocuments;
117 map<NclDocument*, IDeviceLayout*> layouts;
118 set<IDeviceLayout*> layoutsGB;
119 PrivateBase* privateBase;
125 void createPrivateBase(
string id);
128 NclDocument* compileDocument(
129 string location, IDeviceLayout* deviceLayout);
132 NclDocument* addDocument(
133 string location, IDeviceLayout* deviceLayout);
135 NclDocument* embedDocument(
139 IDeviceLayout* deviceLayout);
141 void* addVisibleDocument(
string location, IDeviceLayout* deviceLayout);
142 NclDocument* getVisibleDocument(
string docId);
145 bool eraseVisibleDocument(
string docLocation);
148 string getDocumentLocation(
string docId);
149 string getEmbeddedDocumentLocation(
string parentDocId,
string nodeId);
150 NclDocument* getDocument(
string id);
151 NclDocument* getEmbeddedDocument(
string parendDocId,
string nodeId);
152 vector<NclDocument*>* getDocuments();
155 void removeDocumentBase(NclDocument* document, Base* base);
156 void removeDocumentBases(NclDocument* document);
159 NclDocument* removeDocument(
string id);
160 NclDocument* removeEmbeddedDocument(
string parentDocId,
string nodeId);
163 NclDocument* getBaseDocument(
string documentId);
166 NclDocument* document,
170 LayoutRegion* addRegion(
176 LayoutRegion* removeRegion(
181 RegionBase* addRegionBase(
string documentId,
string xmlRegionBase);
183 RegionBase* removeRegionBase(
184 string documentId,
string regionBaseId);
186 Rule* addRule(
string documentId,
string xmlRule);
187 Rule* removeRule(
string documentId,
string ruleId);
188 RuleBase* addRuleBase(
string documentId,
string xmlRuleBase);
189 RuleBase* removeRuleBase(
string documentId,
string ruleBaseId);
190 Transition* addTransition(
string documentId,
string xmlTransition);
191 Transition* removeTransition(
string documentId,
string transitionId);
192 TransitionBase* addTransitionBase(
193 string documentId,
string xmlTransitionBase);
195 TransitionBase* removeTransitionBase(
196 string documentId,
string transitionBaseId);
198 Connector* addConnector(
string documentId,
string xmlConnector);
199 Connector* removeConnector(
string documentId,
string connectorId);
200 ConnectorBase* addConnectorBase(
201 string documentId,
string xmlConnectorBase);
203 ConnectorBase* removeConnectorBase(
204 string documentId,
string connectorBaseId);
206 GenericDescriptor* addDescriptor(
207 string documentId,
string xmlDescriptor);
209 GenericDescriptor* removeDescriptor(
210 string documentId,
string descriptorId);
212 DescriptorBase* addDescriptorBase(
213 string documentId,
string xmlDescriptorBase);
215 DescriptorBase* removeDescriptorBase(
216 string documentId,
string descriptorBaseId);
219 Base* getBase(NclDocument* document,
string baseId);
223 string documentId,
string docBaseId,
string xmlImportBase);
225 Base* removeImportBase(
226 string documentId,
string docBaseId,
string documentURI);
228 NclDocument* addImportedDocumentBase(
229 string documentId,
string xmlImportedDocumentBase);
231 NclDocument* removeImportedDocumentBase(
232 string documentId,
string importedDocumentBaseId);
234 NclDocument* addImportNCL(
string documentId,
string xmlImportNCL);
235 NclDocument* removeImportNCL(
string documentId,
string documentURI);
236 Node* addNode(
string documentId,
string compositeId,
string xmlNode);
237 InterfacePoint* addInterface(
238 string documentId,
string nodeId,
string xmlInterface);
240 Link* addLink(
string documentId,
string compositeId,
string xmlLink);
241 PrivateBase* getPrivateBase();
Definition: PrivateBaseContext.h:101
Definition: PrivateBaseContext.h:112