delphyne
|
A class for resource representation.
#include <include/delphyne/utility/resources/resources.h>
Public Member Functions | |
DELPHYNE_NO_COPY_NO_MOVE_NO_ASSIGN (Resource) | |
Resource (const ignition::common::URI &uri) | |
Constructs a resource associated with the given uri . More... | |
virtual | ~Resource ()=default |
Default destructor. More... | |
const ignition::common::URI & | Uri () const |
Returns this resource URI. More... | |
std::string | Path () const |
Returns this resource path in the local file system. More... | |
virtual std::vector< ignition::common::URI > | GetDependencies () const =0 |
Retrieves the list of resources that this resource depends on. More... | |
|
explicit |
Constructs a resource associated with the given uri
.
|
virtualdefault |
Default destructor.
DELPHYNE_NO_COPY_NO_MOVE_NO_ASSIGN | ( | Resource | ) |
|
pure virtual |
Retrieves the list of resources that this resource depends on.
Implemented in GenericResource.
std::string Path | ( | ) | const |
Returns this resource path in the local file system.
std::runtime_error | if resolving URI against current Package fails (see PackageManager class documentation). |
std::runtime_error | if the resource is not local. |
const ignition::common::URI& Uri | ( | ) | const |
Returns this resource URI.