|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_MANAGER_APPLICATION
10 #define YARP_MANAGER_APPLICATION
33 Portmap(
const char* szOld,
const char* szNew) {
34 if(szOld) { strOld = szOld; }
35 if(szNew) { strNew = szNew; }
38 const char*
oldPort() {
return strOld.c_str(); }
39 const char*
newPort() {
return strNew.c_str(); }
41 return ((strOld == alt.strOld) && (strNew == alt.strNew));
63 Connection(
const char* szFrom,
const char* szTo,
const char* szCr=
nullptr) {
64 if(szFrom) { strFrom = szFrom; }
65 if(szTo) { strTo = szTo; }
66 if(szCr) { strCarrier = szCr; }
67 bWithPriority =
false;
69 bExternalFrom =
false;
79 const char*
from() {
return strFrom.c_str();}
80 const char*
to() {
return strTo.c_str();}
81 const char*
carrier() {
return strCarrier.c_str(); }
82 const char*
qosFrom() {
return strQosFrom.c_str(); }
83 const char*
qosTo() {
return strQosTo.c_str(); }
84 void setFrom(
const char* szFrom) {
if(szFrom) { strFrom = szFrom; } }
85 void setTo(
const char* szTo) {
if(szTo) { strTo = szTo; } }
86 void setCarrier(
const char* szCr) {
if(szCr) { strCarrier = szCr; } }
94 void setQosFrom(
const char* szQos) {
if(szQos) { strQosFrom = szQos; } }
95 void setQosTo(
const char* szQos) {
if(szQos) { strQosTo = szQos; } }
101 void setId(
const char*
id) {
if(
id) { strId = id; } }
102 const char*
getId() {
return strId.c_str(); }
126 return ((strFrom == alt.strFrom) && (strTo == alt.strTo));
139 std::string strCarrier;
140 std::string strQosFrom;
141 std::string strQosTo;
168 if(szName) { strName = szName; }
170 waitStart = waitStop = 0.0;
177 void setHost(
const char* szHost) {
if(szHost) { strHost = szHost; } }
178 void setParam(
const char* szParam) {
if(szParam) { strParam = szParam; } }
180 void setWorkDir(
const char* szWDir) {
if(szWDir) { strWorkDir = szWDir; } }
181 void setStdio(
const char* szStdio) {
if(szStdio) { strStdio = szStdio; } }
182 void setBroker(
const char* szBroker) {
if(szBroker) { strBroker = szBroker; } }
183 void setPrefix(
const char* szPrefix) {
if(szPrefix) { strPrefix = szPrefix; } }
185 void setTag(
const char* szTag) {
if(szTag) { strTag = szTag; } }
186 void setDisplay(
const char* szDisplay) {
if(szDisplay) { strDisplay = szDisplay; } }
188 const char*
getName() {
return strName.c_str(); }
189 const char*
getHost() {
return strHost.c_str(); }
190 const char*
getParam() {
return strParam.c_str(); }
193 const char*
getStdio() {
return strStdio.c_str(); }
197 const char*
getTag() {
return strTag.c_str(); }
201 return (strName == modint.strName);
231 std::string strParam;
232 std::string strWorkDir;
233 std::string strStdio;
234 std::string strBroker;
235 std::string strPrefix;
236 std::string strEnvironment;
237 std::string strDisplay;
260 if(szName) { strName = szName; }
263 void setPrefix(
const char* szPrefix) {
if(szPrefix) { strPrefix = szPrefix; } }
264 const char*
getName() {
return strName.c_str(); }
267 return (strName == alt.strName);
281 std::string strPrefix;
304 void setVersion(
const char* szVersion) {
if(szVersion) { strVersion = szVersion; } }
305 void setDescription(
const char* szDesc) {
if(szDesc) { strDescription = szDesc; } }
306 const char*
getName() {
return strName.c_str(); }
334 void setPrefix(
const char* szPrefix) {
if(szPrefix) { strPrefix = szPrefix; } }
336 void setBasePrefix(
const char* szPrefix) {
if(szPrefix) { strBasePrefix = szPrefix; } }
340 void setXmlFile(
const char* szFilename) {
if(szFilename) { strXmlFile = szFilename;} }
359 return (strName == app.strName);
365 strDescription.clear();
367 strBasePrefix.clear();
372 Iapplications.clear();
386 std::string strVersion;
387 std::string strDescription;
394 std::string strPrefix;
395 std::string strBasePrefix;
396 std::string strXmlFile;
416 #endif // __YARP_MANAGER_APPLICATION__
std::vector< Application * > ApplicaitonPContainer
virtual ~ModuleInterface()=default
GraphicModel & getModelBase()
void setPostStopWait(double t)
GraphicModel & getModelBase()
void setParam(const char *szParam)
virtual ~Connection()=default
Connection & addConnection(Connection &cnn)
virtual ~Portmap()=default
void setFrom(const char *szFrom)
void setCorInputData(InputData *in)
void setTag(const char *szTag)
void setPrefix(const char *szPrefix)
void setEnvironment(const char *szEnv)
void setModelBase(GraphicModel &mdl)
std::vector< Connection > CnnContainer
void setToExists(bool exists)
bool removeArbitrator(Arbitrator &arb)
const char * getBasePrefix()
bool addPortmap(Portmap &portmap)
Author & getAuthorAt(int index)
std::vector< Application * >::iterator ApplicationPIterator
void setName(const char *szName)
ModuleInterface & getImoduleAt(int index)
ResYarpPort & getResourceAt(int index)
std::vector< Portmap >::iterator PortmapIterator
ApplicationInterface(const char *szName)
OutputData * getCorOutputData()
Portmap(const char *szOld, const char *szNew)
std::vector< Arbitrator > ArbContainer
void setBroker(const char *szBroker)
void setPersistent(bool per)
Connection & getConnectionAt(int index)
std::vector< ApplicationInterface >::iterator IApplicationIterator
void setModelBase(GraphicModel &mdl)
void setXmlFile(const char *szFilename)
std::vector< Connection >::iterator CnnIterator
void setOwner(Node *owner)
GraphicModel & getModelBase()
GraphicModel & getModelBase()
Arbitrator & getArbitratorAt(int index)
bool operator==(const ApplicationInterface &alt) const
const char * getDisplay()
std::vector< ApplicationInterface > IApplicationContainer
ApplicationInterface & getIapplicationAt(int index)
std::vector< Author > AuthorContainer
void setFromExternal(bool ext)
void setQosFrom(const char *szQos)
Connection(const char *szFrom, const char *szTo, const char *szCr=nullptr)
std::vector< Arbitrator >::iterator ArbIterator
std::vector< ResYarpPort > ResourceContainer
void setDisplay(const char *szDisplay)
const char * getWorkDir()
bool removePortmap(Portmap &portmap)
void setModel(GraphicModel *mdl)
void setPrefix(const char *szPrefix)
bool removeAuthor(Author &author)
Class ApplicationInterface.
const char * getDescription()
std::map< std::string, int > modList
void setTo(const char *szTo)
std::vector< Portmap > PortmapContainer
InputData * getCorInputData()
bool operator==(const Application &app) const
Arbitrator & addArbitrator(Arbitrator &arb)
bool removeImodule(ModuleInterface &imod)
void setPostExecWait(double t)
void setId(const char *id)
void setBasePrefix(const char *szPrefix)
bool addImodule(ModuleInterface &imod)
void setWorkDir(const char *szWDir)
void setPrefix(const char *szPrefix)
bool getFromExists() const
bool removeConnection(Connection &cnn)
Portmap & getPortmapAt(int index)
void setVersion(const char *szVersion)
ModuleInterface(const char *szName)
bool removeIapplication(ApplicationInterface &iapp)
void removeAllIapplications()
void setPriority(bool withprio)
GraphicModel * getModel()
std::vector< ModuleInterface >::iterator IModuleIterator
bool removeResource(ResYarpPort &res)
void addAuthor(Author &author)
void setModelBase(GraphicModel &mdl)
The main, catch-all namespace for YARP.
std::vector< ModuleInterface > IModuleContainer
void setHost(const char *szHost)
bool addResource(ResYarpPort &res)
bool addIapplication(ApplicationInterface &iapp)
void setCorOutputData(OutputData *out)
void addResource(ResYarpPort &res)
const char * getVersion()
bool operator==(const Connection &alt) const
bool operator==(const ModuleInterface &modint) const
ResourceContainer & getResources()
void setStdio(const char *szStdio)
void setDescription(const char *szDesc)
void setQosTo(const char *szQos)
void setOwner(Node *owner)
bool operator==(const Portmap &alt) const
const char * getXmlFile()
void setCarrier(const char *szCr)
std::vector< ResYarpPort >::iterator ResourceIterator
const char * getEnvironment()
void setModelBase(GraphicModel &mdl)
virtual ~ApplicationInterface()=default
void setToExternal(bool ext)
Application()
Class Application.
void setFromExists(bool exists)