X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Constraint.h;h=dc4a228cbc80aa1dbe7f5917ced4dd3c9a0fee4d;hb=3b741a32c4706a6a78906aa6b12ef85628277037;hp=01fbe230fbcdec6951020ed800177b9399367443;hpb=a85c123c5bc7c48588a5cd648110d66ae1544f8c;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Constraint.h b/src/SketchPlugin/SketchPlugin_Constraint.h index 01fbe230f..dc4a228cb 100644 --- a/src/SketchPlugin/SketchPlugin_Constraint.h +++ b/src/SketchPlugin/SketchPlugin_Constraint.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> + // File: SketchPlugin_Constraint.h // Created: 08 May 2014 // Author: Artem ZHIDKOV @@ -16,9 +18,9 @@ const unsigned int CONSTRAINT_ATTR_SIZE = 4; * \brief Abstract interface to the SketchPlugin_ConstraintBase * For more info see: SketchPlugin_ConstraintBase.h */ -class SketchPlugin_Constraint: public SketchPlugin_Feature +class SketchPlugin_Constraint : public SketchPlugin_Feature { -public: + public: /// The value parameter for the constraint inline static const std::string& VALUE() { @@ -57,21 +59,29 @@ public: } /// List of constraint attributes - inline static const std::string& ATTRIBUTE(const int theNumber) { + inline static const std::string& ATTRIBUTE(const int theNumber) + { switch (theNumber) { - case 0: return ENTITY_A(); - case 1: return ENTITY_B(); - case 2: return ENTITY_C(); - case 3: return ENTITY_D(); - default: break; + case 0: + return ENTITY_A(); + case 1: + return ENTITY_B(); + case 2: + return ENTITY_C(); + case 3: + return ENTITY_D(); + default: + break; } static const std::string EMPTY_STRING(""); return EMPTY_STRING; } -protected: + protected: /// \brief Use plugin manager for features creation - SketchPlugin_Constraint() {} + SketchPlugin_Constraint(); }; +typedef std::shared_ptr ConstraintPtr; + #endif