Version: 8.3.0
SALOME_ModuleCatalogImpl Class Reference

#include <SALOME_ModuleCatalog_impl.hxx>

Inheritance diagram for SALOME_ModuleCatalogImpl:

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 charGetPathPrefix (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
 
PrivatemyPrivate
 

Constructor & Destructor Documentation

SALOME_ModuleCatalogImpl::~SALOME_ModuleCatalogImpl ( )
virtual

standard destructor

References MESSAGE, MYDEBUG, and myPrivate.

Member Function Documentation

bool SALOME_ModuleCatalogImpl::_parseArguments ( int  argc,
char **  argv,
char **  _general,
char **  _personal 
)
privatevirtual

method to parse arguments to get general and personal catalog files

Parameters
argcint arguments
argvchar** arguments
_generalchar** arguments
Returns
true if parsing is OK

References INFOS.

Referenced by SALOME_ModuleCatalogImpl().

SALOME_ModuleCatalog::Acomponent_ptr SALOME_ModuleCatalogImpl::GetComponent ( const char componentname)
virtual

method to get a component

Parameters
componentnameconst char* arguments
Returns
the wanted component

References SALOME_ModuleCatalogImpl::Private::duplicate(), SALOME_ModuleCatalogImpl::Private::findComponent(), MESSAGE, MYDEBUG, and myPrivate.

SALOME_ModuleCatalog::ListOfIAPP_Affich * SALOME_ModuleCatalogImpl::GetComponentIconeList ( )
virtual

method to get a component list of component name and component icone

Returns
a list of couple (component name, component icone)

References SALOME_ModuleCatalogImpl::Private::_general_module_list, SALOME_ModuleCatalogImpl::Private::_personal_module_list, MESSAGE, MYDEBUG, and myPrivate.

SALOME_ModuleCatalog::ComponentDef * SALOME_ModuleCatalogImpl::GetComponentInfo ( const char name)
virtual

method to get a component description

Parameters
componentnameconst char* arguments
Returns
the wanted component description

References SALOME_ModuleCatalogImpl::Private::duplicate(), SALOME_ModuleCatalogImpl::Private::findComponent(), and myPrivate.

SALOME_ModuleCatalog::ListOfComponents * SALOME_ModuleCatalogImpl::GetComponentList ( )
virtual
SALOME_ModuleCatalog::ListOfComputers * SALOME_ModuleCatalogImpl::GetComputerList ( )
virtual

method to get a component list

Returns
a component list
char * SALOME_ModuleCatalogImpl::GetPathPrefix ( const char machinename)
virtual

method to get the PathPrefix of a computer

If the wanted computer doesn't exist, the Notfound exception is thrown

Parameters
machinenameconst char* arguments
Returns
the prefix path

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

SALOME_ModuleCatalog::ListOfTypeDefinition * SALOME_ModuleCatalogImpl::GetTypes ( )
virtual
void SALOME_ModuleCatalogImpl::ImportXmlCatalogFile ( const char xmlFileName)
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

Parameters
constchar* 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

Field Documentation

CORBA::ORB_ptr SALOME_ModuleCatalogImpl::_orb
private

Referenced by shutdown().