]> SALOME platform Git repositories - modules/kernel.git/blob - src/Batch/Batch_MapKey.hxx
Salome HOME
PR: mergefrom_BR_BATCH_22Oct04
[modules/kernel.git] / src / Batch / Batch_MapKey.hxx
1 /*
2  * MapKey.hxx : 
3  *
4  * Auteur : Ivan DUTKA-MALEN - EDF R&D
5  * Mail   : mailto:ivan.dutka-malen@der.edf.fr
6  * Date   : Tue Oct 14 14:00:29 2003
7  * Projet : Salome 2
8  *
9  */
10
11 #ifndef _MAPKEY_H_
12 #define _MAPKEY_H_
13
14
15 using namespace std;
16 #include <string>
17
18 namespace Batch {
19
20   // une classe privee pour les differents types
21   // ces types ne peuvent pas etre redefinis
22   class MapKey : public string
23   {
24   private:
25     friend class Parametre; // seule la classe Parametre peut creer des MapKey
26     MapKey() : string() {}
27     MapKey(const MapKey & mk, size_type pos, size_type npos) : string(mk, pos, npos) {}
28     MapKey(const char * s, size_type n) : string(s, n) {}
29     MapKey(const char * s) : string(s) {}
30     MapKey(size_type n, char c) : string(n, c) {}
31 #ifdef __STL_MEMBER_TEMPLATES
32     template<class InputIterator>
33     MapKey(InputIterator __begin, InputIterator __end) : string(__begin, __end) {}
34 #else
35     MapKey(const_iterator __begin, const_iterator __end) : string(__begin, __end) {}
36 #endif
37
38   public:
39     MapKey(const MapKey & mk) : string(mk) {}
40
41   };
42
43 }
44
45 #endif
46
47 // COMMENTS