X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FSALOMESDS%2FSALOMESDS_PickelizedPyObjRdExtInitServer.hxx;h=d9e4213e269c6ac4b3674c364678838b8e2f1610;hb=2252fa5809de4580de842bf8bfdc36f1644c36ae;hp=5845c7aca1a99400116cc88170e743cd768deba8;hpb=718e0abe0126e5e53b3ba41fff1028efcf5bc887;p=modules%2Fkernel.git diff --git a/src/SALOMESDS/SALOMESDS_PickelizedPyObjRdExtInitServer.hxx b/src/SALOMESDS/SALOMESDS_PickelizedPyObjRdExtInitServer.hxx index 5845c7aca..d9e4213e2 100644 --- a/src/SALOMESDS/SALOMESDS_PickelizedPyObjRdExtInitServer.hxx +++ b/src/SALOMESDS/SALOMESDS_PickelizedPyObjRdExtInitServer.hxx @@ -27,9 +27,12 @@ #include #include "SALOMESDS_PickelizedPyObjServer.hxx" +#include "SALOMESDS_Sha1Keeper.hxx" namespace SALOMESDS { + class PickelizedPyObjRdExtServer; + /*! * State during the producer/consumer phase. Activated by TransactionMultiKeyAddSession transaction returned by dss.addMultiKeyValueSession. */ @@ -39,6 +42,7 @@ namespace SALOMESDS PickelizedPyObjRdExtInitServer(DataScopeServerBase *father, const std::string& varName, const SALOME::ByteVec& value); PickelizedPyObjRdExtInitServer(DataScopeServerBase *father, const std::string& varName, PyObject *obj); ~PickelizedPyObjRdExtInitServer(); + virtual PickelizedPyObjRdExtServer *buildStdInstanceFrom(const std::string& varName); public: std::string getAccessStr() const; SALOME::ByteVec *fetchSerializedContent(); @@ -54,6 +58,13 @@ namespace SALOMESDS public: static const char ACCESS_REPR[]; }; + + class PickelizedPyObjRdExtInitFreeStyleServer : public PickelizedPyObjRdExtInitServer, public Sha1Keeper + { + public: + PickelizedPyObjRdExtInitFreeStyleServer(DataScopeServerBase *father, const std::string& varName, PyObject *obj, std::vector&& sha1):PickelizedPyObjRdExtInitServer(father,varName,obj),Sha1Keeper(std::move(sha1)) { } + PickelizedPyObjRdExtServer *buildStdInstanceFrom(const std::string& varName) override; + }; } #endif