![]() |
TerraLib 4.1
|
00001 /* 00002 TerraLib - a library for developing GIS applications. 00003 Copyright 2001, 2002, 2003 INPE and Tecgraf/PUC-Rio. 00004 00005 This code is part of the TerraLib library. 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Lesser General Public 00008 License as published by the Free Software Foundation; either 00009 version 2.1 of the License, or (at your option) any later version. 00010 00011 You should have received a copy of the GNU Lesser General Public 00012 License along with this library. 00013 00014 The authors reassure the license terms regarding the warranties. 00015 They specifically disclaim any warranties, including, but not limited to, 00016 the implied warranties of merchantability and fitness for a particular 00017 purpose. The library provided hereunder is on an "as is" basis, and the 00018 authors have no obligation to provide maintenance, support, updates, 00019 enhancements, or modifications. 00020 In no event shall INPE be held liable to any party 00021 for direct, indirect, special, incidental, or consequential damages arising 00022 out of the use of this library and its documentation. 00023 */ 00024 00025 #ifndef TEPDISTRATEGY_HPP 00026 #define TEPDISTRATEGY_HPP 00027 00028 #include "../kernel/TeSharedPtr.h" 00029 #include "TePDIParameters.hpp" 00030 00031 #include <string> 00032 00041 class PDI_DLL TePDIStrategy 00042 { 00043 // friend class TePDIStrategyFactory; 00044 00045 public : 00048 typedef TeSharedPtr< TePDIStrategy > pointer; 00049 00052 typedef const TeSharedPtr< TePDIStrategy > const_pointer; 00053 00057 virtual ~TePDIStrategy(); 00058 00064 static TePDIStrategy* DefaultObject( 00065 const TePDIParameters& params ); 00066 00076 virtual bool CheckParameters( 00077 const TePDIParameters& parameters ) const = 0; 00078 00086 bool Apply( const TePDIParameters& params ); 00087 00093 void ToggleProgInt( bool enabled ); 00094 00095 protected : 00096 00098 mutable bool progress_interface_enabled_; 00099 00105 TePDIStrategy(); 00106 00112 virtual bool Implementation( const TePDIParameters& params ) = 0; 00113 00114 }; 00115 00116 #endif 00117 00118 00119