TerraLib 4.1
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeQuerier.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 *************************************************************************************/
00027 #ifndef  __TERRALIB_INTERNAL_QUERIER_H
00028 #define  __TERRALIB_INTERNAL_QUERIER_H
00029 
00030 #include "TeSTInstance.h"
00031 #include "TeTemporalSeries.h"
00032 
00033 #include "TeQuerierDBStr1.h"
00034 #include "TeQuerierDBStr2.h"
00035 #include "TeQuerierDBStr3.h"
00036 
00037 class TeQuerierParams;
00038 class TeQuerierImpl; 
00039 
00052 class TL_DLL TeQuerier
00053 {
00054 protected:
00055                       TeQuerierImpl*                   Impl_;                
00056                       
00057 public:    
00059                       TeQuerier():
00060                                  Impl_(0)
00061                                  {} 
00062                                  
00064                       TeQuerier(TeQuerierParams& params);
00065 
00067                       TeQuerier(const TeQuerier& other);
00068 
00070                       TeQuerier& operator= (const TeQuerier& other);
00071                                             
00073                       ~TeQuerier(); 
00074                       
00076                       TeTheme* theme();
00077                       
00079                       bool loadInstances(int frame=-1);  
00080                       
00082                       bool fetchInstance(TeSTInstance&  sto);
00083 
00085                       int getNumTimeFrames(); 
00086 
00088                       bool getTSEntry(TeTSEntry& tsEntry, int frame);
00089                       
00091                       bool getTS(TeTemporalSeries& ts); 
00092                       
00094                       TeTSParams& getTSParams();
00095                       
00097                       TeAttributeList getAttrList();
00098 
00100                       TeBox      getBox();
00101 
00103                       int numElemInstances(); 
00104 
00106                       TeQuerierParams& params(); 
00107 
00109                       void clear(); 
00110 
00112                       void refresh(TeQuerierParams& params); 
00113                       
00115                       bool loadGeometries(TeMultiGeometry& geometries, unsigned int& index); 
00116 
00118                       bool loadGeometries(TeMultiGeometry& geometries);
00119 };
00120 
00151 #endif 
00152 
00153 
00154 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines