* @file button.cxx
* @brief Implements the Button class implementation.
* @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
- * @date 2011-05-19
+ * @date 2011-05-24
*/
#include "button.h"
void
Button::Execute( )
{
- std::cout << "ButtonAction: " << this->m_ButtonPair->first->first
- << std::endl;
- TFunctor* vTable[ ] =
- { this->m_ButtonPair->second->second };
- vTable[ 0 ]->Call( this->m_ButtonPair->first->first );
+ try
+ {
+ std::cout << "ButtonAction: " << this->m_ButtonPair->first->first
+ << std::endl;
+ TFunctor* vTable[ ] =
+ { this->m_ButtonPair->second->second };
+ vTable[ 0 ]->Call( this->m_ButtonPair->first->first );
+ }//yrt
+ catch ( std::exception& e )
+ {
+ std::cerr << "Button::Execute( ) exception: " << e.what( ) << std::endl;
+ }//hctac
}
// ----------------------------------------------------------------------------------
}//ecapseman