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