Salome HOME
Copyrights update
[modules/kernel.git] / src / Batch / Batch_FactBatchManager_PBS.cxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/
19 //
20 /*
21  * FactBatchManager_PBS.cxx : 
22  *
23  * Auteur : Ivan DUTKA-MALEN - EDF R&D
24  * Date   : Septembre 2004
25  * Projet : SALOME 2
26  *
27  */
28
29 #include <string>
30 #include "Batch_BatchManager_PBS.hxx"
31 #include "Batch_FactBatchManager_PBS.hxx"
32 #include "utilities.h"
33 using namespace std;
34
35 namespace Batch {
36
37   static FactBatchManager_PBS sFBM_PBS;
38
39   // Constructeur
40   FactBatchManager_PBS::FactBatchManager_PBS() : FactBatchManager("PBS")
41   {
42     // Nothing to do
43   }
44
45   // Destructeur
46   FactBatchManager_PBS::~FactBatchManager_PBS()
47   {
48     // Nothing to do
49   }
50
51   // Functor
52   BatchManager * FactBatchManager_PBS::operator() (const char * hostname) const
53   {
54     MESSAGE("Building new BatchManager_PBS on host '" << hostname << "'");
55     return new BatchManager_PBS(this, hostname);
56   }
57
58
59 }