47 typedef std::map<std::string, std::string>
IceEnvMap;
56 class Scenario :
public std::enable_shared_from_this<Scenario>
60 std::string creationTime;
61 std::string lastChangedTime;
62 std::string globalConfigName;
63 std::string subfolder;
65 std::weak_ptr<Package> package;
79 const std::string& creationTime,
80 const std::string& lastChangedTime,
82 const std::string& globalConfigName =
"./config/global.cfg",
83 const std::string& subfolder =
"");
159 void save(
bool saveApplications =
true);
Class containing data about a scenario and its applications.
bool allApplicationsFound()
std::string getSubfolder()
std::string getLastChangedTime()
ApplicationInstancePtr getApplicationByName(const std::string &name)
Scenario(const std::string &name, const std::string &creationTime, const std::string &lastChangedTime, const PackagePtr &package, const std::string &globalConfigName="./config/global.cfg", const std::string &subfolder="")
Constructor that sets some base information about the scenario.
void removeApplication(const ApplicationInstancePtr &application)
Removes an Application from this scenario.
void setNodeName(const std::string &value)
bool isGlobalConfigFileexistent()
std::string getGlobalConfigName()
bool isGlobalConfigWritable()
bool isScenarioFileWriteable()
void makeLocalGlobalConfig()
std::vector< std::string > getAllDeploymendNodeNames()
std::string getGlobalConfigPath()
void setStatusWriteBlock(bool state)
void setLastChangedTime(std::string time)
Sets the last-changed-time to now.
bool getStatusWriteBlock()
void save(bool saveApplications=true)
void addApplication(const ApplicationInstancePtr &application)
Adds an Application to this scenario.
void setName(std::string name)
void reloadAppInstances()
ApplicationInstanceVectorPtr getApplications()
void setGlobalConfigName(std::string name)
std::string getNodeName() const
std::string getCreationTime()
SCENARIO_H.
armarx::PropertyDefinitionsPtr getGlobalConfig()
std::shared_ptr< Scenario > ScenarioPtr
std::shared_ptr< std::vector< ScenarioPtr > > ScenarioVectorPtr
std::weak_ptr< Scenario > ScenarioWPtr
std::shared_ptr< Package > PackagePtr
std::shared_ptr< ApplicationInstance > ApplicationInstancePtr
std::shared_ptr< std::vector< ApplicationInstancePtr > > ApplicationInstanceVectorPtr
std::map< std::string, std::string > IceEnvMap
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.