X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Data.h;h=01b66978090198dfd92624ff87ca61e941e795de;hb=2f89053146098946372bae4d1a3fe2e5272ab9e2;hp=1d82ad14be9a89ccb4619adf152f3f955142b01e;hpb=4783f146b71a48c651523fcf0e12367bcf3d1fa8;p=modules%2Fshaper.git diff --git a/src/Model/Model_Data.h b/src/Model/Model_Data.h index 1d82ad14b..01b669780 100644 --- a/src/Model/Model_Data.h +++ b/src/Model/Model_Data.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: Model_Data.hxx // Created: 21 Mar 2014 // Author: Mikhail PONIKAROV @@ -140,14 +142,17 @@ class Model_Data : public ModelAPI_Data myObject = theObject; } + /// Erases all the data from the data model MODEL_EXPORT virtual void erase(); - /// Makes feature must be updated later (on rebuild). Normally the Updater must call it - /// in case of not-automatic update to true - MODEL_EXPORT virtual void mustBeUpdated(const bool theFlag); + /// Stores the state of the object to execute it later accordingly + MODEL_EXPORT virtual void execState(const ModelAPI_ExecState theState); + + /// Returns the state of the latest execution of the feature + MODEL_EXPORT virtual ModelAPI_ExecState execState(); - /// Returns true if feature must be updated (re-executed) on rebuild - MODEL_EXPORT virtual bool mustBeUpdated(); + /// Registers error during the execution, causes the ExecutionFailed state + MODEL_EXPORT virtual void setError(const std::string& theError); /// Returns the identifier of feature-owner, unique in this document MODEL_EXPORT virtual int featureId() const;