21 #ifndef __ANTARES_LIBS_STUDY_ACTION_HANDLER_ANTARES_AREA_CREATE_H__
22 #define __ANTARES_LIBS_STUDY_ACTION_HANDLER_ANTARES_AREA_CREATE_H__
24 #include <yuni/yuni.h>
25 #include <action/action.h>
27 namespace Antares::Action::AntaresStudy::Area
38 static IAction* StandardActionsToCopyThermalCluster(
const Data::AreaName& area,
39 const std::string& name);
47 explicit Create(
const AnyString& areaname);
51 Create(
const AnyString& areaname,
const AnyString& targetname);
62 virtual bool allowUpdate()
const;
71 Data::AreaName pOriginalAreaName;
72 Data::AreaName pTargetAreaName;
73 Data::AreaName pFuturAreaName;
virtual bool prepareWL(Context &ctx)
Prepare the execution.
Definition: create.cpp:73
Create(const AnyString &areaname)
Default constructor.
Definition: create.cpp:43
virtual bool performWL(Context &ctx)
Perform the action.
Definition: create.cpp:193
void createActionsForAStandardAreaCopy(Context &ctx, bool copyPosition=true)
Create all standard actions for copy/pasting an area.
Definition: create.cpp:227
virtual void prepareSkipWL(Context &ctx)
Prepare the execution (when the behavior says that the action should be skipped)
Definition: create.cpp:58
virtual ~Create()
Destructor.
Definition: create.cpp:54
AncestorType::Ptr Ptr
The most suitable smart ptr for the class.
Definition: action.h:41
AncestorType::ThreadingPolicy ThreadingPolicy
The threading policy.
Definition: action.h:43