| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDIParameters.hpp
Go to the documentation of this file.

    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
    00030 #ifndef TEPDIPARAMETERS_HPP
    00031   #define TEPDIPARAMETERS_HPP
    00032
    00033   #include "TePDITypes.hpp"
    00034
    00035   #include "../kernel/TeMultiContainer.h"
    00036
    00037   #include <string>
    00038
    00046   class PDI_DLL TePDIParameters : protected
    00047     TeMultiContainer< std::string >
    00048   {
    00049     public :
    00050
    00053       typedef TeSharedPtr< TePDIParameters > pointer;
    00054
    00057       typedef const TeSharedPtr< TePDIParameters > const_pointer;
    00058
    00062       TePDIParameters();
    00063
    00068       TePDIParameters( const TePDIParameters& external );
    00069
    00073       ~TePDIParameters();
    00074
    00080       void SetdecName( const std::string& dec_name );
    00081
    00087       std::string decName() const;
    00088
    00096       bool operator==( const TePDIParameters& ext_instance ) const;
    00097
    00105       bool operator!=( const TePDIParameters& ext_instance ) const;
    00106
    00113       const TePDIParameters& operator=( const TePDIParameters& ext_instance );
    00114
    00119       void Clear();
    00120
    00127       template< typename DataT >
    00128       void SetParameter( const std::string& pname,
    00129                          const DataT& data )
    00130       {
    00131         TeMultiContainer< std::string >::store( pname, data );
    00132       };
    00133
    00141       template< typename DataT >
    00142       bool GetParameter( const std::string& pname,
    00143                          DataT& data ) const
    00144       {
    00145         return TeMultiContainer< std::string >::retrive( pname, data );
    00146       };
    00147
    00155       template< typename DataT >
    00156       bool CheckParameter( const std::string& pname ) const
    00157       {
    00158         return TeMultiContainer< std::string >::isStored< DataT >( pname );
    00159       };
    00160
    00166       void RemoveParameter( const std::string& pname )
    00167       {
    00168         TeMultiContainer< std::string >::remove( pname );
    00169       };
    00170
    00171 };
    00172
    00177 #endif //TEPDIPARAMETERS_HPP

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines