22 strName =
module->strName;
23 strHost =
module->strHost;
24 strParam =
module->strParam;
25 strWorkDir =
module->strWorkDir;
26 strStdio =
module->strStdio;
27 strBroker =
module->strBroker;
28 strPrefix =
module->strPrefix;
29 strEnvironment =
module->strEnvironment;
30 iRank =
module->iRank;
31 strTag =
module->getLabel();
32 strDisplay =
module->getDisplay();
33 waitStart =
module->getPostExecWait();
34 waitStop =
module->getPostStopWait();
36 modelBase = *
module->getModel();
38 modelBase =
module->getModelBase();
46 portmaps.push_back(portmap);
53 auto itr = findPortmap(portmap);
54 if (itr == portmaps.end()) {
65 for (itr = portmaps.begin(); itr < portmaps.end(); itr++) {
66 if ((*itr) == portmap) {
70 return portmaps.end();
92 strName = app.strName;
93 strVersion = app.strVersion;
94 strDescription = app.strDescription;
95 authors = app.authors;
96 Imodules = app.Imodules;
97 connections = app.connections;
98 arbitrators = app.arbitrators;
99 Iapplications = app.Iapplications;
100 resources = app.resources;
101 strXmlFile = app.strXmlFile;
102 strPrefix = app.strPrefix;
103 strBasePrefix = app.strBasePrefix;
104 appOwner = app.appOwner;
120 Imodules.push_back(imod);
127 auto itr = findImodule(imod);
128 if (itr == Imodules.end()) {
138 connections.push_back(cnn);
139 auto itr = findConnection(cnn);
146 auto itr = findConnection(cnn);
147 if (itr == connections.end()) {
150 connections.erase(itr);
157 arbitrators.push_back(arb);
158 auto itr = findArbitrator(arb);
164 auto itr = findArbitrator(arb);
165 if (itr == arbitrators.end()) {
168 arbitrators.erase(itr);
197 Iapplications.push_back(iapp);
204 auto itr = findIapplication(iapp);
205 if (itr == Iapplications.end()) {
208 Iapplications.erase(itr);
214 resources.push_back(res);
221 auto itr = findResource(res);
222 if (itr == resources.end()) {
225 resources.erase(itr);
232 for (itr = authors.begin(); itr < authors.end(); itr++) {
246 for (itr = Imodules.begin(); itr < Imodules.end(); itr++) {
247 if ((*itr) == imod) {
251 return Imodules.end();
258 for (itr = connections.begin(); itr < connections.end(); itr++) {
263 return connections.end();
269 for (itr = arbitrators.begin(); itr < arbitrators.end(); itr++) {
274 return arbitrators.end();
281 for (itr = Iapplications.begin(); itr < Iapplications.end(); itr++) {
282 if ((*itr) == iapp) {
286 return Iapplications.end();
292 for (itr = resources.begin(); itr < resources.end(); itr++) {
297 return resources.end();
Class ApplicationInterface.
bool removeAuthor(Author &author)
void setName(const char *szName)
Arbitrator & addArbitrator(Arbitrator &arb)
bool addIapplication(ApplicationInterface &iapp)
bool removeImodule(ModuleInterface &imod)
bool removeConnection(Connection &cnn)
bool removeResource(ResYarpPort &res)
Connection & addConnection(Connection &cnn)
bool removeArbitrator(Arbitrator &arb)
bool addResource(ResYarpPort &res)
bool removeIapplication(ApplicationInterface &iapp)
bool addImodule(ModuleInterface &imod)
Application()
Class Application.
bool removePortmap(Portmap &portmap)
bool addPortmap(Portmap &portmap)
ModuleInterface(const char *szName)
GraphicModel * getModel()
std::vector< Portmap >::iterator PortmapIterator
std::vector< ResYarpPort >::iterator ResourceIterator
std::vector< ModuleInterface >::iterator IModuleIterator
std::vector< Arbitrator >::iterator ArbIterator
std::vector< Author >::iterator AuthorIterator
std::vector< ApplicationInterface >::iterator IApplicationIterator
std::vector< Connection >::iterator CnnIterator