1 // SALOME ResourcesCatalog : 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 // File : SALOME_ResourcesCatalog_Handler.hxx
25 // Author : Estelle Deville
29 #ifndef SALOME_RESOURCES_CATALOG_HANDLER
30 #define SALOME_RESOURCES_CATALOG_HANDLER
32 #include "SALOME_ResourcesCatalog_Parser.hxx"
37 #include <libxml/parser.h>
39 class SALOME_ResourcesCatalog_Handler
43 SALOME_ResourcesCatalog_Handler(MapOfParserResourcesType& listOfResources);
45 const MapOfParserResourcesType& GetResourcesAfterParsing() const;
47 virtual ~SALOME_ResourcesCatalog_Handler();
49 void ProcessXmlDocument(xmlDocPtr theDoc);
51 void PrepareDocToXmlFile(xmlDocPtr theDoc);
54 std::string previous_module_name;
56 ParserResourcesType _resource;
57 MapOfParserResourcesType& _resources_list;
59 const char *test_machine;
60 const char *test_resources;
62 const char *test_hostname;
63 const char *test_alias;
64 const char *test_protocol;
65 const char *test_mode;
66 const char *test_batch;
68 const char *test_user_name;
69 const char *test_appli_path;
70 const char *test_modules;
71 const char *test_module_name;
73 const char *test_mem_in_mb;
74 const char *test_cpu_freq_mhz;
75 const char *test_nb_of_nodes;
76 const char *test_nb_of_proc_per_node;
80 #endif // SALOME_RESOURCES_CATALOG_HANDLER