X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_FeatureStore.h;h=2d09b68acb0b364b72a5bb783003a7f98f7017d6;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=d6d92d91d624b139944e42e1d5993284ba1dffe6;hpb=ffbbcb80f7499ee530fddcc84548ca4a5dd53b49;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_FeatureStore.h b/src/ModelHighAPI/ModelHighAPI_FeatureStore.h index d6d92d91d..2d09b68ac 100644 --- a/src/ModelHighAPI/ModelHighAPI_FeatureStore.h +++ b/src/ModelHighAPI/ModelHighAPI_FeatureStore.h @@ -1,8 +1,21 @@ -// Copyright (C) 2016-20xx CEA/DEN, EDF R&D --> - -// File: ModelHighAPI_FeatureStore.h -// Created: 12 August 2016 -// Author: Mikhail PONIKAROV +// Copyright (C) 2014-2024 CEA, EDF +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #ifndef ModelHighAPI_FeatureStore_H_ #define ModelHighAPI_FeatureStore_H_ @@ -12,14 +25,15 @@ #include #include #include +#include -class ModelAPI_Feature; +class ModelAPI_Object; class ModelAPI_Data; class GeomAPI_Shape; class ModelAPI_Attribute; -typedef std::shared_ptr FeaturePtr; -typedef std::shared_ptr AttributePtr; +typedef std::shared_ptr ObjectPtr; +typedef std::shared_ptr AttributePtr; /**\class ModelHighAPI_FeatureStore * \ingroup CPPHighAPI @@ -34,17 +48,17 @@ public: // unused constructor for the map container needs ModelHighAPI_FeatureStore() {} // constructor that initializes this object by feature to store - ModelHighAPI_FeatureStore(FeaturePtr theFeature); + ModelHighAPI_FeatureStore(ObjectPtr theObject); // compares the stored feature information with the given feature - std::string compare(FeaturePtr theFeature); + std::string compare(ObjectPtr theObject); private: /// stores the information about all attributes of data in map - void storeData(std::shared_ptr theData, + void storeData(std::shared_ptr theData, std::map& theAttrs); /// compares the information about all attributes of data with map /// returns not empty string with error if something is different - std::string compareData(std::shared_ptr theData, + std::string compareData(std::shared_ptr theData, std::map& theAttrs); /// dumps the attribute content to the string std::string dumpAttr(const AttributePtr& theAttr);