#include <SALOMESDS_PickelizedPyObjServer.hxx>
Public Member Functions | |
PickelizedPyObjServer (DataScopeServerBase *father, const std::string &varName, const SALOME::ByteVec &value) | |
PickelizedPyObjServer (DataScopeServerBase *father, const std::string &varName, PyObject *obj) | |
obj is consumed More... | |
virtual | ~PickelizedPyObjServer () |
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) |
virtual void | addKeyValueErrorIfAlreadyExisting (PyObject *key, PyObject *value)=0 |
virtual std::string | getAccessStr () const =0 |
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) |
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 [] |
Private Member Functions | |
void | checkKeyPresence (PyObject *key, bool presence) |
PickelizedPyObjServer::PickelizedPyObjServer | ( | DataScopeServerBase * | father, |
const std::string & | varName, | ||
const SALOME::ByteVec & | value | ||
) |
References setSerializedContentInternal().
PickelizedPyObjServer::PickelizedPyObjServer | ( | DataScopeServerBase * | father, |
const std::string & | varName, | ||
PyObject * | obj | ||
) |
obj is consumed
References setNewPyObj().
|
virtual |
References _self.
|
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().
|
pure virtual |
Implemented in SALOMESDS::PickelizedPyObjServerModifiable, and SALOMESDS::PickelizedPyObjRdOnlyServer.
Referenced by SALOMESDS::TransactionAddKeyValueErrorIfAlreadyExisting::perform().
|
virtual |
Reimplemented in SALOMESDS::PickelizedPyObjRdWrServer.
References SALOMESDS::BasicDataServer::getVarNameCpp().
Referenced by SALOMESDS::TransactionAddKeyValueHard::perform().
void PickelizedPyObjServer::checkKeyNotAlreadyPresent | ( | PyObject * | key | ) |
|
private |
References _self, and isDict().
Referenced by checkKeyNotAlreadyPresent(), and checkKeyPresent().
void PickelizedPyObjServer::checkKeyPresent | ( | PyObject * | key | ) |
References checkKeyPresence().
Referenced by SALOMESDS::PickelizedPyObjServerModifiable::removeKeyInVarErrorIfNotAlreadyExisting().
|
static |
|
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().
SALOME::ByteVec * PickelizedPyObjServer::fetchSerializedContent | ( | ) |
Called remotely -> to protect against throw.
References _self, FromCppToByteSeq(), and pickelize().
Referenced by SALOMESDS::DataScopeServerBase::fetchSerializedContent().
|
static |
|
static |
|
static |
References FromCppToByteSeq().
|
pure virtual |
|
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().
PyObject* SALOMESDS::PickelizedPyObjServer::getPyObj | ( | ) | const |
References _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().
|
static |
New reference returned.
References SALOMESDS::DataScopeServerBase::getPickler().
Referenced by getPyObjFromPickled(), SALOMESDS::KeyWaiter::KeyWaiter(), SALOMESDS::TransactionAddKeyValue::TransactionAddKeyValue(), and SALOMESDS::TransactionRemoveKeyInVarErrorIfNotAlreadyExisting::TransactionRemoveKeyInVarErrorIfNotAlreadyExisting().
|
static |
New reference returned.
References SALOMESDS::DataScopeServerBase::getPickler().
PyObject * PickelizedPyObjServer::getPyObjFromPickled | ( | const std::string & | pickledData | ) |
New reference returned.
References SALOMESDS::BasicDataServer::_father, and GetPyObjFromPickled().
Referenced by SALOMESDS::PickelizedPyObjRdExtServer::invokePythonMethodOn(), SALOMESDS::PickelizedPyObjRdWrServer::invokePythonMethodOn(), SALOMESDS::TransactionDictModify::rollBack(), and setSerializedContentInternal().
PyObject * PickelizedPyObjServer::getPyObjFromPickled | ( | const std::vector< unsigned char > & | pickledData | ) |
New reference returned.
References SALOMESDS::BasicDataServer::_father, and GetPyObjFromPickled().
|
inherited |
References SALOMESDS::RefCountServ::getCounter().
|
inherited |
|
inherited |
Called remotely -> to protect against throw.
References SALOMESDS::BasicDataServer::_var_name.
|
inherited |
|
inherited |
References SALOMESDS::RefCountServ::_cnt.
Referenced by SALOMESDS::BasicDataServer::Register().
bool PickelizedPyObjServer::isDict | ( | ) |
References _self.
Referenced by checkKeyPresence(), SALOMESDS::DataScopeServerBase::checkVarExistingAndDict(), and SALOMESDS::DataScopeServerBase::getAllKeysOfVarWithTypeDict().
|
static |
obj is consumed by this method.
References SALOMESDS::DataScopeServerBase::getPickler().
Referenced by pickelize(), SALOMESDS::KeyWaiter::waitForAndKill(), and SALOMESDS::KeyWaiter::waitForMonoThr().
std::string PickelizedPyObjServer::pickelize | ( | PyObject * | obj | ) |
obj is consumed by this method.
References SALOMESDS::BasicDataServer::_father, and Pickelize().
Referenced by fetchSerializedContent(), SALOMESDS::PickelizedPyObjRdExtInitServer::fetchSerializedContent(), SALOMESDS::DataScopeServerBase::getAllKeysOfVarWithTypeDict(), and SALOMESDS::TransactionDictModify::prepareRollBackInCaseOfFailure().
|
inherited |
References SALOMESDS::RefCountServ::incrRef().
|
virtual |
Reimplemented in SALOMESDS::PickelizedPyObjServerModifiable.
References SALOMESDS::BasicDataServer::getVarNameCpp().
Referenced by SALOMESDS::TransactionRemoveKeyInVarErrorIfNotAlreadyExisting::perform().
void PickelizedPyObjServer::setNewPyObj | ( | PyObject * | obj | ) |
obj is consumed by this method.
References _self.
Referenced by PickelizedPyObjServer(), SALOMESDS::TransactionDictModify::rollBack(), and setSerializedContentInternal().
void SALOMESDS::PickelizedPyObjServer::setSerializedContent | ( | const SALOME::ByteVec & | newValue | ) |
void PickelizedPyObjServer::setSerializedContentInternal | ( | const SALOME::ByteVec & | newValue | ) |
References FromByteSeqToCpp(), getPyObjFromPickled(), and setNewPyObj().
Referenced by PickelizedPyObjServer(), and SALOMESDS::PickelizedPyObjRdWrServer::setSerializedContent().
|
inherited |
References SALOMESDS::RefCountServ::decrRef().
|
protectedinherited |
Referenced by SALOMESDS::BasicDataServer::getFather(), SALOMESDS::BasicDataServer::getMyDataScopeServer(), SALOMESDS::BasicDataServer::getPOA(), getPyObjFromPickled(), SALOMESDS::BasicDataServer::getScopeName(), SALOMESDS::PickelizedPyObjRdExtServer::invokePythonMethodOn(), SALOMESDS::PickelizedPyObjRdWrServer::invokePythonMethodOn(), and pickelize().
|
protected |
|
protected |
Referenced by SALOMESDS::PickelizedPyObjServerModifiable::addKeyValueErrorIfAlreadyExisting(), SALOMESDS::PickelizedPyObjRdWrServer::addKeyValueHard(), SALOMESDS::PickelizedPyObjRdExtServer::checkDictSetitemRdExtness(), checkKeyPresence(), SALOMESDS::PickelizedPyObjRdExtServer::checkRdExtnessOf(), fetchSerializedContent(), getPyObj(), SALOMESDS::PickelizedPyObjRdExtServer::invokePythonMethodOn(), SALOMESDS::PickelizedPyObjRdWrServer::invokePythonMethodOn(), isDict(), SALOMESDS::PickelizedPyObjRdExtInitServer::PickelizedPyObjRdExtInitServer(), SALOMESDS::PickelizedPyObjServerModifiable::removeKeyInVarErrorIfNotAlreadyExisting(), setNewPyObj(), and ~PickelizedPyObjServer().
|
staticprotected |