| 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/kernel/TeRepresentation.h
Go to the documentation of this file.

    00001 /************************************************************************************
    00002 TerraLib - a library for developing GIS applications.
    00003 Copyright © 2001-2007 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 purpose.
    00017 The library provided hereunder is on an "as is" basis, and the authors have no
    00018 obligation to provide maintenance, support, updates, enhancements, or modifications.
    00019 In no event shall INPE and Tecgraf / PUC-Rio be held liable to any party for direct,
    00020 indirect, special, incidental, or consequential damages arising out of the use
    00021 of this library and its documentation.
    00022 *************************************************************************************/
    00026 #ifndef  __TERRALIB_INTERNAL_REPRESENTATION_H
    00027 #define  __TERRALIB_INTERNAL_REPRESENTATION_H
    00028
    00029 #include "TeDataTypes.h"
    00030 #include "TeBox.h"
    00031
    00032 #include <algorithm>
    00033 #include <string>
    00034
    00036 struct TL_DLL TeRepresentation
    00037 {
    00038            int id_;
    00039            TeGeomRep geomRep_;
    00040            std::string           tableName_;
    00041            TeBox      box_;
    00042            std::string           description_;
    00043            double     resX_;
    00044            double     resY_;
    00045            int                   nCols_;
    00046            int                   nLins_;
    00047
    00049            TeRepresentation() :
    00050                       resX_(0.0),
    00051                       resY_(0.0),
    00052                       nCols_(0),
    00053                       nLins_(0)
    00054                       {}
    00055 };
    00056
    00058 class TL_DLL TeRepres_eq : public unary_function<TeRepresentation*,bool>
    00059 {
    00060            TeGeomRep r;
    00061 public:
    00062            explicit TeRepres_eq(TeGeomRep rr): r(rr) {}
    00063            bool operator()(const TeRepresentation* rep) const { return rep->geomRep_ == r; }
    00064 };
    00065
    00067 typedef std::vector<TeRepresentation* >::iterator TeRepresPointerVectorIterator;
    00068
    00070 typedef std::vector<TeRepresentation* > TeRepresPointerVector;
    00071
    00073 TL_DLL TeRepresPointerVectorIterator
    00074 TeFindRepresentation(TeRepresPointerVectorIterator begin, TeRepresPointerVectorIterator end, TeGeomRep rep);
    00075
    00076 #endif
    00077
    00078

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines