1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 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
22 // SALOME ResourcesCatalog : implementation of catalog resources parsing (SALOME_ModuleCatalog.idl)
23 // File : SALOME_ResourcesCatalog_Handler.hxx
24 // Author : Estelle Deville
28 #ifndef SALOME_RESOURCES_CATALOG_HANDLER
29 #define SALOME_RESOURCES_CATALOG_HANDLER
32 #include "ResourcesManager_Defs.hxx"
34 #include "SALOME_ResourcesCatalog_Parser.hxx"
39 #include <libxml/parser.h>
41 class RESOURCESMANAGER_EXPORT SALOME_ResourcesCatalog_Handler
45 SALOME_ResourcesCatalog_Handler(MapOfParserResourcesType& resources_list,
46 MapOfParserResourcesType& resources_batch_list);
48 const MapOfParserResourcesType& GetResourcesAfterParsing() const;
50 virtual ~SALOME_ResourcesCatalog_Handler();
52 void ProcessXmlDocument(xmlDocPtr theDoc);
54 void PrepareDocToXmlFile(xmlDocPtr theDoc);
57 std::string previous_component_name;
59 ParserResourcesType _resource;
60 MapOfParserResourcesType& _resources_list;
61 MapOfParserResourcesType& _resources_batch_list;
63 const char *test_machine;
64 const char *test_resources;
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;
72 const char *test_user_name;
73 const char *test_appli_path;
75 const char *test_modules;
76 const char *test_module_name;
77 const char *test_components;
78 const char *test_component_name;
80 const char *test_mem_in_mb;
81 const char *test_cpu_freq_mhz;
82 const char *test_nb_of_nodes;
83 const char *test_nb_of_proc_per_node;
84 const char *test_batch_queue;
85 const char *test_user_commands;
89 #endif // SALOME_RESOURCES_CATALOG_HANDLER