1 // SALOME RessourcesCatalog : implementation of catalog resources parsing (SALOME_ModuleCatalog.idl)
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SALOME_RessourcesCatalog_impl.hxx
25 // Author : Estelle Deville
29 #ifndef RESSOURCESCATALOG_IMPL_H
30 #define RESSOURCESCATALOG_IMPL_H
32 #include "utilities.h"
33 #include "SALOME_RessourcesCatalog_Handler.hxx"
34 #include <SALOMEconfig.h>
35 #include CORBA_SERVER_HEADER(SALOME_RessourcesCatalog)
37 #if defined RESSOURCESCatalog_EXPORTS
39 #define RESSOURCESCatalog_EXPORT __declspec( dllexport )
41 #define RESSOURCESCatalog_EXPORT
45 #define RESSOURCESCatalog_EXPORT __declspec( dllimport )
47 #define RESSOURCESCatalog_EXPORT
51 class RESSOURCESCatalog_EXPORT SALOME_RessourcesCatalogImpl: public POA_SALOME_RessourcesCatalog::RessourcesCatalog,
52 public PortableServer::RefCountServantBase
55 //! standard constructor
56 SALOME_RessourcesCatalogImpl(int argc, char** argv);
58 //! standard destructor
59 virtual ~SALOME_RessourcesCatalogImpl();
61 //! method to get the ressources list
63 \return a computer list
65 virtual SALOME_RessourcesCatalog::ListOfComputer* GetComputerList();
67 //! method to get the container type list of a computer
69 \param computer const char* arguments
70 \return a container type list
72 virtual SALOME_RessourcesCatalog::ListOfContainerType* GetContainerTypeList(const char* computer) throw(SALOME_RessourcesCatalog::NotFound);
74 //! method to get informations on a computer
76 \param computer const char* arguments
77 \return informations of the computer
79 virtual SALOME_RessourcesCatalog::computer_info* GetComputerInfo(const char* computer) throw(SALOME_RessourcesCatalog::NotFound);
84 //! method to parse the data type catalog
86 \param file const char* arguments
87 \param datatypelist ListOfParserDataType arguments
89 virtual void _parse_xml_file(const char* file,
90 ListOfParserressources& ressourceslist);
93 //! method to verify ressources catalog content
95 \param ressourceslist ListOfParserRessources arguments
96 \return true if verfication is OK
98 virtual bool _verify_ressources(ListOfParserressources ressourceslist);
101 //! method to parse arguments to get catalog file
103 \param argc int arguments
104 \param argv char** arguments
105 \param _path char** arguments
106 \return true if parsing is OK
108 virtual bool _parseArguments(int argc, char **argv, char **_path);
110 //! method to create a list of processors information from the catalog parsing
112 \param list_procs ListOfParserProc arguments
113 \return the processors information list
115 virtual SALOME_RessourcesCatalog::ListOfProc
116 _duplicate_procs(ListOfParserProc list_procs);
119 // will contain the path to the ressources catalog
120 char* _path_ressources;
123 //will contain the informations on the data type catalog(after parsing)
124 ListOfParserressources _ressourceslist ;
127 #endif // RESSOURCESCATALOG_IMPL_H