World Ocean Simulation System (WOSS) library
bathymetry-utm-csv-db-creator.h
1/* WOSS - World Ocean Simulation System -
2 *
3 * Copyright (C) 2009 Federico Guerra
4 * and regents of the SIGNET lab, University of Padova
5 *
6 * Author: Federico Guerra - federico@guerra-tlc.com
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation;
11 *
12 * This program 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
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21
22/*
23 * This software has been developed by Federico Guerra and SIGNET lab,
24 * University of Padova, in collaboration with the NATO Centre for
25 * Maritime Research and Experimentation (http://www.cmre.nato.int ;
26 * E-mail: pao@cmre.nato.int), whose support is gratefully acknowledged.
27 */
28
29
40#ifndef WOSS_BATHYMETRY_UMT_CSV_DB_CREATOR_H
41#define WOSS_BATHYMETRY_UMT_CSV_DB_CREATOR_H
42
43#include <utility>
44#include "woss-db-creator.h"
45
46
47namespace woss {
48
49
57
58
59 public:
60
61
66
67 virtual ~BathyUtmCsvDbCreator();
68
69
74 virtual WossDb* const createWossDb();
75
82 BathyUtmCsvDbCreator& setCSVSeparator( const char new_separator ) { separator = new_separator; return *this; }
83
89 const char getCSVSeparator() const { return separator; }
90
97 BathyUtmCsvDbCreator& setDbSpacing( double spacing ) { db_spacing = spacing; return *this; }
98
104 double getDbSpacing() const { return db_spacing; }
105
113 BathyUtmCsvDbCreator& setDbTotalValues(int nnorth, int neast) {
114 total_northing_values = nnorth;
115 total_easting_values = neast;
116 return *this;
117 }
118
124 std::pair<int, int> getDbTotalValues() const {
125 return std::make_pair(total_northing_values, total_easting_values);
126 }
127
135 BathyUtmCsvDbCreator& setDbRangeEasting(double start, double end) {
136 range_easting_start = start;
137 range_easting_end = end;
138 return *this;
139 }
140
146 std::pair<double, double> getDbRangeEasting() const {
147 return std::make_pair(range_easting_start, range_easting_end);
148 }
149
157 BathyUtmCsvDbCreator& setDbRangeNorthing(double start, double end) {
158 range_northing_start = start;
159 range_northing_end = end;
160 return *this;
161 }
162
168 std::pair<double, double> getDbRangeNorthing() const {
169 return std::make_pair( range_northing_start, range_northing_end);
170 }
171
179 return *this;
180 }
181
190
191 protected:
192
195 double db_spacing;
216 virtual bool initializeDb( WossDb* const woss_db );
217
218
219 };
220
221}
222
223
224#endif /* WOSS_BATHYMETRY_UMT_CSV_DB_CREATOR_H */
225
WossDbCreator for the UMT CSV bathymetry database.
Definition bathymetry-utm-csv-db-creator.h:56
BathyUtmCsvDbCreator & setDbRangeNorthing(double start, double end)
Definition bathymetry-utm-csv-db-creator.h:157
std::pair< int, int > getDbTotalValues() const
Definition bathymetry-utm-csv-db-creator.h:124
int total_northing_values
Definition bathymetry-utm-csv-db-creator.h:197
double getDbSpacing() const
Definition bathymetry-utm-csv-db-creator.h:104
double range_northing_start
Definition bathymetry-utm-csv-db-creator.h:205
BathyUtmCsvDbCreator()
Definition bathymetry-utm-csv-db-creator.cpp:39
BathyUtmCsvDbCreator & setLandApproximationFlag(bool flag)
Definition bathymetry-utm-csv-db-creator.h:177
bool getLandApproximationFlag()
Definition bathymetry-utm-csv-db-creator.h:187
int total_easting_values
Definition bathymetry-utm-csv-db-creator.h:199
double range_easting_end
Definition bathymetry-utm-csv-db-creator.h:203
BathyUtmCsvDbCreator & setDbTotalValues(int nnorth, int neast)
Definition bathymetry-utm-csv-db-creator.h:113
std::pair< double, double > getDbRangeNorthing() const
Definition bathymetry-utm-csv-db-creator.h:168
double range_northing_end
Definition bathymetry-utm-csv-db-creator.h:207
std::pair< double, double > getDbRangeEasting() const
Definition bathymetry-utm-csv-db-creator.h:146
BathyUtmCsvDbCreator & setDbRangeEasting(double start, double end)
Definition bathymetry-utm-csv-db-creator.h:135
BathyUtmCsvDbCreator & setDbSpacing(double spacing)
Definition bathymetry-utm-csv-db-creator.h:97
char separator
Definition bathymetry-utm-csv-db-creator.h:193
bool approx_land_to_sea_surface
Definition bathymetry-utm-csv-db-creator.h:209
virtual bool initializeDb(WossDb *const woss_db)
Definition bathymetry-utm-csv-db-creator.cpp:76
const char getCSVSeparator() const
Definition bathymetry-utm-csv-db-creator.h:89
double range_easting_start
Definition bathymetry-utm-csv-db-creator.h:201
double db_spacing
Definition bathymetry-utm-csv-db-creator.h:195
BathyUtmCsvDbCreator & setCSVSeparator(const char new_separator)
Definition bathymetry-utm-csv-db-creator.h:82
virtual WossDb *const createWossDb()
Definition bathymetry-utm-csv-db-creator.cpp:59
Abstract class that provides the interface of database creator ( Factory object )
Definition woss-db-creator.h:64
Abstract class that provides the interface of databases.
Definition woss-db.h:89
Provides the interface for woss::WossDbCreator class.