Salome HOME
c8123cbfd263b6259d28f9fccafcb02b4fea51a5
[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
16 namespace Batch {
17
18   // Constructeur
19   FactBatchManager::FactBatchManager(const string & _t) : type(_t)
20   {
21     BatchManagerCatalog::addFactBatchManager(type.c_str(), this);
22     ostringstream msg;
23     msg << "FactBatchManager of type '" << type << "' inserted into catalog";
24     MESSAGE(msg.str().c_str());
25   }
26
27   // Destructeur
28   FactBatchManager::~FactBatchManager()
29   {
30     // Nothing to do
31   }
32
33   // Accesseur
34   string FactBatchManager::getType() const
35   {
36     return type;
37   }
38
39   string FactBatchManager::__repr__() const
40   {
41     ostringstream oss;
42     oss << "<FactBatchManager of type '" << type << "'>";
43     return oss.str();
44   }
45
46 }