#include <SalomeApp_Engine_i.h>
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_i * | GetInstance (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 |
typedef std::vector<std::string> SalomeApp_Engine_i::ListOfFiles |
|
private |
SalomeApp_Engine_i::SalomeApp_Engine_i | ( | const char * | theComponentName | ) |
Constructor
References myComponentName.
SalomeApp_Engine_i::~SalomeApp_Engine_i | ( | ) |
Destructor
References myComponentName.
|
inline |
|
inline |
|
inline |
|
inline |
char * SalomeApp_Engine_i::ComponentDataType | ( | ) |
References myComponentName.
|
inline |
|
virtual |
DumpPython implementation for light modules
References myComponentName, and myMap.
|
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.
theComponentName | - synthetic "component data type" used to identify a given light module |
References CAM_Application::moduleTitle(), namingService(), poa(), and SalomeApp_Engine_i().
|
static |
theComponentName | - synthetic "component data type" used to identify a given light module |
References EngineForComponent(), and orb().
|
static |
theComponentName | - synthetic "component data type" used to identify a given light module |
References EngineForComponent(), and poa().
SalomeApp_Engine_i::ListOfFiles SalomeApp_Engine_i::GetListOfFiles | ( | const int | theStudyId | ) |
References myMap.
char * SalomeApp_Engine_i::getVersion | ( | ) |
References CAM_Application::getVersionInfo(), CAM_Application::moduleName(), myComponentName, CAM_Application::ModuleShortInfo::name, and CAM_Application::ModuleShortInfo::version.
|
inline |
CORBA::Boolean SalomeApp_Engine_i::Load | ( | SALOMEDS::SComponent_ptr | theComponent, |
const SALOMEDS::TMPFile & | theFile, | ||
const char * | theURL, | ||
bool | isMultiFile | ||
) |
References myComponentName, and SetListOfFiles().
|
inline |
|
inline |
|
staticprivate |
References orb().
|
staticprivate |
References Qtx::CmdLineArgs::argc(), and Qtx::CmdLineArgs::argv().
|
inline |
|
staticprivate |
|
inline |
SALOMEDS::TMPFile * SalomeApp_Engine_i::Save | ( | SALOMEDS::SComponent_ptr | theComponent, |
const char * | theURL, | ||
bool | isMultiFile | ||
) |
References myComponentName, and myMap.
|
inline |
void SalomeApp_Engine_i::SetListOfFiles | ( | const ListOfFiles & | theListOfFiles, |
const int | theStudyId | ||
) |
References myMap.
|
private |
|
private |