Salome HOME
Porting to Mandrake 10.1 and new products:
[modules/kernel.git] / src / Batch / Batch_FactBatchManager.cxx
1 /*
2  * FactBatchManager.cxx : 
3  *
4  * Auteur : Ivan DUTKA-MALEN - EDF R&D
5  * Date   : Septembre 2004
6  * Projet : SALOME 2
7  *
8  */
9
10 #include <string>
11 #include <sstream>
12 #include "Batch_BatchManagerCatalog.hxx"
13 #include "Batch_FactBatchManager.hxx"
14 #include "utilities.h"
15 using namespace std;
16
17 namespace Batch {
18
19   // Constructeur
20   FactBatchManager::FactBatchManager(const string & _t) : type(_t)
21   {
22     BatchManagerCatalog::addFactBatchManager(type.c_str(), this);
23     ostringstream msg;
24     msg << "FactBatchManager of type '" << type << "' inserted into catalog";
25     MESSAGE(msg.str().c_str());
26   }
27
28   // Destructeur
29   FactBatchManager::~FactBatchManager()
30   {
31     // Nothing to do
32   }
33
34   // Accesseur
35   string FactBatchManager::getType() const
36   {
37     return type;
38   }
39
40   string FactBatchManager::__repr__() const
41   {
42     ostringstream oss;
43     oss << "<FactBatchManager of type '" << type << "'>";
44     return oss.str();
45   }
46
47 }