| 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/TeQuerierImpl.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_QUERIER_IMPL_H
    00027 #define  __TERRALIB_INTERNAL_QUERIER_IMPL_H
    00028
    00029 #include "TeQuerierParams.h"
    00030 #include "TeFactory.h"
    00031 #include "TeSharedPtr.h"
    00032
    00033 class TeTSEntry;
    00034 class TeTSParams;
    00035 class TeSTInstance;
    00036 class TeTemporalSeries;
    00037 class TeMultiGeometry;
    00038
    00040 class TL_DLL TeQuerierImpl
    00041 {
    00042 protected:
    00044            TeQuerierParams*                                       params_;
    00045            TeTemporalSeries*                                      ts_;
    00046            bool                                                                         filledSerie_;
    00047            TeSharedPtr<TeAttributeList>     attrList_;
    00048
    00049 public:
    00051            TeQuerierImpl(TeQuerierParams* par);
    00052
    00054            TeQuerierImpl( const TeQuerierImpl& other);
    00055
    00057            TeQuerierImpl& operator= (const TeQuerierImpl& other);
    00058
    00060            virtual ~TeQuerierImpl();
    00061
    00063            string objectId() { return params_->objId();}
    00064
    00066            TeTheme* theme() { return params_->theme();}
    00067
    00069            bool loadTimeFrameInstances(int frame=-1);
    00070
    00072            bool getTSEntry(TeTSEntry& tsEntry, int frame);
    00073
    00075            int getNumTimeFrames();
    00076
    00078            bool getTS(TeTemporalSeries& ts);
    00079
    00081            TeTSParams& getTSParams();
    00082
    00084            TeAttributeList getAttrList() { return (*attrList_); }
    00085
    00087            static TeQuerierImpl* DefaultObject(const TeQuerierParams& /*params*/)  { return 0; }
    00088
    00090            TeQuerierParams* params() { return params_; }
    00091
    00093            virtual bool loadInstances(TeTSEntry* ent=0) = 0;
    00094
    00096            virtual bool fetchInstance(TeSTInstance& stoi)= 0;
    00097
    00099            virtual bool loadGeometries(TeMultiGeometry& geometries, unsigned int& index) = 0;
    00100
    00102            virtual bool loadGeometries(TeMultiGeometry& geometries) = 0;
    00103
    00105            virtual int numElemInstances() { return 0;}
    00106
    00108            virtual void clear() { return; }
    00109 };
    00110
    00112 class TL_DLL TeQuerierImplFactory : public TeFactory<TeQuerierImpl, TeQuerierParams>
    00113 {
    00114 public:
    00116            TeQuerierImplFactory(const string& name) : TeFactory<TeQuerierImpl, TeQuerierParams>(name) { }
    00117
    00119            virtual ~TeQuerierImplFactory() {}
    00120 };
    00121
    00122 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines