Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SalomeApp_Engine_i Class Reference

#include <SalomeApp_Engine_i.h>

Inheritance diagram for SalomeApp_Engine_i:
Inheritance graph

Public Types

typedef std::vector< std::string > ListOfFiles
 

Public Member Functions

 SalomeApp_Engine_i (const char *theComponentName)
 
 ~SalomeApp_Engine_i ()
 
SALOMEDS::TMPFile * Save (SALOMEDS::SComponent_ptr theComponent, const char *theURL, bool isMultiFile)
 
CORBA::Boolean Load (SALOMEDS::SComponent_ptr theComponent, const SALOMEDS::TMPFile &theFile, const char *theURL, bool isMultiFile)
 
virtual Engines::TMPFile * DumpPython (CORBA::Object_ptr theStudy, CORBA::Boolean isPublished, CORBA::Boolean isMultiFile, CORBA::Boolean &isValidScript)
 
ListOfFiles GetListOfFiles (const int theStudyId)
 
void SetListOfFiles (const ListOfFiles &theListOfFiles, const int theStudyId)
 
SALOMEDS::TMPFile * SaveASCII (SALOMEDS::SComponent_ptr, const char *, bool)
 
CORBA::Boolean LoadASCII (SALOMEDS::SComponent_ptr, const SALOMEDS::TMPFile &, const char *, bool)
 
void Close (SALOMEDS::SComponent_ptr)
 
char * ComponentDataType ()
 
char * IORToLocalPersistentID (SALOMEDS::SObject_ptr, const char *, CORBA::Boolean, CORBA::Boolean)
 
char * LocalPersistentIDToIOR (SALOMEDS::SObject_ptr, const char *, CORBA::Boolean, CORBA::Boolean)
 
bool CanPublishInStudy (CORBA::Object_ptr)
 
SALOMEDS::SObject_ptr PublishInStudy (SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr, CORBA::Object_ptr, const char *) throw (SALOME::SALOME_Exception)
 
CORBA::Boolean CanCopy (SALOMEDS::SObject_ptr)
 
SALOMEDS::TMPFile * CopyFrom (SALOMEDS::SObject_ptr, CORBA::Long &)
 
CORBA::Boolean CanPaste (const char *, CORBA::Long)
 
SALOMEDS::SObject_ptr PasteInto (const SALOMEDS::TMPFile &, CORBA::Long, SALOMEDS::SObject_ptr)
 
char * getVersion ()
 

Static Public Member Functions

static std::string EngineIORForComponent (const char *theComponentName, bool toCreate)
 
static SalomeApp_Engine_iGetInstance (const char *theComponentName, bool toCreate)
 
static CORBA::Object_ptr EngineForComponent (const char *theComponentName, bool toCreate)
 

Private Types

typedef std::map< int,
ListOfFiles
MapOfListOfFiles
 

Static Private Member Functions

static CORBA::ORB_var orb ()
 
static PortableServer::POA_var poa ()
 
static SALOME_NamingService * namingService ()
 

Private Attributes

MapOfListOfFiles myMap
 
std::string myComponentName
 

Member Typedef Documentation

typedef std::vector<std::string> SalomeApp_Engine_i::ListOfFiles
typedef std::map<int, ListOfFiles> SalomeApp_Engine_i::MapOfListOfFiles
private

Constructor & Destructor Documentation

SalomeApp_Engine_i::SalomeApp_Engine_i ( const char *  theComponentName)

Constructor

References myComponentName.

SalomeApp_Engine_i::~SalomeApp_Engine_i ( )

Destructor

References myComponentName.

Member Function Documentation

CORBA::Boolean SalomeApp_Engine_i::CanCopy ( SALOMEDS::SObject_ptr  )
inline
CORBA::Boolean SalomeApp_Engine_i::CanPaste ( const char *  ,
CORBA::Long   
)
inline
bool SalomeApp_Engine_i::CanPublishInStudy ( CORBA::Object_ptr  )
inline
void SalomeApp_Engine_i::Close ( SALOMEDS::SComponent_ptr  )
inline
char * SalomeApp_Engine_i::ComponentDataType ( )
Returns
Component data type string for this instance of the engine

References myComponentName.

