A Package subclass that bundles all resources in a self contained directory structure, suitable for transport.
#include <include/delphyne/utility/package.h>
◆ BundledPackage()
Associates instance with the given path
.
Given path
need not exist at construction time.
◆ Add() [1/2]
void Add |
( |
const ignition::common::URI & |
uri | ) |
|
Adds local resource referred by uri
.
- Parameters
-
[in] | uri | Identifier of the resource to be added. |
- Exceptions
-
std::runtime_error | if given uri is not valid (i.e. uri.Valid() is false). |
std::runtime_error | if the resource is not local. Only file and package schemes are currently supported. |
std::runtime_error | if the resource or any of its dependencies could not be found in the current package. See PackageManager and ResourceInspector singletons. |
◆ Add() [2/2]
void Add |
( |
const std::string & |
uri_or_path | ) |
|
Adds local resource referred by uri_or_path
.
- See also
- Add(const ignition::common::URI&, const std::string&)
◆ DELPHYNE_NO_COPY_NO_MOVE_NO_ASSIGN()
The documentation for this class was generated from the following files: