50 #ifndef NCLDOCUMENT_H_
51 #define NCLDOCUMENT_H_
57 #include "switches/Rule.h"
58 #include "switches/RuleBase.h"
59 using namespace ::br::pucrio::telemidia::ncl::switches;
61 #include "components/ContextNode.h"
62 #include "components/Node.h"
63 #include "components/NodeEntity.h"
64 using namespace ::br::pucrio::telemidia::ncl::components;
66 #include "connectors/Connector.h"
67 #include "connectors/ConnectorBase.h"
68 using namespace ::br::pucrio::telemidia::ncl::connectors;
70 #include "descriptor/GenericDescriptor.h"
71 #include "descriptor/DescriptorBase.h"
72 using namespace ::br::pucrio::telemidia::ncl::descriptor;
74 #include "layout/LayoutRegion.h"
75 #include "layout/RegionBase.h"
76 using namespace ::br::pucrio::telemidia::ncl::layout;
78 #include "transition/Transition.h"
79 #include "transition/TransitionBase.h"
80 using namespace ::br::pucrio::telemidia::ncl::transition;
82 #include "metainformation/Meta.h"
83 #include "metainformation/Metadata.h"
84 using namespace ::br::pucrio::telemidia::ncl::metainformation;
100 ConnectorBase* connectorBase;
101 DescriptorBase* descriptorBase;
102 map<string, NclDocument*> documentAliases;
103 vector<NclDocument*> documentBase;
104 map<string, NclDocument*> documentLocations;
106 map<int, RegionBase*> regionBases;
108 TransitionBase* transitionBase;
109 vector<Meta*> metainformationList;
110 vector<Metadata*> metadataList;
120 void setParentDocument(
NclDocument* parentDocument);
121 string getDocumentPerspective();
123 string getDocumentLocation();
125 bool addDocument(
NclDocument* document,
string alias,
string location);
126 void clearDocument();
127 Connector* getConnector(
string connectorId);
128 ConnectorBase* getConnectorBase();
129 Transition* getTransition(
string transitionId);
130 TransitionBase* getTransitionBase();
131 GenericDescriptor* getDescriptor(
string descriptorId);
132 DescriptorBase* getDescriptorBase();
135 ContextNode* getBody();
137 vector<NclDocument*>* getDocuments();
141 Node* getNodeLocally(
string nodeId);
144 Node* getNode(
string nodeId);
145 LayoutRegion* getRegion(
string regionId);
148 LayoutRegion* getRegion(
string regionId, RegionBase* regionBase);
151 RegionBase* getRegionBase(
int devClass);
152 RegionBase* getRegionBase(
string regionBaseId);
153 map<int, RegionBase*>* getRegionBases();
154 Rule* getRule(
string ruleId);
155 RuleBase* getRuleBase();
157 void setConnectorBase(ConnectorBase* connectorBase);
158 void setTransitionBase(TransitionBase* transitionBase);
159 void setDescriptorBase(DescriptorBase* descriptorBase);
160 void setDocumentAlias(
NclDocument* document,
string alias);
161 void setBody(ContextNode* node);
162 void setDocumentLocation(
NclDocument* document,
string location);
163 void setId(
string id);
164 void addRegionBase(RegionBase* regionBase);
165 void setRuleBase(RuleBase* ruleBase);
166 void addMetainformation(Meta* meta);
167 void addMetadata(Metadata* metadata);
168 vector<Meta*>* getMetainformation();
169 vector<Metadata*>* getMetadata();
170 void removeRegionBase(
string regionBaseId);
171 void removeMetainformation(Meta* meta);
172 void removeMetadata(Metadata* metadata);
173 void removeAllMetainformation();
174 void removeAllMetadata();
Definition: NclDocument.h:97