~ubuntu-branches/ubuntu/trusty/mapnik/trusty

« back to all changes in this revision

Viewing changes to plugins/input/sqlite/sqlite_featureset.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-05-20 15:39:58 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090520153958-cf6z1ql9zva4y4dq
Tags: 0.6.0-1ubuntu1
* Merge from debian unstable (LP: #378819), remaining changes:
  - debian/control:
    + Change bdeps from python2.5-dev to python-all-dev (>= 2.5)
    + Change XS-Python-Version from 2.5 to >= 2.5
  - debian/rules:
    + Various changes to enable python2.5 and python2.6 builds
* debian/patches/libtool2_2.diff Dropped. Included upsteam.
* Removed quilt support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************
 
2
 * 
 
3
 * This file is part of Mapnik (c++ mapping toolkit)
 
4
 *
 
5
 * Copyright (C) 2007 Artem Pavlenko
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU Lesser General Public
 
9
 * License as published by the Free Software Foundation; either
 
10
 * version 2.1 of the License, or (at your option) any later version.
 
11
 *
 
12
 * This library is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
 * Lesser General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU Lesser General Public
 
18
 * License along with this library; if not, write to the Free Software
 
19
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
20
 *
 
21
 *****************************************************************************/
 
22
//$Id$
 
23
 
 
24
#ifndef SQLITE_FEATURESET_HPP
 
25
#define SQLITE_FEATURESET_HPP
 
26
 
 
27
// mapnik
 
28
#include <mapnik/datasource.hpp>
 
29
#include <mapnik/unicode.hpp> 
 
30
#include <mapnik/wkb.hpp> 
 
31
 
 
32
// boost
 
33
#include <boost/scoped_ptr.hpp>
 
34
#include <boost/shared_ptr.hpp>
 
35
 
 
36
// sqlite
 
37
#include "sqlite_types.hpp"
 
38
  
 
39
  
 
40
class sqlite_featureset : public mapnik::Featureset
 
41
{
 
42
   public:
 
43
      sqlite_featureset(boost::shared_ptr<sqlite_resultset> rs,
 
44
                        std::string const& encoding,
 
45
                        mapnik::wkbFormat format,
 
46
                        bool multiple_geometries);
 
47
      virtual ~sqlite_featureset();
 
48
      mapnik::feature_ptr next();
 
49
   private:
 
50
      boost::shared_ptr<sqlite_resultset> rs_;
 
51
      boost::scoped_ptr<mapnik::transcoder> tr_;
 
52
      mapnik::wkbFormat format_;
 
53
      bool multiple_geometries_;
 
54
};
 
55
 
 
56
#endif // SQLITE_FEATURESET_HPP