X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultPart.h;h=7ebafd3ea0b22237d2b7e7ed10b3757a35fe0bc6;hb=baa32d4d231be0ed859fc32f1736afcbcfaa1f73;hp=26c19fc0cc708099e9aed96cc03da3e5ab1680b0;hpb=82f94d044ced40be786427ddee839e3c263fe277;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultPart.h b/src/Model/Model_ResultPart.h index 26c19fc0c..7ebafd3ea 100644 --- a/src/Model/Model_ResultPart.h +++ b/src/Model/Model_ResultPart.h @@ -1,14 +1,16 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: ModelAPI_ResultPart.hxx // Created: 07 Jul 2014 // Author: Mikhail PONIKAROV -#ifndef Model_ResultPart_HeaderFile -#define Model_ResultPart_HeaderFile +#ifndef Model_ResultPart_H_ +#define Model_ResultPart_H_ #include "Model.h" #include -/**\class ModelAPI_ResultPart +/**\class Model_ResultPart * \ingroup DataModel * \brief The Part document, result of a creation of new part feature. * @@ -17,17 +19,26 @@ */ class Model_ResultPart : public ModelAPI_ResultPart { -public: + public: /// Returns the part-document of this result - MODEL_EXPORT virtual boost::shared_ptr partDoc(); + MODEL_EXPORT virtual std::shared_ptr partDoc(); /// Part has no stored feature: this method returns NULL - MODEL_EXPORT virtual boost::shared_ptr owner(); + MODEL_EXPORT virtual std::shared_ptr owner(); + + /// Sets this document as current and if it is not loaded yet, loads it + MODEL_EXPORT virtual void activate(); protected: /// makes a result on a temporary feature (an action) Model_ResultPart(); - friend class Model_Document; + /// Sets the data manager of an object (document does), here also attributes are initialized + virtual void setData(std::shared_ptr theData); + + /// Returns true if document is activated (loaded into the memory) + virtual bool isActivated(); + + friend class Model_Objects; }; #endif