SALOMEDS::TMPFile* SalomeApp_Engine_i::CopyFrom ( SALOMEDS::SObject_ptr  ,
CORBA::Long &   
)
inline
Engines::TMPFile * SalomeApp_Engine_i::DumpPython ( CORBA::Object_ptr  theStudy,
CORBA::Boolean  isPublished,
CORBA::Boolean  isMultiFile,
CORBA::Boolean &  isValidScript 
)
virtual

DumpPython implementation for light modules

References myComponentName, and myMap.

CORBA::Object_ptr SalomeApp_Engine_i::EngineForComponent ( const char *  theComponentName,
bool  toCreate 
)
static

Internal method, creates a CORBA engine for a light SALOME module with the given "component data type" string, activates it and registers in SALOME naming service with /SalomeAppEngine/comp_data_type path. If the engine is already in the naming service, simply returns and object reference to it.

Parameters
theComponentName- synthetic "component data type" used to identify a given light module
Returns
Object reference to the CORBA engine

References CAM_Application::moduleTitle(), namingService(), poa(), and SalomeApp_Engine_i().

std::string SalomeApp_Engine_i::EngineIORForComponent ( const char *  theComponentName,
bool  toCreate 
)
static
Parameters
theComponentName- synthetic "component data type" used to identify a given light module
Returns
IOR string for the CORBA engine for a light SALOME module with the given "component data type" string
See Also
GetInstance( const char* theComponentName )

References EngineForComponent(), and orb().

SalomeApp_Engine_i * SalomeApp_Engine_i::GetInstance ( const char *  theComponentName,
bool  toCreate 
)
static
Parameters
theComponentName- synthetic "component data type" used to identify a given light module
Returns
A pointer to corresponding C++ engine instance, null means some internal problems.
See Also
EngineIORForComponent( const char* theComponentName )

References EngineForComponent(), and poa().

SalomeApp_Engine_i::ListOfFiles SalomeApp_Engine_i::GetListOfFiles ( const int  theStudyId)

References myMap.

char* SalomeApp_Engine_i::IORToLocalPersistentID ( SALOMEDS::SObject_ptr  ,
const char *  ,
CORBA::Boolean  ,
CORBA::Boolean   
)
inline
CORBA::Boolean SalomeApp_Engine_i::Load ( SALOMEDS::SComponent_ptr  theComponent,
const SALOMEDS::TMPFile &  theFile,
const char *  theURL,
bool  isMultiFile 
)
CORBA::Boolean SalomeApp_Engine_i::LoadASCII ( SALOMEDS::SComponent_ptr  ,
const SALOMEDS::TMPFile &  ,
const char *  ,
bool   
)
inline
char* SalomeApp_Engine_i::LocalPersistentIDToIOR ( SALOMEDS::SObject_ptr  ,
const char *  ,
CORBA::Boolean  ,
CORBA::Boolean   
)
inline
SALOME_NamingService * SalomeApp_Engine_i::namingService ( )
staticprivate
Returns

References orb().

CORBA::ORB_var SalomeApp_Engine_i::orb ( )
staticprivate
SALOMEDS::SObject_ptr SalomeApp_Engine_i::PasteInto ( const SALOMEDS::TMPFile &  ,
CORBA::Long  ,
SALOMEDS::SObject_ptr   
)
inline
PortableServer::POA_var SalomeApp_Engine_i::poa ( )
staticprivate
Returns

References obj, and orb().

SALOMEDS::SObject_ptr SalomeApp_Engine_i::PublishInStudy ( SALOMEDS::Study_ptr  ,
SALOMEDS::SObject_ptr  ,
CORBA::Object_ptr  ,
const char *   
) throw (SALOME::SALOME_Exception)
inline
SALOMEDS::TMPFile * SalomeApp_Engine_i::Save ( SALOMEDS::SComponent_ptr  theComponent,
const char *  theURL,
bool  isMultiFile 
)

References myComponentName, and myMap.

SALOMEDS::TMPFile* SalomeApp_Engine_i::SaveASCII ( SALOMEDS::SComponent_ptr  ,
const char *  ,
bool   
)
inline
void SalomeApp_Engine_i::SetListOfFiles ( const ListOfFiles theListOfFiles,
const int  theStudyId 
)

References myMap.

Member Data Documentation

std::string SalomeApp_Engine_i::myComponentName
private
MapOfListOfFiles SalomeApp_Engine_i::myMap
private

The documentation for this class was generated from the following files: