Salome HOME
Bug IPAL19413 - Qt4 porting: import salome_test fails
[modules/kernel.git] / src / ResourcesManager / SALOME_ResourcesCatalog_Handler.hxx
1 //  SALOME ResourcesCatalog : implementation of catalog resources parsing (SALOME_ModuleCatalog.idl)
2 //
3 //  Copyright (C) 2003  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.
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 //
24 //  File   : SALOME_ResourcesCatalog_Handler.hxx
25 //  Author : Estelle Deville
26 //  Module : SALOME
27 //$Header$
28
29 #ifndef SALOME_RESOURCES_CATALOG_HANDLER
30 #define SALOME_RESOURCES_CATALOG_HANDLER
31
32 #include "SALOME_ResourcesCatalog_Parser.hxx"
33
34 #include <string>
35 #include <vector>
36
37 #include <libxml/parser.h>
38
39 class SALOME_ResourcesCatalog_Handler
40 {
41   
42   public :
43     SALOME_ResourcesCatalog_Handler(MapOfParserResourcesType& listOfResources);
44
45     const MapOfParserResourcesType& GetResourcesAfterParsing() const;
46
47     virtual ~SALOME_ResourcesCatalog_Handler();
48
49     void ProcessXmlDocument(xmlDocPtr theDoc);
50   
51     void PrepareDocToXmlFile(xmlDocPtr theDoc);
52
53   private :
54     std::string previous_module_name;
55
56     ParserResourcesType _resource;
57     MapOfParserResourcesType& _resources_list;
58
59     const char *test_machine;
60     const char *test_resources;
61
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;
67     const char *test_mpi;
68     const char *test_user_name;
69     const char *test_appli_path;
70     const char *test_modules;
71     const char *test_module_name;
72     const char *test_os;
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;
77
78   };
79
80 #endif // SALOME_RESOURCES_CATALOG_HANDLER