X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Data.h;h=d07d24052e61211215b3452b5e046a1299f04af2;hb=cd9217d7e87997ec8bc150a6d8c389e742ca0f84;hp=3a414e1eaaea533d1894423663da6a23dbbc4148;hpb=3244e0f3d7e585ccfc3c37c56fbf5d6826055448;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Data.h b/src/ModelAPI/ModelAPI_Data.h index 3a414e1ea..d07d24052 100644 --- a/src/ModelAPI/ModelAPI_Data.h +++ b/src/ModelAPI/ModelAPI_Data.h @@ -2,8 +2,8 @@ // Created: 21 Mar 2014 // Author: Mikhail PONIKAROV -#ifndef ModelAPI_Data_HeaderFile -#define ModelAPI_Data_HeaderFile +#ifndef ModelAPI_Data_H_ +#define ModelAPI_Data_H_ #include "ModelAPI.h" #include @@ -28,7 +28,7 @@ class GeomAPI_Shape; class MODELAPI_EXPORT ModelAPI_Data { -public: + public: /// Returns the name of the feature visible by the user in the object browser virtual std::string name() = 0; @@ -55,13 +55,13 @@ public: /// Returns all attributes ofthe feature of the given type /// or all attributes if "theType" is empty virtual std::list > - attributes(const std::string& theType) = 0; + attributes(const std::string& theType) = 0; /// Identifier by the id (not fast, iteration by map) /// \param theAttr attribute already created in this data virtual const std::string& id(const boost::shared_ptr& theAttr) = 0; /// Returns true if data belongs to same features virtual bool isEqual(const boost::shared_ptr& theData) = 0; - /// Returns true if it is correctly connected t othe data model + /// Returns true if it is correctly connected to the data model virtual bool isValid() = 0; /// Initializes object by the attributes: must be called just after the object is created @@ -75,15 +75,17 @@ public: virtual void sendAttributeUpdated(ModelAPI_Attribute* theAttr) = 0; /// To virtually destroy the fields of successors - virtual ~ModelAPI_Data() {} + virtual ~ModelAPI_Data() + { + } -protected: + protected: /// Objects are created for features automatically ModelAPI_Data() - {} + { + } }; typedef boost::shared_ptr DataPtr; - #endif