]> Creatis software - creaContours.git/blob - lib/kernel_ManagerContour_NDimensions/NameWrapper.h
608f949e63cbed1ea5bcbe65f4da04c7baebe544
[creaContours.git] / lib / kernel_ManagerContour_NDimensions / NameWrapper.h
1 #ifndef __NAME_WRAPPER__
2 #define __NAME_WRAPPER__
3
4
5
6 //------------------------------------------------------------------------------------------------------------
7 // Includes
8 //------------------------------------------------------------------------------------------------------------
9 #include <iostream>
10
11 class NameWrapper{
12
13 //------------------------------------------------------------------------------------------------------------
14 // Constructors & Destructors
15 //------------------------------------------------------------------------------------------------------------
16 public:
17
18         /*
19         * Creates the NameWrapper
20         * @param thekeyName The key name
21         * @param theRealName  The real name
22         * @return Returns the created NameWrapper 
23         */
24         NameWrapper(std::string thekeyName, std::string theRealName);
25
26         /*
27         * Destroys the NameWrapper
28         */
29         ~NameWrapper();
30 //------------------------------------------------------------------------------------------------------------
31 // Methods
32 //------------------------------------------------------------------------------------------------------------
33
34         /*
35         * Sets the names pair to wrapp
36         * @param thekeyName The key name
37         * @param theRealName  The real name
38         */
39         void setWrappingPair(std::string thekeyName, std::string theRealName );
40
41         /*
42         * Gets the wrapped key name
43         * @param keyName The key name
44         */
45         std::string getKeyName();
46
47         /*
48         * Gets the wrapped real name
49         * @param realName The real name
50         */
51         std::string getRealName();      
52
53 //------------------------------------------------------------------------------------------------------------
54 // Constants
55 //------------------------------------------------------------------------------------------------------------
56
57 private:        
58 //------------------------------------------------------------------------------------------------------------
59 // Attributes
60 //------------------------------------------------------------------------------------------------------------
61
62         /*
63         * The wrapped key name
64         */
65         std::string keyName;
66
67         /*
68         * The wrapped real name
69         */
70         std::string realName;
71         
72 };
73 #endif