21 #ifndef __ANTARES_LIBS_STUDY_ACTION_HANDLER_ANTARES_CONSTRAINT_CREATE_H__
22 #define __ANTARES_LIBS_STUDY_ACTION_HANDLER_ANTARES_CONSTRAINT_CREATE_H__
24 #include <yuni/yuni.h>
25 #include <action/action.h>
27 namespace Antares::Action::AntaresStudy::Constraint
43 template<
class StringT>
44 explicit Create(
const StringT& areaname,
46 Data::BindingConstraint::Operator o);
50 template<
class StringT1,
class StringT2>
51 Create(
const StringT1& areaname,
52 const StringT2& targetname,
54 Data::BindingConstraint::Operator o);
65 virtual bool allowUpdate()
const;
74 Antares::Data::ConstraintName pOriginalConstraintName;
75 Antares::Data::ConstraintName pTargetConstraintName;
76 Antares::Data::ConstraintName pFuturConstraintName;
78 Antares::Data::BindingConstraint::Operator pOperator;
virtual void prepareSkipWL(Context &ctx)
Prepare the execution (when the behavior says that the action should be skipped)
Definition: create.cpp:37
virtual bool performWL(Context &ctx)
Perform the action.
Definition: create.cpp:162
virtual ~Create()
Destructor.
Definition: create.hxx:50
virtual bool prepareWL(Context &ctx)
Prepare the execution.
Definition: create.cpp:51
void createActionsForAStandardConstraintCopy(Context &ctx)
Create all standard actions for copy/pasting an area.
Definition: create.cpp:202
Create(const StringT &areaname, Data::BindingConstraint::Type t, Data::BindingConstraint::Operator o)
Default constructor.
Definition: create.hxx:27
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
Type
Definition: BindingConstraint.h:55