#include <SALOMESDS_PickelizedPyObjRdOnlyServer.hxx>
Public Member Functions | |
PickelizedPyObjRdOnlyServer (DataScopeServerBase *father, const std::string &varName, const SALOME::ByteVec &value) | |
PickelizedPyObjRdOnlyServer (DataScopeServerBase *father, const std::string &varName, PyObject *obj) | |
~PickelizedPyObjRdOnlyServer () | |
void | addKeyValueErrorIfAlreadyExisting (PyObject *key, PyObject *value) |
std::string | getAccessStr () const |
void | setSerializedContent (const SALOME::ByteVec &newValue) |
SALOME::ByteVec * | fetchSerializedContent () |
Called remotely -> to protect against throw. More... | |
bool | isDict () |
void | checkKeyNotAlreadyPresent (PyObject *key) |
void | checkKeyPresent (PyObject *key) |
PyObject * | getPyObj () const |
virtual void | addKeyValueHard (PyObject *key, PyObject *value) |
virtual void | removeKeyInVarErrorIfNotAlreadyExisting (PyObject *key) |
PyObject * | getPyObjFromPickled (const std::string &pickledData) |
New reference returned. More... | |
PyObject * | getPyObjFromPickled (const std::vector< unsigned char > &pickledData) |
New reference returned. More... | |
std::string | pickelize (PyObject *obj) |
obj is consumed by this method. More... | |
void | setNewPyObj (PyObject *obj) |
obj is consumed by this method. More... | |
void | setSerializedContentInternal (const SALOME::ByteVec &newValue) |
SALOME::DataScopeServer_ptr | getMyDataScopeServer () |
char * | getVarName () |
Called remotely -> to protect against throw. More... | |
char * | getScopeName () |
void | Register () |
void | UnRegister () |
void | Destroy () |
CORBA::Long | getRCValue () |
DataScopeServerBase * | getFather () const |
std::string | getVarNameCpp () const |
void | incrRef () const |
bool | decrRef () const |
int | getCounter () const |
CORBA::Object_var | activate () |
void | enforcedRelease () |
Static Public Member Functions | |
static void | FromByteSeqToCpp (const SALOME::ByteVec &bsToBeConv, std::string &ret) |
static void | FromCppToByteSeq (const std::string &strToBeConv, SALOME::ByteVec &ret) |
static SALOME::ByteVec * | FromCppToByteSeq (const std::string &strToBeConv) |
static PyObject * | GetPyObjFromPickled (const std::string &pickledData, DataScopeServerBase *dsb) |
New reference returned. More... | |
static PyObject * | GetPyObjFromPickled (const std::vector< unsigned char > &pickledData, DataScopeServerBase *dsb) |
New reference returned. More... | |
static std::string | Pickelize (PyObject *obj, DataScopeServerBase *dsb) |
obj is consumed by this method. More... | |
static PyObject * | CreateDftObjFromType (PyObject *globals, const std::string &typeName) |
Static Public Attributes | |
static const char | ACCESS_REPR [] ="RdOnly" |
Protected Member Functions | |
PortableServer::POA_var | getPOA () const |
Protected Attributes | |
PyObject * | _self |
PortableServer::POA_var | _poa |
DataScopeServerBase * | _father |
Static Protected Attributes | |
static const char | FAKE_VAR_NAME_FOR_WORK [] |
PickelizedPyObjRdOnlyServer::PickelizedPyObjRdOnlyServer | ( | DataScopeServerBase * | father, |
const std::string & | varName, | ||
const SALOME::ByteVec & | value | ||
) |
PickelizedPyObjRdOnlyServer::PickelizedPyObjRdOnlyServer | ( | DataScopeServerBase * | father, |
const std::string & | varName, | ||
PyObject * | obj | ||
) |
PickelizedPyObjRdOnlyServer::~PickelizedPyObjRdOnlyServer | ( | ) |
|
inherited |
References SALOMESDS::POAHolder::getPOA().
Referenced by SALOMESDS::DataScopeServerTransaction::addKeyValueInVarErrorIfAlreadyExisting(), SALOMESDS::DataScopeServerTransaction::addKeyValueInVarHard(), SALOMESDS::DataScopeServerTransaction::addMultiKeyValueSession(), SALOMESDS::DataScopeServerTransaction::createRdExtInitVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdExtInitVarTransac(), SALOMESDS::DataScopeServer::createRdExtVar(), SALOMESDS::DataScopeServerTransaction::createRdExtVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdExtVarTransac(), SALOMESDS::DataScopeServer::createRdOnlyVar(), SALOMESDS::DataScopeServerTransaction::createRdOnlyVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdOnlyVarTransac(), SALOMESDS::DataScopeServer::createRdWrVar(), SALOMESDS::DataScopeServerTransaction::createRdWrVarInternal(), SALOMESDS::DataScopeServerTransaction::createRdWrVarTransac(), SALOMESDS::DataScopeServerTransaction::createWorkingVarTransac(), SALOMESDS::DataServerManager::DataServerManager(), SALOMESDS::DataScopeServerTransaction::killVarTransac(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdExtOrRdExtInitToRdExt(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdExtOrRdExtInitToRdExtInit(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdOnlyToRdWr(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdWrToRdOnly(), SALOMESDS::DataScopeServerTransaction::removeKeyInVarErrorIfNotAlreadyExisting(), SALOMESDS::DataScopeServerTransaction::waitForKeyInVar(), and SALOMESDS::DataScopeServerTransaction::waitForKeyInVarAndKillIt().
|
virtual |
Implements SALOMESDS::PickelizedPyObjServer.
|
virtualinherited |
Reimplemented in SALOMESDS::PickelizedPyObjRdWrServer.
References SALOMESDS::BasicDataServer::getVarNameCpp().
Referenced by SALOMESDS::TransactionAddKeyValueHard::perform().
|
inherited |
|
inherited |
|
staticinherited |
|
inherited |
References SALOMESDS::RefCountServ::_cnt, and SALOMESDS::POAHolder::enforcedRelease().
Referenced by SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdExtOrRdExtInitToRdExt(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdExtOrRdExtInitToRdExtInit(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdOnlyToRdWr(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdWrToRdOnly(), SALOMESDS::BasicDataServer::UnRegister(), and SALOMESDS::DataScopeServerBase::~DataScopeServerBase().
|
inherited |
References SALOMESDS::POAHolder::enforcedRelease().
|
inherited |
References SALOMESDS::POAHolder::getPOA().
Referenced by SALOMESDS::RefCountServ::decrRef(), SALOMESDS::BasicDataServer::Destroy(), SALOMESDS::DataScopeServerBase::shutdownIfNotHostedByDSM(), SALOMESDS::DataScopeServerTransaction::waitForAndKill(), and SALOMESDS::DataScopeServerTransaction::waitForMonoThrRev().
|
inherited |
Called remotely -> to protect against throw.
References SALOMESDS::PickelizedPyObjServer::_self, SALOMESDS::PickelizedPyObjServer::FromCppToByteSeq(), and SALOMESDS::PickelizedPyObjServer::pickelize().
Referenced by SALOMESDS::DataScopeServerBase::fetchSerializedContent().
|
staticinherited |
|
staticinherited |
Referenced by SALOMESDS::PickelizedPyObjServer::fetchSerializedContent(), SALOMESDS::PickelizedPyObjRdExtInitServer::fetchSerializedContent(), SALOMESDS::PickelizedPyObjServer::FromCppToByteSeq(), SALOMESDS::DataScopeServerBase::getAllKeysOfVarWithTypeDict(), SALOMESDS::KeyWaiter::waitForAndKill(), and SALOMESDS::KeyWaiter::waitForMonoThr().
|
staticinherited |
|
virtual |
Implements SALOMESDS::PickelizedPyObjServer.
References ACCESS_REPR.
|
inherited |
References SALOMESDS::RefCountServ::_cnt.
Referenced by SALOMESDS::BasicDataServer::getRCValue().
|
inherited |
References SALOMESDS::BasicDataServer::_father.
Referenced by SALOMESDS::KeyWaiter::KeyWaiter(), SALOMESDS::KeyWaiter::waitForAndKill(), and SALOMESDS::KeyWaiter::waitForMonoThr().
|
inherited |
|
protectedvirtualinherited |
Implements SALOMESDS::POAHolder.
References SALOMESDS::BasicDataServer::_father, and SALOMESDS::DataScopeServerBase::getPOA().
|
inherited |
References SALOMESDS::PickelizedPyObjServer::_self.
Referenced by SALOMESDS::DataScopeServerBase::getAllKeysOfVarWithTypeDict(), SALOMESDS::KeyWaiter::KeyWaiter(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdExtOrRdExtInitToRdExt(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdExtOrRdExtInitToRdExtInit(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdOnlyToRdWr(), SALOMESDS::DataScopeServerBase::moveStatusOfVarFromRdWrToRdOnly(), SALOMESDS::TransactionDictModify::prepareRollBackInCaseOfFailure(), and SALOMESDS::KeyWaiter::waitForAndKill().
|
staticinherited |
New reference returned.
References SALOMESDS::DataScopeServerBase::getPickler().
Referenced by SALOMESDS::PickelizedPyObjServer::getPyObjFromPickled(), SALOMESDS::KeyWaiter::KeyWaiter(), SALOMESDS::TransactionAddKeyValue::TransactionAddKeyValue(), and SALOMESDS::TransactionRemoveKeyInVarErrorIfNotAlreadyExisting::TransactionRemoveKeyInVarErrorIfNotAlreadyExisting().
|
staticinherited |
New reference returned.
References SALOMESDS::DataScopeServerBase::getPickler().
|
inherited |
New reference returned.
References SALOMESDS::BasicDataServer::_father, and SALOMESDS::PickelizedPyObjServer::GetPyObjFromPickled().
Referenced by SALOMESDS::PickelizedPyObjRdExtServer::invokePythonMethodOn(), SALOMESDS::PickelizedPyObjRdWrServer::invokePythonMethodOn(), SALOMESDS::TransactionDictModify::rollBack(), and SALOMESDS::PickelizedPyObjServer::setSerializedContentInternal().
|
inherited |
New reference returned.
References SALOMESDS::BasicDataServer::_father, and SALOMESDS::PickelizedPyObjServer::GetPyObjFromPickled().
|
inherited |
References SALOMESDS::RefCountServ::getCounter().
|
inherited |
|
inherited |
Called remotely -> to protect against throw.
References SALOMESDS::BasicDataServer::_var_name.
|
inherited |
References SALOMESDS::BasicDataServer::_var_name.
Referenced by SALOMESDS::PickelizedPyObjServer::addKeyValueHard(), SALOMESDS::PickelizedPyObjRdExtServer::invokePythonMethodOn(), SALOMESDS::PickelizedPyObjRdWrServer::invokePythonMethodOn(), SALOMESDS::DataScopeServerBase::listVars(), and SALOMESDS::PickelizedPyObjServer::removeKeyInVarErrorIfNotAlreadyExisting().
|
inherited |
References SALOMESDS::RefCountServ::_cnt.
Referenced by SALOMESDS::BasicDataServer::Register().
|
inherited |
|
staticinherited |
obj is consumed by this method.
References SALOMESDS::DataScopeServerBase::getPickler().
Referenced by SALOMESDS::PickelizedPyObjServer::pickelize(), SALOMESDS::KeyWaiter::waitForAndKill(), and SALOMESDS::KeyWaiter::waitForMonoThr().
|
inherited |
obj is consumed by this method.
References SALOMESDS::BasicDataServer::_father, and SALOMESDS::PickelizedPyObjServer::Pickelize().
Referenced by SALOMESDS::PickelizedPyObjServer::fetchSerializedContent(), SALOMESDS::PickelizedPyObjRdExtInitServer::fetchSerializedContent(), SALOMESDS::DataScopeServerBase::getAllKeysOfVarWithTypeDict(), and SALOMESDS::TransactionDictModify::prepareRollBackInCaseOfFailure().
|
inherited |
References SALOMESDS::RefCountServ::incrRef().
|
virtualinherited |
Reimplemented in SALOMESDS::PickelizedPyObjServerModifiable.
References SALOMESDS::BasicDataServer::getVarNameCpp().
Referenced by SALOMESDS::TransactionRemoveKeyInVarErrorIfNotAlreadyExisting::perform().
|
inherited |
obj is consumed by this method.
References SALOMESDS::PickelizedPyObjServer::_self.
Referenced by SALOMESDS::PickelizedPyObjServer::PickelizedPyObjServer(), SALOMESDS::TransactionDictModify::rollBack(), and SALOMESDS::PickelizedPyObjServer::setSerializedContentInternal().
|
inherited |
|
inherited |
References SALOMESDS::PickelizedPyObjServer::FromByteSeqToCpp(), SALOMESDS::PickelizedPyObjServer::getPyObjFromPickled(), and SALOMESDS::PickelizedPyObjServer::setNewPyObj().
Referenced by SALOMESDS::PickelizedPyObjServer::PickelizedPyObjServer(), and SALOMESDS::PickelizedPyObjRdWrServer::setSerializedContent().
|
inherited |
References SALOMESDS::RefCountServ::decrRef().
|
protectedinherited |
Referenced by SALOMESDS::BasicDataServer::getFather(), SALOMESDS::BasicDataServer::getMyDataScopeServer(), SALOMESDS::BasicDataServer::getPOA(), SALOMESDS::PickelizedPyObjServer::getPyObjFromPickled(), SALOMESDS::BasicDataServer::getScopeName(), SALOMESDS::PickelizedPyObjRdExtServer::invokePythonMethodOn(), SALOMESDS::PickelizedPyObjRdWrServer::invokePythonMethodOn(), and SALOMESDS::PickelizedPyObjServer::pickelize().
|
protectedinherited |
|
protectedinherited |
Referenced by SALOMESDS::PickelizedPyObjServerModifiable::addKeyValueErrorIfAlreadyExisting(), SALOMESDS::PickelizedPyObjRdWrServer::addKeyValueHard(), SALOMESDS::PickelizedPyObjRdExtServer::checkDictSetitemRdExtness(), SALOMESDS::PickelizedPyObjServer::checkKeyPresence(), SALOMESDS::PickelizedPyObjRdExtServer::checkRdExtnessOf(), SALOMESDS::PickelizedPyObjServer::fetchSerializedContent(), SALOMESDS::PickelizedPyObjServer::getPyObj(), SALOMESDS::PickelizedPyObjRdExtServer::invokePythonMethodOn(), SALOMESDS::PickelizedPyObjRdWrServer::invokePythonMethodOn(), SALOMESDS::PickelizedPyObjServer::isDict(), SALOMESDS::PickelizedPyObjRdExtInitServer::PickelizedPyObjRdExtInitServer(), SALOMESDS::PickelizedPyObjServerModifiable::removeKeyInVarErrorIfNotAlreadyExisting(), SALOMESDS::PickelizedPyObjServer::setNewPyObj(), and SALOMESDS::PickelizedPyObjServer::~PickelizedPyObjServer().
|
static |
Referenced by getAccessStr().
|
staticprotectedinherited |