Version: 8.3.0
SALOMESDS::PickelizedPyObjRdOnlyServer Class Reference

#include <SALOMESDS_PickelizedPyObjRdOnlyServer.hxx>

Inheritance diagram for SALOMESDS::PickelizedPyObjRdOnlyServer:

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::ByteVecfetchSerializedContent ()
 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 ()
 
chargetVarName ()
 Called remotely -> to protect against throw. More...
 
chargetScopeName ()
 
void Register ()
 
void UnRegister ()
 
void Destroy ()
 
CORBA::Long getRCValue ()
 
DataScopeServerBasegetFather () 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::ByteVecFromCppToByteSeq (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 []
 

Constructor & Destructor Documentation

PickelizedPyObjRdOnlyServer::PickelizedPyObjRdOnlyServer ( DataScopeServerBase father,
const std::string &  varName,
const SALOME::ByteVec value 
)
PickelizedPyObjRdOnlyServer::PickelizedPyObjRdOnlyServer ( DataScopeServerBase father,
const std::string &  varName,
PyObject *  obj 
)
PickelizedPyObjRdOnlyServer::~PickelizedPyObjRdOnlyServer ( )

Member Function Documentation

CORBA::Object_var SALOMESDS::POAHolder::activate ( )
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().

void PickelizedPyObjRdOnlyServer::addKeyValueErrorIfAlreadyExisting ( PyObject *  key,
PyObject *  value 
)
virtual
void PickelizedPyObjServer::addKeyValueHard ( PyObject *  key,
PyObject *  value 
)
virtualinherited
void PickelizedPyObjServer::checkKeyPresent ( PyObject *  key)
inherited
PyObject * PickelizedPyObjServer::CreateDftObjFromType ( PyObject *  globals,
const std::string &  typeName 
)
staticinherited
void BasicDataServer::Destroy ( )
inherited
SALOME::ByteVec * PickelizedPyObjServer::fetchSerializedContent ( )
inherited
SALOME::ByteVec * PickelizedPyObjServer::FromCppToByteSeq ( const std::string &  strToBeConv)
staticinherited
std::string PickelizedPyObjRdOnlyServer::getAccessStr ( ) const
virtual
int SALOMESDS::RefCountServ::getCounter ( ) const
inherited
SALOME::DataScopeServer_ptr BasicDataServer::getMyDataScopeServer ( )
inherited
PortableServer::POA_var BasicDataServer::getPOA ( ) const
protectedvirtualinherited
PyObject * PickelizedPyObjServer::GetPyObjFromPickled ( const std::vector< unsigned char > &  pickledData,
DataScopeServerBase dsb 
)
staticinherited

New reference returned.

References SALOMESDS::DataScopeServerBase::getPickler().

PyObject * PickelizedPyObjServer::getPyObjFromPickled ( const std::vector< unsigned char > &  pickledData)
inherited
CORBA::Long BasicDataServer::getRCValue ( )
inherited
char * BasicDataServer::getScopeName ( )
inherited
char * BasicDataServer::getVarName ( )
inherited

Called remotely -> to protect against throw.

References SALOMESDS::BasicDataServer::_var_name.

void RefCountServ::incrRef ( ) const
inherited
std::string PickelizedPyObjServer::Pickelize ( PyObject *  obj,
DataScopeServerBase dsb 
)
staticinherited
void BasicDataServer::Register ( )
inherited
void PickelizedPyObjServer::removeKeyInVarErrorIfNotAlreadyExisting ( PyObject *  key)
virtualinherited
void PickelizedPyObjServer::setNewPyObj ( PyObject *  obj)
inherited
void SALOMESDS::PickelizedPyObjServer::setSerializedContent ( const SALOME::ByteVec newValue)
inherited
void BasicDataServer::UnRegister ( )
inherited

Field Documentation

PortableServer::POA_var SALOMESDS::PickelizedPyObjServer::_poa
protectedinherited
const char PickelizedPyObjRdOnlyServer::ACCESS_REPR ="RdOnly"
static

Referenced by getAccessStr().

const char SALOMESDS::PickelizedPyObjServer::FAKE_VAR_NAME_FOR_WORK[]
staticprotectedinherited