|
|
Class containing data about a package, its scenarios and its applications. Provides methods to get and set the data contained in the package. It is only representative and doesn't actually manage the package. More...
#include <ArmarXCore/util/ScenarioManagerCommon/data_structure/Package.h>
Public Member Functions | |
| void | addApplication (ApplicationPtr application) |
| Adds an Application to this package. More... | |
| void | addScenario (ScenarioPtr scenario) |
| Adds a Scenario to this package. More... | |
| ApplicationPtr | getApplicationByName (std::string name) |
| Returns an Application contained in this package that has the given name. More... | |
| ApplicationVectorPtr | getApplications () |
| std::string | getName () |
| std::string | getPath () |
| ScenarioPtr | getScenarioByName (std::string name) |
| Returns a Scenario contained in this package that has the given name. More... | |
| std::string | getScenarioPath () |
| ScenarioVectorPtr | getScenarios () |
| bool | isScenarioPathWritable () |
| Package (const Package &other) | |
| Constructor that creates a light copy of the given Package, only name and path get copied. More... | |
| Package (std::string name, std::string path, std::string scenarioPath) | |
| Constructor that sets the name and the path of the package. More... | |
| void | removeScenario (ScenarioPtr scenario) |
Class containing data about a package, its scenarios and its applications. Provides methods to get and set the data contained in the package. It is only representative and doesn't actually manage the package.
| Package | ( | std::string | name, |
| std::string | path, | ||
| std::string | scenarioPath | ||
| ) |
Constructor that sets the name and the path of the package.
| name | name of the package |
| path | path to the root of the package |
Definition at line 36 of file Package.cpp.
Constructor that creates a light copy of the given Package, only name and path get copied.
| other | Package to copy |
Definition at line 45 of file Package.cpp.
| void addApplication | ( | Data_Structure::ApplicationPtr | application | ) |
Adds an Application to this package.
| application | Application to be added |
Definition at line 131 of file Package.cpp.
| void addScenario | ( | Data_Structure::ScenarioPtr | scenario | ) |
Adds a Scenario to this package.
| scenario | Scenario to be added |
Definition at line 111 of file Package.cpp.
| Data_Structure::ApplicationPtr getApplicationByName | ( | std::string | name | ) |
Returns an Application contained in this package that has the given name.
| name | name of the application |
Definition at line 151 of file Package.cpp.
| Data_Structure::ApplicationVectorPtr getApplications | ( | ) |
Definition at line 105 of file Package.cpp.
| std::string getName | ( | ) |
Definition at line 51 of file Package.cpp.
| std::string getPath | ( | ) |
Definition at line 57 of file Package.cpp.
| Data_Structure::ScenarioPtr getScenarioByName | ( | std::string | name | ) |
Returns a Scenario contained in this package that has the given name.
| name | name of the scenario |
Definition at line 137 of file Package.cpp.
| std::string getScenarioPath | ( | ) |
Definition at line 63 of file Package.cpp.
| Data_Structure::ScenarioVectorPtr getScenarios | ( | ) |
Definition at line 99 of file Package.cpp.
| bool isScenarioPathWritable | ( | ) |
Definition at line 69 of file Package.cpp.
| void removeScenario | ( | Data_Structure::ScenarioPtr | scenario | ) |
Definition at line 117 of file Package.cpp.