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

#include <yarp/manager/primresource.h>

+ Inheritance diagram for yarp::manager::Storage:

Public Member Functions

 Storage ()
 Class Storage. More...
 
 Storage (const char *szName)
 
virtual ~Storage ()
 
Nodeclone () override
 
bool satisfy (GenericResource *resource) override
 
void setTotalSpace (Capacity c)
 
Capacity getTotalSpace ()
 
void setFreeSpace (Capacity c)
 
Capacity getFreeSpace ()
 
- 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

Definition at line 52 of file primresource.h.

Constructor & Destructor Documentation

◆ Storage() [1/2]

Storage::Storage ( )

Class Storage.

Definition at line 60 of file primresource.cpp.

◆ Storage() [2/2]

Storage::Storage ( const char *  szName)

Definition at line 67 of file primresource.cpp.

◆ ~Storage()

Storage::~Storage ( )
virtualdefault

Member Function Documentation

◆ clone()

Node * Storage::clone ( )
overridevirtual

Implements yarp::manager::Node.

Definition at line 86 of file primresource.cpp.

◆ getFreeSpace()

Capacity yarp::manager::Storage::getFreeSpace ( )
inline

Definition at line 63 of file primresource.h.

◆ getTotalSpace()

Capacity yarp::manager::Storage::getTotalSpace ( )
inline

Definition at line 61 of file primresource.h.

◆ satisfy()

bool Storage::satisfy ( GenericResource resource)
overridevirtual

Implements yarp::manager::GenericResource.

Definition at line 74 of file primresource.cpp.

◆ setFreeSpace()

void yarp::manager::Storage::setFreeSpace ( Capacity  c)
inline

Definition at line 62 of file primresource.h.

◆ setTotalSpace()

void yarp::manager::Storage::setTotalSpace ( Capacity  c)
inline

Definition at line 60 of file primresource.h.


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