]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/model/functor.txx
creaButtonContainer: Updates in documentation, adding try catch clauses and cleaning...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / model / functor.txx
index 7445586c554a448cba0ade9e5eb0bfbfb01c0833..42e660bfcc67e7f187db8c743eefc462f0e2a195 100644 (file)
@@ -1,11 +1,11 @@
-/***************************************************************
- * Name:      TFunctor
- * Purpose:   Call_Back Functions
- * Author:    Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
- * Modified:  2011-05-09
- * Copyright: Diego CACERES (http://www.creatis.insa-lyon.fr/~caceres/)
+/************************************************************************************//*!
+ * Name:      @file functor.cxx
+ * Purpose:   @brief implements TFunctor class and it propose is Call_Back Functions
+ * Author:    @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
+ * Modified:  2011-05-18
+ * Copyright:
  * License:
- **************************************************************/
+ ***************************************************************************************/
 
 namespace creaButtonContainer
 {
@@ -13,13 +13,15 @@ namespace creaButtonContainer
        {
                // constructor - takes pointer to an object and pointer to a member and stores
                // them in two private variables
+               // -------------------------------------------------------------------------------
                template< typename TClass >
                        TConcreteFunctor< TClass >::TConcreteFunctor( TClass* _pt2Object, void
                        (TClass::*_fpt)( const ButtonIDType &buttonName ) )
                        {
-                               pt2Object = _pt2Object;
-                               fpt = _fpt;
+                               this->pt2Object = _pt2Object;
+                               this->fpt = _fpt;
                        }
+               // -------------------------------------------------------------------------------
                // override operator "()" // execute member functions
                template< typename TClass >
                        void
@@ -27,6 +29,7 @@ namespace creaButtonContainer
                        {
                                ( *pt2Object.*fpt )( buttonName );
                        }
+               // -------------------------------------------------------------------------------
                // override function "Call" // execute member function
                template< typename TClass >
                        void