]> Creatis software - creaContours.git/blob - lib/kernel_ManagerContour_NDimensions/KeyThing.cxx
7b5a68b4d6dbb5e465f52fc38b2ceb890569be16
[creaContours.git] / lib / kernel_ManagerContour_NDimensions / KeyThing.cxx
1
2 //----------------------------------------------------------------------------------------------------------------
3 // Class definition include
4 //----------------------------------------------------------------------------------------------------------------
5 #include "KeyThing.h"
6
7
8 //----------------------------------------------------------------------------------------------------------------
9 // Class implementation
10 //----------------------------------------------------------------------------------------------------------------
11 /** @file KeyThing.cxx */
12
13
14         /*
15         * Creates the key thing 
16         * @param thePrefix Is the prefix of the new keyThing for the key generation correponding to the new keyThing
17         * @param theValue Is the value of the intial key generation correponding to the new keyThing
18         */
19         KeyThing :: KeyThing(std::string thePrefix, int theValue)
20         {
21                 setPrefix( thePrefix );
22                 setValue( theValue );
23         }
24
25         /*
26         * Destroys the key thing        
27         */
28         KeyThing :: ~KeyThing()
29         {
30
31         }
32
33         
34 //------------------------------------------------------------------------------------------------------------
35 // Public Methods
36 //------------------------------------------------------------------------------------------------------------
37
38         /*
39         * Sets the prefix of the keyThing
40         */
41         void KeyThing :: setPrefix( std::string aPrefix)
42         {
43                 prefix = aPrefix;
44         }
45         
46         /*
47         * Sets the value value of the keyThing
48         * @param aValue The valueimum to set
49         */
50         void KeyThing :: setValue (int aValue)
51         {
52                 value = aValue;
53         }
54
55         /*
56         * Gets the prefix of the keyThing
57         * @return prefix The setted prefix
58         */
59         std::string KeyThing :: getPrefix()
60         {
61                 return prefix;
62         }
63         
64         /*
65         * Gets the value value of the keyThing
66         * @return value The setted valueimum
67         */
68         int KeyThing :: getValue()
69         {
70                 return value;
71         }
72  
73