|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_MANAGER_RESOURCE
10 #define YARP_MANAGER_RESOURCE
31 void setName(
const char* szName) {
if(szName) { strName = szName; } }
32 const char*
getName() {
return strName.c_str(); }
33 void setDescription(
const char* szDesc) {
if(szDesc) { strDescription = szDesc; } }
39 void setXmlFile(
const char* szFilename) {
if(szFilename) { strXmlFile = szFilename; } }
46 return (strName == res.strName);
55 std::string strTypeName;
56 std::string strDescription;
58 std::string strXmlFile;
97 #endif // __YARP_MANAGER_RESOURCE__
void setDisable(bool flag)
int resourceCount() const
void setAvailability(bool flag)
GenericResource & getResourceAt(int index) const
~GenericResource() override
const char * getDescription()
MultiResource()
Class MultiResource.
std::vector< GenericResource * > ResourcePContainer
MultiResource & operator=(const MultiResource &rhs)
void setXmlFile(const char *szFilename)
void setDescription(const char *szDesc)
virtual bool satisfy(GenericResource *resource)=0
~MultiResource() override
const char * getXmlFile()
bool operator==(const GenericResource &res) const
void setOwner(Node *owner)
GenericResource(const char *szTypeName)
Class GenericResource.
std::vector< GenericResource * >::iterator ResourcePIterator
The main, catch-all namespace for YARP.
bool satisfy(GenericResource *resource) override
bool addResource(GenericResource &res)
const char * getTypeName()
void setName(const char *szName)