Version: 8.3.0
SALOME_ModuleCatalog_impl.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 
23 // SALOME ModuleCatalog : implementation of ModuleCatalog server which parsers xml description of modules
24 // File : SALOME_ModuleCatalog_impl.hxx
25 // Author : Estelle Deville
26 // Module : SALOME
27 // $Header$
28 //
29 #ifndef MODULECATALOG_IMPL_H
30 #define MODULECATALOG_IMPL_H
31 
32 #include "SALOME_ModuleCatalog.hxx"
33 
34 #include <string>
35 #include <map>
36 
37 #include <SALOMEconfig.h>
38 #include CORBA_SERVER_HEADER(SALOME_ModuleCatalog)
39 
40 #ifdef WIN32
41 #pragma warning(disable:4275) // Disable warning interface non dll
42 #pragma warning(disable:4290) // Warning Exception ...
43 #endif
44 
45 class MODULECATALOG_EXPORT SALOME_ModuleCatalogImpl: public POA_SALOME_ModuleCatalog::ModuleCatalog
46 {
47  class Private;
48 
49 public:
51  SALOME_ModuleCatalogImpl(int artgc, char** argv, CORBA::ORB_ptr orb = NULL);
52 
54  virtual ~SALOME_ModuleCatalogImpl();
55 
57 
60  virtual SALOME_ModuleCatalog::ListOfComputers* GetComputerList();
61 
63 
67 
69 
73  virtual char* GetPathPrefix(const char* machinename);
74 
76 
79  virtual void ImportXmlCatalogFile(const char* xmlFileName);
80 
82 
85  virtual SALOME_ModuleCatalog::ListOfComponents* GetComponentList();
86 
88 
91  virtual SALOME_ModuleCatalog::ListOfIAPP_Affich* GetComponentIconeList();
92 
94 
98  GetTypedComponentList(SALOME_ModuleCatalog::ComponentType component_type);
99 
101 
105  virtual SALOME_ModuleCatalog::Acomponent_ptr
106  GetComponent(const char* componentname);
107 
109 
114  GetComponentInfo(const char *name);
115 
117  void ping();
118 
120  CORBA::Long getPID();
121 
123  void ShutdownWithExit();
124 
126  void shutdown();
127 
128 private:
130 
136  virtual bool _parseArguments(int argc, char **argv,
137  char **_general, char** _personal);
138 
139 
140  CORBA::ORB_ptr _orb;
142 };
143 
144 #endif // MODULECATALOG_IMPL_H