Salome HOME
Test EXPORTS definition with target name as suggested by cmake
[modules/kernel.git] / src / ResourcesManager / SALOME_ResourcesCatalog_Handler.hxx
1 //  Copyright (C) 2007-2008  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.
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 //  SALOME ResourcesCatalog : implementation of catalog resources parsing (SALOME_ModuleCatalog.idl)
23 //  File   : SALOME_ResourcesCatalog_Handler.hxx
24 //  Author : Estelle Deville
25 //  Module : SALOME
26 //$Header$
27 //
28 #ifndef SALOME_RESOURCES_CATALOG_HANDLER
29 #define SALOME_RESOURCES_CATALOG_HANDLER
30
31
32 #include "ResourcesManager_Defs.hxx"
33
34 #include "SALOME_ResourcesCatalog_Parser.hxx"
35
36 #include <string>
37 #include <vector>
38
39 #include <libxml/parser.h>
40
41 class RESOURCESMANAGER_EXPORT SALOME_ResourcesCatalog_Handler
42 {
43   
44   public :
45     SALOME_ResourcesCatalog_Handler(MapOfParserResourcesType& resources_list,
46                                     MapOfParserResourcesType& resources_batch_list);
47
48     const MapOfParserResourcesType& GetResourcesAfterParsing() const;
49
50     virtual ~SALOME_ResourcesCatalog_Handler();
51
52     void ProcessXmlDocument(xmlDocPtr theDoc);
53   
54     void PrepareDocToXmlFile(xmlDocPtr theDoc);
55
56   private :
57     std::string previous_module_name;
58
59     ParserResourcesType _resource;
60     MapOfParserResourcesType& _resources_list;
61     MapOfParserResourcesType& _resources_batch_list;
62
63     const char *test_machine;
64     const char *test_resources;
65
66     const char *test_hostname;
67     const char *test_alias;
68     const char *test_protocol;
69     const char *test_mode;
70     const char *test_batch;
71     const char *test_mpi;
72     const char *test_user_name;
73     const char *test_appli_path;
74     const char *test_modules;
75     const char *test_module_name;
76     const char *test_os;
77     const char *test_mem_in_mb;
78     const char *test_cpu_freq_mhz;
79     const char *test_nb_of_nodes;
80     const char *test_nb_of_proc_per_node;
81     const char *test_batch_queue;
82     const char *test_user_commands;
83
84   };
85
86 #endif // SALOME_RESOURCES_CATALOG_HANDLER