YARP
Yet Another Robot Platform
yarp::manager::MultiResource Class Reference

Class MultiResource. More...

#include <yarp/manager/resource.h>

+ Inheritance diagram for yarp::manager::MultiResource:

Public Member Functions

 MultiResource ()
 Class MultiResource. More...
 
 MultiResource (const char *szName)
 
 MultiResource (const MultiResource &rhs)
 
MultiResourceoperator= (const MultiResource &rhs)
 
 ~MultiResource () override
 
Nodeclone () override
 
bool satisfy (GenericResource *resource) override
 
int resourceCount () const
 
GenericResourcegetResourceAt (int index) const
 
bool addResource (GenericResource &res)
 
void clear ()
 
- Public Member Functions inherited from yarp::manager::GenericResource
 GenericResource (const char *szTypeName)
 Class GenericResource. More...
 
 ~GenericResource () override
 
void setAvailability (bool flag)
 
bool getAvailability ()
 
void setDisable (bool flag)
 
bool getDisable ()
 
void setName (const char *szName)
 
const char * getName ()
 
void setDescription (const char *szDesc)
 
const char * getDescription ()
 
const char * getTypeName ()
 
void setOwner (Node *owner)
 
Nodeowner ()
 
void setXmlFile (const char *szFilename)
 
const char * getXmlFile ()
 
bool operator== (const GenericResource &res) const
 
- Public Member Functions inherited from yarp::manager::Node
 Node (NodeType _type)
 
 Node (NodeType _type, const char *szLabel)
 
virtual ~Node ()
 
void setSatisfied (bool sat)
 
bool isSatisfied ()
 
void setVisited (bool vis)
 
bool isVisited ()
 
bool isLeaf ()
 
NodeType getType ()
 
void setLabel (const char *szLabel)
 
const char * getLabel ()
 
int sucCount ()
 
LinkgetLinkAt (int index)
 
bool addSuc (Node *node, float weight, bool _virtual=false)
 class Node More...
 
bool removeSuc (Node *node)
 
void removeAllSuc ()
 
bool hasSuc (Node *node)
 
GraphicModelgetModel ()
 
void setModel (GraphicModel *mdl)
 

Detailed Description

Class MultiResource.

Definition at line 70 of file resource.h.

Constructor & Destructor Documentation

◆ MultiResource() [1/3]

MultiResource::MultiResource ( )

Class MultiResource.

Definition at line 35 of file resource.cpp.

◆ MultiResource() [2/3]

MultiResource::MultiResource ( const char *  szName)

Definition at line 40 of file resource.cpp.

◆ MultiResource() [3/3]

MultiResource::MultiResource ( const MultiResource rhs)

Definition at line 46 of file resource.cpp.

◆ ~MultiResource()

MultiResource::~MultiResource ( )
override

Definition at line 101 of file resource.cpp.

Member Function Documentation

◆ addResource()

bool MultiResource::addResource ( GenericResource res)

Definition at line 60 of file resource.cpp.

◆ clear()

void MultiResource::clear ( )

Definition at line 90 of file resource.cpp.

◆ clone()

Node * MultiResource::clone ( )
overridevirtual

Implements yarp::manager::Node.

Definition at line 76 of file resource.cpp.

◆ getResourceAt()

GenericResource& yarp::manager::MultiResource::getResourceAt ( int  index) const
inline

Definition at line 82 of file resource.h.

◆ operator=()

MultiResource & MultiResource::operator= ( const MultiResource rhs)

Definition at line 52 of file resource.cpp.

◆ resourceCount()

int yarp::manager::MultiResource::resourceCount ( ) const
inline

Definition at line 81 of file resource.h.

◆ satisfy()

bool MultiResource::satisfy ( GenericResource resource)
overridevirtual

Implements yarp::manager::GenericResource.

Definition at line 67 of file resource.cpp.


The documentation for this class was generated from the following files: