A simple generic Resource implementation, providing introspection through heavy regex usage.
#include <include/delphyne/utility/resources/resources.h>
◆ GenericResource()
GenericResource |
( |
const ignition::common::URI & |
uri, |
|
|
const std::regex & |
dependency_pattern |
|
) |
| |
|
explicit |
Constructs generic presentation.
- Parameters
-
uri | Identifier associated with the resource. |
dependency_pattern | Regular expression to extract the resource URIs this resource depends on and lists within itself. |
◆ DELPHYNE_NO_COPY_NO_MOVE_NO_ASSIGN()
◆ GetDependencies()
std::vector< ignition::common::URI > GetDependencies |
( |
| ) |
const |
|
overridevirtual |
Retrieves the list of resources that this resource depends on.
- Returns
- The URIs of the dependencies, if any.
Implements Resource.
The documentation for this class was generated from the following files: