2 //----------------------------------------------------------------------------------------------------------------
3 // Class definition include
4 //----------------------------------------------------------------------------------------------------------------
5 #include "InstantMembersNameList.h"
7 //----------------------------------------------------------------------------------------------------------------
8 // Class implementation
9 //----------------------------------------------------------------------------------------------------------------
10 /** @file InstantMemberNameList.cxx */
12 //------------------------------------------------------------------------------------------------------------
13 // Constructors & Destructors
14 //------------------------------------------------------------------------------------------------------------
17 * Create the InstantMembersNameList with empty data pointers
19 InstantMembersNameList :: InstantMembersNameList()
21 actualAxeNamesWrapp = new NameWrapper("","");
22 actualSourceImageNamesWrapp = new NameWrapper("","");
23 actualSectionImageNamesWrapp = new NameWrapper("","");
24 actualOutlineNamesWrapp = new NameWrapper("","");
28 * Destroys the InstantMembersNameList
30 InstantMembersNameList :: ~InstantMembersNameList()
33 outlinesNamesVector.clear();
34 axesNamesVector.clear();
37 //------------------------------------------------------------------------------------------------------------
39 //------------------------------------------------------------------------------------------------------------
41 * Sets the actual outline names pair
42 * @param thekeyName The key name asigned to the actual outline
43 * @param theRealName The real name asigned to the actual outline
45 void InstantMembersNameList :: setActualOutline(std::string thekeyName, std::string theRealName )
47 actualOutlineNamesWrapp->setWrappingPair(thekeyName, theRealName);
51 * Sets the actual axes names pair
52 * @param thekeyName The key name asigned to the actual outline
53 * @param theRealName The real name asigned to the actual outline
55 void InstantMembersNameList :: addOutlineName(std::string thekeyName, std::string theRealName)
57 NameWrapper * outlineWrap = new NameWrapper (thekeyName, theRealName);
58 outlinesNamesVector.push_back(outlineWrap);
62 * Sets the actual axes names pair
63 * @param thekeyName The key name asigned to the actual axe
64 * @param theRealName The real name asigned to the actual axe
66 void InstantMembersNameList :: setActualAxeWrap(std::string thekeyName, std::string theRealName)
68 actualAxeNamesWrapp -> setWrappingPair(thekeyName, theRealName);
72 * Gets the actual axes key name
73 * @return actualAxeKeyName The key name asigned to the actual axe
75 std::string InstantMembersNameList :: getActualAxeKeyName()
77 return actualAxeNamesWrapp->getKeyName();
81 * Gets the actual axes key name
82 * @return actualSourceImageKeyName The key name asigned to the actual axe
84 std::string InstantMembersNameList :: getActualSourceImageKeyName()
86 return actualSourceImageNamesWrapp->getKeyName();
90 * Gets the actual axes key name
91 * @return actualSectionImageKeyName The key name asigned to the actual axe
93 std::string InstantMembersNameList :: getActualSectionImageKeyName()
95 return actualSourceImageNamesWrapp->getKeyName();
99 * Gets the vector of the key names of currect instant outlines
100 * @return vectorPairedNames The vector with the pair of outline names wrapping
102 std::vector<NameWrapper *> InstantMembersNameList :: getOutlinesNamesVector()
104 return outlinesNamesVector;
108 * Sets the actualSourceImage names pair
109 * @param thekeyName The key name asigned to the actual outline
110 * @param theRealName The real name asigned to the actual outline
112 void InstantMembersNameList :: setActualSourceImageNamesWrapp(std::string thekeyName, std::string theRealName)
114 actualSourceImageNamesWrapp = new NameWrapper(thekeyName,theRealName);
118 * Sets the actualSectionImage names pair
119 * @param thekeyName The key name asigned to the actual outline
120 * @param theRealName The real name asigned to the actual outline
122 void InstantMembersNameList :: setActualSectionImageNamesWrapp(std::string thekeyName, std::string theRealName)
124 actualSectionImageNamesWrapp = new NameWrapper(thekeyName,theRealName);
128 * Cleans the vector and the information of the instant members wrapping
130 void InstantMembersNameList :: clean()
134 if(!outlinesNamesVector.empty())
135 {while(outlinesNamesVector.size()>0)
136 outlinesNamesVector.pop_back();
138 if ( !axesNamesVector.empty())
140 while(axesNamesVector.size()>0)
141 axesNamesVector.pop_back();
144 outlinesNamesVector.clear();
145 axesNamesVector.clear();
147 delete actualAxeNamesWrapp;
148 delete actualSourceImageNamesWrapp;
149 delete actualSectionImageNamesWrapp;
150 delete actualOutlineNamesWrapp;*/