NameWrapper.h

Go to the documentation of this file.
00001 #ifndef __NAME_WRAPPER__
00002 #define __NAME_WRAPPER__
00003 
00004 
00005 
00006 //------------------------------------------------------------------------------------------------------------
00007 // Includes
00008 //------------------------------------------------------------------------------------------------------------
00009 #include <iostream>
00010 
00011 class NameWrapper{
00012 
00013 //------------------------------------------------------------------------------------------------------------
00014 // Constructors & Destructors
00015 //------------------------------------------------------------------------------------------------------------
00016 public:
00017 
00018         /*
00019         * Creates the NameWrapper
00020         * @param thekeyName The key name
00021         * @param theRealName  The real name
00022         * @return Returns the created NameWrapper 
00023         */
00024         NameWrapper(std::string thekeyName, std::string theRealName);
00025 
00026         /*
00027         * Destroys the NameWrapper
00028         */
00029         ~NameWrapper();
00030 //------------------------------------------------------------------------------------------------------------
00031 // Methods
00032 //------------------------------------------------------------------------------------------------------------
00033 
00034         /*
00035         * Sets the names pair to wrapp
00036         * @param thekeyName The key name
00037         * @param theRealName  The real name
00038         */
00039         void setWrappingPair(std::string thekeyName, std::string theRealName );
00040 
00041         /*
00042         * Gets the wrapped key name
00043         * @param keyName The key name
00044         */
00045         std::string getKeyName();
00046 
00047         /*
00048         * Gets the wrapped real name
00049         * @param realName The real name
00050         */
00051         std::string getRealName();      
00052 
00053 //------------------------------------------------------------------------------------------------------------
00054 // Constants
00055 //------------------------------------------------------------------------------------------------------------
00056 
00057 private:        
00058 //------------------------------------------------------------------------------------------------------------
00059 // Attributes
00060 //------------------------------------------------------------------------------------------------------------
00061 
00062         /*
00063         * The wrapped key name
00064         */
00065         std::string keyName;
00066 
00067         /*
00068         * The wrapped real name
00069         */
00070         std::string realName;
00071         
00072 };
00073 #endif

Generated on Wed Jun 27 23:28:33 2012 for creaContours_lib by  doxygen 1.5.7.1