Salome HOME
Added support for Microsoft Visual C++ (also experimental)
[tools/libbatch.git] / src / Local / Batch_BatchManager_Local_SH.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 /*
23  * BatchManager_Local_SH.hxx :
24  *
25  * Auteur : Ivan DUTKA-MALEN - EDF R&D
26  * Mail   : mailto:ivan.dutka-malen@der.edf.fr
27  * Date   : Thu Nov  6 10:17:22 2003
28  * Projet : Salome 2
29  *
30  */
31
32 #ifndef _BATCHMANAGER_LOCAL_SH_H_
33 #define _BATCHMANAGER_LOCAL_SH_H_
34
35 #include "Batch_Defines.hxx"
36
37 #include <vector>
38 #include <map>
39 #include <queue>
40 #include <deque>
41 #include <pthread.h>
42 #include "Batch_Job.hxx"
43 #include "Batch_JobId.hxx"
44 #include "Batch_JobInfo.hxx"
45 #include "Batch_JobInfo_Local.hxx"
46 #include "Batch_Job_Local.hxx"
47 #include "Batch_InvalidArgumentException.hxx"
48 #include "Batch_ConnexionFailureException.hxx"
49 #include "Batch_APIInternalFailureException.hxx"
50 #include "Batch_NotYetImplementedException.hxx"
51 #include "Batch_BatchManager_Local.hxx"
52
53 namespace Batch {
54
55   class FactBatchManager;
56
57   class BATCH_EXPORT BatchManager_Local_SH : public BatchManager_Local
58   {
59   public:
60     // Constructeur et destructeur
61     BatchManager_Local_SH(const FactBatchManager * parent, const char * host="localhost") throw(InvalidArgumentException,ConnexionFailureException); // connexion a la machine host
62     virtual ~BatchManager_Local_SH();
63
64   protected:
65     std::string fixPath(const std::string & path) const;
66
67     // Methode qui renvoie la commande de copie du fichier source en destination
68     virtual std::string copy_command( const std::string & user_source,
69                                       const std::string & host_source,
70                                       const std::string & source,
71                                       const std::string & user_destination,
72                                       const std::string & host_destination,
73                                       const std::string & destination) const;
74
75     // Methode qui renvoie la commande a executer
76     virtual std::string exec_command(Parametre & param) const;
77
78     // Methode qui renvoie la commande d'effacement du fichier
79     virtual std::string remove_command( const std::string & user_destination,
80                                         const std::string & host_destination,
81                                         const std::string & destination) const;
82
83   };
84
85 }
86
87 #endif