#include <SALOME_ModuleCatalog_impl.hxx>
Data Structures | |
class | Private |
Public Member Functions | |
SALOME_ModuleCatalogImpl (int artgc, char **argv, CORBA::ORB_ptr orb=NULL) | |
standard constructor More... | |
virtual | ~SALOME_ModuleCatalogImpl () |
standard destructor More... | |
virtual SALOME_ModuleCatalog::ListOfComputers * | GetComputerList () |
method to get a component list More... | |
virtual SALOME_ModuleCatalog::ListOfTypeDefinition * | GetTypes () |
method to get the list of all types of the catalog More... | |
virtual char * | GetPathPrefix (const char *machinename) |
method to get the PathPrefix of a computer More... | |
virtual void | ImportXmlCatalogFile (const char *xmlFileName) |
method to read a XML file and import new components into the component list More... | |
virtual SALOME_ModuleCatalog::ListOfComponents * | GetComponentList () |
method to get a component list More... | |
virtual SALOME_ModuleCatalog::ListOfIAPP_Affich * | GetComponentIconeList () |
method to get a component list of component name and component icone More... | |
virtual SALOME_ModuleCatalog::ListOfComponents * | GetTypedComponentList (SALOME_ModuleCatalog::ComponentType component_type) |
method to get a component list of a wanted type More... | |
virtual SALOME_ModuleCatalog::Acomponent_ptr | GetComponent (const char *componentname) |
method to get a component More... | |
virtual SALOME_ModuleCatalog::ComponentDef * | GetComponentInfo (const char *name) |
method to get a component description More... | |
void | ping () |
method to check the server is alive More... | |
CORBA::Long | getPID () |
get PID of the server More... | |
void | ShutdownWithExit () |
shutdown server and exit More... | |
void | shutdown () |
shutdown server More... | |
Private Member Functions | |
virtual bool | _parseArguments (int argc, char **argv, char **_general, char **_personal) |
method to parse arguments to get general and personal catalog files More... | |
Private Attributes | |
CORBA::ORB_ptr | _orb |
Private * | myPrivate |
SALOME_ModuleCatalogImpl::SALOME_ModuleCatalogImpl | ( | int | artgc, |
char ** | argv, | ||
CORBA::ORB_ptr | orb = NULL |
||
) |
standard constructor
References SALOME_ModuleCatalogImpl::Private::_general_module_list, SALOME_ModuleCatalogImpl::Private::_general_path, SALOME_ModuleCatalogImpl::Private::_general_path_list, SALOME_ModuleCatalogImpl::Private::_parse_xml_file(), _parseArguments(), SALOME_ModuleCatalogImpl::Private::_personal_module_list, SALOME_ModuleCatalogImpl::Private::_personal_path, SALOME_ModuleCatalogImpl::Private::_personal_path_list, SALOME_ModuleCatalogImpl::Private::_typeList, SALOME_ModuleCatalogImpl::Private::_typeMap, SALOME_ModuleCatalogImpl::Private::_verify_path_prefix(), SALOME_ModuleCatalogImpl::Private::ComponentTypeConvert, DATA, SALOME_ModuleCatalog::DATA, SALOME_ModuleCatalog::DATASTREAM_ITERATIVE, SALOME_ModuleCatalog::DATASTREAM_TEMPORAL, SALOME_ModuleCatalog::DATASTREAM_UNDEFINED, SALOME_ModuleCatalogImpl::Private::DataStreamDepConvert, SALOME_ModuleCatalog::GEOM, GEOM, SALOME_ModuleCatalog::Med, Med, SALOME_ModuleCatalog::MESH, MESH, MESSAGE, MYDEBUG, myPrivate, OTHER, SALOME_ModuleCatalog::OTHER, SOLVER, SALOME_ModuleCatalog::SOLVER, splitStringToList(), SUPERV, SALOME_ModuleCatalog::SUPERV, VISU, and SALOME_ModuleCatalog::VISU.
|
virtual |
|
privatevirtual |
method to parse arguments to get general and personal catalog files
argc | int arguments |
argv | char** arguments |
_general | char** arguments |
References INFOS.
Referenced by SALOME_ModuleCatalogImpl().
|
virtual |
method to get a component
componentname | const char* arguments |
References SALOME_ModuleCatalogImpl::Private::duplicate(), SALOME_ModuleCatalogImpl::Private::findComponent(), MESSAGE, MYDEBUG, and myPrivate.
|
virtual |
method to get a component list of component name and component icone
References SALOME_ModuleCatalogImpl::Private::_general_module_list, SALOME_ModuleCatalogImpl::Private::_personal_module_list, MESSAGE, MYDEBUG, and myPrivate.
|
virtual |
method to get a component description
componentname | const char* arguments |
References SALOME_ModuleCatalogImpl::Private::duplicate(), SALOME_ModuleCatalogImpl::Private::findComponent(), and myPrivate.
|
virtual |
method to get a component list
References SALOME_ModuleCatalogImpl::Private::_general_module_list, SALOME_ModuleCatalogImpl::Private::_personal_module_list, MESSAGE, MYDEBUG, myPrivate, and SCRUTE.
|
virtual |
method to get a component list
method to get the PathPrefix of a computer
If the wanted computer doesn't exist, the Notfound exception is thrown
machinename | const char* arguments |
References SALOME_ModuleCatalogImpl::Private::_general_path_list, SALOME_ModuleCatalogImpl::Private::_personal_path_list, MESSAGE, MYDEBUG, and myPrivate.
CORBA::Long SALOME_ModuleCatalogImpl::getPID | ( | ) |
get PID of the server
|
virtual |
method to get a component list of a wanted type
References SALOME_ModuleCatalogImpl::Private::_general_module_list, SALOME_ModuleCatalogImpl::Private::_personal_module_list, DATA, SALOME_ModuleCatalog::DATA, SALOME_ModuleCatalog::GEOM, GEOM, SALOME_ModuleCatalog::Med, Med, SALOME_ModuleCatalog::MESH, MESH, MESSAGE, MYDEBUG, myPrivate, OTHER, SALOME_ModuleCatalog::OTHER, SALOME_ModuleCatalog::SOLVER, SOLVER, SUPERV, SALOME_ModuleCatalog::SUPERV, VISU, and SALOME_ModuleCatalog::VISU.
|
virtual |
method to get the list of all types of the catalog
Get the list of all types of the catalog.
References SALOME_ModuleCatalogImpl::Private::_typeList, SALOME_ModuleCatalog::Array, SALOME_ModuleCatalog::Bool, SALOME_ModuleCatalog::Dble, SALOME_ModuleCatalog::Int, myPrivate, SALOME_ModuleCatalog::NONE, SALOME_ModuleCatalog::Objref, SALOME_ModuleCatalog::Seq, SALOME_ModuleCatalog::Str, and SALOME_ModuleCatalog::Struc.
|
virtual |
method to read a XML file and import new components into the component list
If the XML file doesn't exist or is not readable, the Notfound exception is thrown
const | char* xmlFileName |
References SALOME_ModuleCatalogImpl::Private::_parse_xml_file(), SALOME_ModuleCatalogImpl::Private::_personal_module_list, SALOME_ModuleCatalogImpl::Private::_personal_path_list, SALOME_ModuleCatalogImpl::Private::_typeList, SALOME_ModuleCatalogImpl::Private::_typeMap, and myPrivate.
void SALOME_ModuleCatalogImpl::ping | ( | ) |
method to check the server is alive
void SALOME_ModuleCatalogImpl::shutdown | ( | ) |
shutdown server
References _orb.
void SALOME_ModuleCatalogImpl::ShutdownWithExit | ( | ) |
shutdown server and exit
|
private |
Referenced by shutdown().
|
private |