Version: 9.15.0
SALOMESDS::DataScopeServer Class Reference

#include <SALOMESDS_DataScopeServer.hxx>

Inheritance diagram for SALOMESDS::DataScopeServer:

Public Member Functions

 DataScopeServer (const SALOME_CPythonHelper *pyHelper, CORBA::ORB_ptr orb, SALOME::DataScopeKiller_var killer, const std::string &scopeName, SALOME_NamingService_Container_Abstract *ns)
 
 DataScopeServer (const DataScopeServer &other)
 
SALOME::BasicDataServer_ptr retrieveVar (const char *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 ()
 
void ping ()
 Called remotely -> to protect against throw. More...
 
char * getScopeName ()
 Called remotely -> to protect against throw. More...
 
SALOME::StringVeclistVars ()
 Called remotely -> to protect against throw. More...
 
CORBA::Boolean existVar (const char *varName)
 
SALOME::BasicDataServer_ptr retrieveVarInternal (const char *varName)
 
void deleteVar (const char *varName)
 
CORBA::Boolean shutdownIfNotHostedByDSM (SALOME::DataScopeKiller_out killer)
 
SALOME::ByteVecfetchSerializedContent (const char *varName)
 
SALOME::SeqOfByteVecgetAllKeysOfVarWithTypeDict (const char *varName)
 
SALOME::ByteVecgetValueOfVarWithTypeDict (const char *varName, const SALOME::ByteVec &constKey)
 
void takeANap (CORBA::Double napDurationInSec)
 
BasicDataServerretrieveVarInternal2 (const std::string &varName)
 
void registerToSalomePiDict () const
 
void setPOA (PortableServer::POA_var poa)
 
void registerInNS (SALOME::DataScopeServerBase_ptr ptr)
 
PyObject * getGlobals () const
 
PyObject * getLocals () const
 
PyObject * getPickler () const
 
PortableServer::POA_var getPOA () const
 
CORBA::ORB_var getORB ()
 
std::string getScopeNameCpp () const
 
std::vector< std::string > getAllVarNames () const
 
bool isExistingVar (const std::string &varName) const
 
void checkNotAlreadyExistingVar (const std::string &varName) const
 
void checkExistingVar (const std::string &varName) const
 
PickelizedPyObjServercheckVarExistingAndDict (const std::string &varName)
 
void moveStatusOfVarFromRdWrToRdOnly (const std::string &varName)
 
void moveStatusOfVarFromRdOnlyToRdWr (const std::string &varName)
 
void moveStatusOfVarFromRdExtOrRdExtInitToRdExtInit (const std::string &varName)
 
void moveStatusOfVarFromRdExtOrRdExtInitToRdExt (const std::string &varName)
 
CORBA::Object_var activate ()
 
void enforcedRelease ()
 

Static Public Member Functions

static std::string BuildTmpVarNameFrom (const std::string &varName)
 

Protected Member Functions

std::list< std::pair< SALOME::BasicDataServer_var, BasicDataServer * > >::const_iterator retrieveVarInternal3 (const std::string &varName) const
 
std::list< std::pair< SALOME::BasicDataServer_var, BasicDataServer * > >::iterator retrieveVarInternal4 (const std::string &varName)
 

Protected Attributes

SALOME_NamingService_Container_Abstract_ns = nullptr
 
const SALOME_CPythonHelper_pyHelper = nullptr
 
PortableServer::POA_var _poa
 
CORBA::ORB_var _orb
 
std::string _name
 
std::list< std::pair< SALOME::BasicDataServer_var, BasicDataServer * > > _vars
 
SALOME::DataScopeKiller_var _killer
 

Static Protected Attributes

static std::size_t COUNTER =0
 

Constructor & Destructor Documentation

◆ DataScopeServer() [1/2]

DataScopeServer::DataScopeServer ( const SALOME_CPythonHelper pyHelper,
CORBA::ORB_ptr  orb,
SALOME::DataScopeKiller_var  killer,
const std::string &  scopeName,
SALOME_NamingService_Container_Abstract ns 
)

◆ DataScopeServer() [2/2]

DataScopeServer::DataScopeServer ( const DataScopeServer other)

◆ ~DataScopeServer()

DataScopeServer::~DataScopeServer ( )

Member Function Documentation

◆ activate()

◆ BuildTmpVarNameFrom()

std::string DataScopeServerBase::BuildTmpVarNameFrom ( const std::string &  varName)
staticinherited

◆ checkExistingVar()

◆ checkNotAlreadyExistingVar()

◆ checkVarExistingAndDict()

◆ createRdExtVar()

SALOME::PickelizedPyObjRdExtServer_ptr DataScopeServer::createRdExtVar ( const char *  varName,
const SALOME::ByteVec constValue 
)

◆ createRdOnlyVar()

SALOME::PickelizedPyObjRdOnlyServer_ptr DataScopeServer::createRdOnlyVar ( const char *  varName,
const SALOME::ByteVec constValue 
)

◆ createRdWrVar()

SALOME::PickelizedPyObjRdWrServer_ptr DataScopeServer::createRdWrVar ( const char *  typeName,
const char *  varName 
)

◆ deleteVar()

◆ enforcedRelease()

◆ existVar()

CORBA::Boolean DataScopeServerBase::existVar ( const char *  varName)
inherited

◆ fetchSerializedContent()

◆ getAllKeysOfVarWithTypeDict()

◆ getAllVarNames()

◆ getGlobals()

PyObject* SALOMESDS::DataScopeServerBase::getGlobals ( ) const
inherited

◆ getLocals()

PyObject* SALOMESDS::DataScopeServerBase::getLocals ( ) const
inherited

◆ getORB()

CORBA::ORB_var SALOMESDS::DataScopeServerBase::getORB ( )
inherited

◆ getPickler()

PyObject* SALOMESDS::DataScopeServerBase::getPickler ( ) const
inherited

◆ getPOA()

◆ getScopeName()

char * DataScopeServerBase::getScopeName ( )
inherited

Called remotely -> to protect against throw.

References SALOMESDS::DataScopeServerBase::_name.

Referenced by SALOMESDS::BasicDataServer::getScopeName().

◆ getScopeNameCpp()

std::string SALOMESDS::DataScopeServerBase::getScopeNameCpp ( ) const
inherited

◆ getValueOfVarWithTypeDict()

◆ isExistingVar()

◆ listVars()

SALOME::StringVec * DataScopeServerBase::listVars ( )
inherited

Called remotely -> to protect against throw.

< TODO: size_t to CORBA::ULong

< TODO: size_t to CORBA::ULong

References SALOMESDS::DataScopeServerBase::_vars, pythfilter::name, KERNEL_PY.batchmode_salome::obj, and TestKernelHelpers::ret.

Referenced by SALOMESDS::RequestSwitcher::listVars().

◆ moveStatusOfVarFromRdExtOrRdExtInitToRdExt()

◆ moveStatusOfVarFromRdExtOrRdExtInitToRdExtInit()

◆ moveStatusOfVarFromRdOnlyToRdWr()

◆ moveStatusOfVarFromRdWrToRdOnly()

◆ ping()

void DataScopeServerBase::ping ( )
inherited

Called remotely -> to protect against throw.

◆ registerInNS()

◆ registerToSalomePiDict()

void DataScopeServerBase::registerToSalomePiDict ( ) const
inherited

◆ retrieveVar()

SALOME::BasicDataServer_ptr SALOMESDS::DataScopeServer::retrieveVar ( const char *  varName)

◆ retrieveVarInternal()

SALOME::BasicDataServer_ptr DataScopeServerBase::retrieveVarInternal ( const char *  varName)
inherited

◆ retrieveVarInternal2()

◆ retrieveVarInternal3()

std::list< std::pair< SALOME::BasicDataServer_var, BasicDataServer * > >::const_iterator DataScopeServerBase::retrieveVarInternal3 ( const std::string &  varName) const
protectedinherited

◆ retrieveVarInternal4()

◆ setPOA()

void DataScopeServerBase::setPOA ( PortableServer::POA_var  poa)
inherited

◆ shutdownIfNotHostedByDSM()

◆ takeANap()

void DataScopeServerBase::takeANap ( CORBA::Double  napDurationInSec)
inherited

Field Documentation

◆ _killer

SALOME::DataScopeKiller_var SALOMESDS::DataScopeServerBase::_killer
protectedinherited

◆ _name

◆ _ns

◆ _orb

◆ _poa

◆ _pyHelper

const SALOME_CPythonHelper* SALOMESDS::DataScopeServerBase::_pyHelper = nullptr
protectedinherited

◆ _vars

◆ COUNTER

std::size_t DataScopeServerBase::COUNTER =0
staticprotectedinherited