TePDIStrategy.cpp

Go to the documentation of this file.
00001 #include "TePDIStrategy.hpp"
00002 #include "../kernel/TeAgnostic.h"
00003 
00004 TePDIStrategy::TePDIStrategy()
00005 {
00006   progress_interface_enabled_ = true;
00007 };      
00008 
00009 
00010 TePDIStrategy::~TePDIStrategy()
00011 {
00012 };
00013 
00014 
00015 TePDIStrategy* TePDIStrategy::DefaultObject( const TePDIParameters& )
00016 {
00017   TEAGN_LOG_AND_THROW( "Trying to build an invalid strategy instance" );
00018   return 0;
00019 }
00020 
00021 
00022 bool TePDIStrategy::Apply( const TePDIParameters& params )
00023 {
00024   TEAGN_TRUE_OR_RETURN( CheckParameters( params ), 
00025     "Parameter checking failed" );
00026     
00027   return Implementation( params );
00028 }
00029 
00030 
00031 void TePDIStrategy::ToggleProgInt( bool enabled )
00032 {
00033   progress_interface_enabled_ = enabled;
00034 }
00035 

Generated on Sun Jul 29 04:01:25 2012 for TerraLib - Development Source by  doxygen 1.5.3