+
+ class SALOMESDS_EXPORT DataScopeServer : public DataScopeServerBase, public virtual POA_SALOME::DataScopeServer
+ {
+ public:
+ DataScopeServer(const SALOME_CPythonHelper *pyHelper, CORBA::ORB_ptr orb, SALOME::DataScopeKiller_var killer, const std::string& scopeName);
+ DataScopeServer(const DataScopeServer& other);
+ SALOME::BasicDataServer_ptr retrieveVar(const char *varName) { return retrieveVarInternal(varName); }
+ SALOME::PickelizedPyObjRdOnlyServer_ptr createRdOnlyVar(const char *varName, const SALOME::ByteVec& constValue);
+ SALOME::PickelizedPyObjRdExtServer_ptr createRdExtVar(const char *varName, const SALOME::ByteVec& constValue);
+ SALOME::PickelizedPyObjRdWrServer_ptr createRdWrVar(const char *typeName, const char *varName);
+ ~DataScopeServer();
+ };
+
+ class SALOMESDS_EXPORT DataScopeServerTransaction : public DataScopeServerBase, public virtual POA_SALOME::DataScopeServerTransaction
+ {
+ public://not remotely callable
+ DataScopeServerTransaction(const SALOME_CPythonHelper *pyHelper, CORBA::ORB_ptr orb, SALOME::DataScopeKiller_var killer, const std::string& scopeName);
+ DataScopeServerTransaction(const DataScopeServerTransaction& other);
+ ~DataScopeServerTransaction();
+ void createRdOnlyVarInternal(const std::string& varName, const SALOME::ByteVec& constValue);
+ void createRdExtVarInternal(const std::string& varName, const SALOME::ByteVec& constValue);
+ void createRdExtVarFreeStyleInternal(const std::string& varName, const SALOME::ByteVec& constValue, std::string&& compareFuncContent, SALOME::AutoPyRef&& compareFunc);
+ void createRdExtInitVarInternal(const std::string& varName, const SALOME::ByteVec& constValue);
+ void createRdWrVarInternal(const std::string& varName, const SALOME::ByteVec& constValue);
+ PortableServer::POA_var getPOA4KeyWaiter() const { return _poa_for_key_waiter; }
+ void addWaitKey(KeyWaiter *kw);
+ void pingKey(PyObject *keyObj);
+ void notifyKey(const std::string& varName, PyObject *keyObj, PyObject *valueObj);
+ SALOME::ByteVec *waitForMonoThrRev(SALOME::KeyWaiter_ptr kw);
+ SALOME::ByteVec *waitForAndKill(SALOME::KeyWaiter_ptr kw);
+ public://remotely callable
+ char *getAccessOfVar(const char *varName);
+ void fetchAndGetAccessOfVar(const char *varName, CORBA::String_out access, SALOME::ByteVec_out data);
+ SALOME::Transaction_ptr createRdOnlyVarTransac(const char *varName, const SALOME::ByteVec& constValue);
+ SALOME::Transaction_ptr createRdExtVarTransac(const char *varName, const SALOME::ByteVec& constValue);
+ SALOME::Transaction_ptr createRdExtVarFreeStyleTransac(const char *varName, const SALOME::ByteVec& constValue, const char *compareFuncContent);
+ SALOME::Transaction_ptr createRdExtInitVarTransac(const char *varName, const SALOME::ByteVec& constValue);
+ SALOME::Transaction_ptr createRdWrVarTransac(const char *varName, const SALOME::ByteVec& constValue);
+ SALOME::Transaction_ptr addKeyValueInVarHard(const char *varName, const SALOME::ByteVec& key, const SALOME::ByteVec& value);
+ SALOME::Transaction_ptr addKeyValueInVarErrorIfAlreadyExisting(const char *varName, const SALOME::ByteVec& key, const SALOME::ByteVec& value);
+ SALOME::TransactionMultiKeyAddSession_ptr addMultiKeyValueSession(const char *varName);
+ SALOME::Transaction_ptr removeKeyInVarErrorIfNotAlreadyExisting(const char *varName, const SALOME::ByteVec& key);
+ SALOME::TransactionRdWrAccess_ptr createWorkingVarTransac(const char *varName, const SALOME::ByteVec& constValue);
+ SALOME::Transaction_ptr killVarTransac(const char *varName);
+ SALOME::KeyWaiter_ptr waitForKeyInVar(const char *varName, const SALOME::ByteVec& keyVal);
+ SALOME::KeyWaiter_ptr waitForKeyInVarAndKillIt(const char *varName, const SALOME::ByteVec& keyVal, SALOME::Transaction_out transac);
+ void atomicApply(const SALOME::ListOfTransaction& transactions);
+ SALOME::RequestSwitcher_ptr getRequestSwitcher();
+ private:
+ PortableServer::POA_var _poa_for_key_waiter;
+ std::list< KeyWaiter * > _waiting_keys;
+ AutoServantPtr<RequestSwitcher> _rs;
+ };