Umasoft
Main Page
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
TerrainSDK
minidata
LocalDatabuf.h
1
//
2
// LocalDatabuf.h: a wrapper for the Databuf class which is found either in
3
// in vtdata or libMini.
4
//
5
// Copyright (c) 2008 Virtual Terrain Project
6
// Free for all uses, see license.txt for details.
7
//
8
9
#ifndef LocalDatabuf_H
10
#define LocalDatabuf_H
11
12
#define USE_LIBMINI_DATABUF 1
13
14
#include "MiniDatabuf.h"
15
16
#if USE_LIBMINI_DATABUF
17
18
#include <database.h>
// part of libMini
19
20
// Directly subclass from libMini
21
class
vtMiniDatabuf
:
public
databuf
22
{
23
public
:
24
// A useful method to set the extents (in local CRS) and the corners
25
// (in Geo WGS84) at the same time.
26
bool
SetBounds(
const
vtProjection
&proj,
const
DRECT
&extents);
27
};
28
29
#else // not USE_LIBMINI_DATABUF
30
31
// Simply use the implementation in vtdata
32
class
vtMiniDatabuf
:
public
MiniDatabuf
{};
33
34
#endif // USE_LIBMINI_DATABUF
35
36
#endif // LocalDatabuf_H
Generated on Fri Jun 7 2013 16:07:51 for Umasoft by
1.8.4