|
World Ocean Simulation System (WOSS) library
|
WossDbCreator for the UMT CSV bathymetry database. More...
#include <bathymetry-utm-csv-db-creator.h>


Public Member Functions | |
| BathyUtmCsvDbCreator () | |
| BathyUtmCsvDbCreator (const BathyUtmCsvDbCreator ©)=default | |
| BathyUtmCsvDbCreator (BathyUtmCsvDbCreator &&tmp)=default | |
| virtual | ~BathyUtmCsvDbCreator () override=default |
| BathyUtmCsvDbCreator & | operator= (const BathyUtmCsvDbCreator ©)=default |
| BathyUtmCsvDbCreator & | operator= (BathyUtmCsvDbCreator &&tmp)=default |
| virtual std::unique_ptr< WossDbCreator > | clone () const override |
| virtual std::unique_ptr< WossDb > | createWossDb () const override |
| BathyUtmCsvDbCreator & | setCSVSeparator (const char new_separator) |
| const char | getCSVSeparator () const |
| BathyUtmCsvDbCreator & | setDbSpacing (double spacing) |
| double | getDbSpacing () const |
| BathyUtmCsvDbCreator & | setDbTotalValues (int nnorth, int neast) |
| std::pair< int, int > | getDbTotalValues () const |
| BathyUtmCsvDbCreator & | setDbRangeEasting (double start, double end) |
| std::pair< double, double > | getDbRangeEasting () const |
| BathyUtmCsvDbCreator & | setDbRangeNorthing (double start, double end) |
| std::pair< double, double > | getDbRangeNorthing () const |
| BathyUtmCsvDbCreator & | setLandApproximationFlag (bool flag) |
| bool | getLandApproximationFlag () const |
| Public Member Functions inherited from woss::WossDbCreator | |
| WossDbCreator ()=default | |
| WossDbCreator (const WossDbCreator ©)=default | |
| WossDbCreator (WossDbCreator &&tmp)=default | |
| virtual | ~WossDbCreator ()=default |
| WossDbCreator & | operator= (const WossDbCreator ©)=default |
| WossDbCreator & | setDebug (bool flag) |
| WossDbCreator & | setWossDebug (bool flag) |
| WossDbCreator & | setDbPathName (const std::string &name) |
| bool | isUsingDebug () const |
| bool | isUsingWossDbDebug () const |
| std::string | getDbPathName () const |
Protected Member Functions | |
| virtual bool | initializeDb (WossDb &woss_db) const override |
Protected Attributes | |
| char | separator |
| double | db_spacing |
| int | total_northing_values |
| int | total_easting_values |
| double | range_easting_start |
| double | range_easting_end |
| double | range_northing_start |
| double | range_northing_end |
| bool | approx_land_to_sea_surface |
| Protected Attributes inherited from woss::WossDbCreator | |
| bool | debug = false |
| bool | woss_db_debug = false |
| std::string | pathname = "" |
WossDbCreator for the UMT CSV bathymetry database.
Specialization of WossDbCreator for the UMT CSV bathymetry database.
| BathyUtmCsvDbCreator::BathyUtmCsvDbCreator | ( | ) |
Default BathyUtmCsvDbCreator constructor
References approx_land_to_sea_surface, db_spacing, range_easting_end, range_easting_start, range_northing_end, range_northing_start, separator, total_easting_values, and total_northing_values.
Referenced by BathyUtmCsvDbCreator(), BathyUtmCsvDbCreator(), operator=(), operator=(), setCSVSeparator(), setDbRangeEasting(), setDbRangeNorthing(), setDbSpacing(), setDbTotalValues(), and setLandApproximationFlag().
|
default |
|
default |
|
overridevirtualdefault |
|
inlineoverridevirtual |
Abstract method. Virtual factory method. It is called to clone this WossDbCreator instance. The caller will be the owner of created object, therefore object destruction is his responsibility
Implements woss::WossDbCreator.
|
overridevirtual |
Creates and initialize a BathyUtmCsvDb object
Implements woss::WossDbCreator.
References approx_land_to_sea_surface, db_spacing, initializeDb(), woss::WossDbCreator::pathname, range_easting_end, range_easting_start, range_northing_end, range_northing_start, separator, total_easting_values, and total_northing_values.

|
inline |
|
inline |
Returns the current db range easting
References range_easting_end, and range_easting_start.
|
inline |
Returns the current db range northing
References range_northing_end, and range_northing_start.
|
inline |
Returns the current db spatial resolution
References db_spacing.
|
inline |
Returns the total northing and easting values
References total_easting_values, and total_northing_values.
|
inline |
Returns the current land approximation flag
References approx_land_to_sea_surface.
|
overrideprotectedvirtual |
Initializes the pointed object
| woss_db | reference to a recently created BathyUtmCsvDb |
Implements woss::WossDbCreator.
References woss::WossDbCreator::initializeDb().
Referenced by createWossDb().

|
default |
|
default |
|
inline |
Sets the char separator used in CSV textual db
| new_separator | separator char |
References BathyUtmCsvDbCreator(), and separator.

|
inline |
Sets db range easting start and end
| start | easting range start |
| end | easting range end |
References BathyUtmCsvDbCreator(), range_easting_end, and range_easting_start.

|
inline |
Sets db northing range start and end
| start | northing range start |
| end | northing range end |
References BathyUtmCsvDbCreator(), range_northing_end, and range_northing_start.

|
inline |
Sets db resolution, in meters
| spacing | space resolution in meters |
References BathyUtmCsvDbCreator(), and db_spacing.

|
inline |
Sets the db total northing and easting values
| nnorth | db total northing points. should be >= 0 |
| neast | db total easting points. should be >= 0 |
References BathyUtmCsvDbCreator(), total_easting_values, and total_northing_values.

|
inline |
Sets land approximation flag
| flag | land approximation flag |
References approx_land_to_sea_surface, and BathyUtmCsvDbCreator().

|
protected |
Approximate land db points to sea surface
Referenced by BathyUtmCsvDbCreator(), createWossDb(), getLandApproximationFlag(), and setLandApproximationFlag().
|
protected |
spatial spacing of the db, in meters
Referenced by BathyUtmCsvDbCreator(), createWossDb(), getDbSpacing(), and setDbSpacing().
|
protected |
Separator used in the csv file
Referenced by BathyUtmCsvDbCreator(), createWossDb(), getDbRangeEasting(), and setDbRangeEasting().
|
protected |
Separator used in the csv file
Referenced by BathyUtmCsvDbCreator(), createWossDb(), getDbRangeEasting(), and setDbRangeEasting().
|
protected |
Separator used in the csv file
Referenced by BathyUtmCsvDbCreator(), createWossDb(), getDbRangeNorthing(), and setDbRangeNorthing().
|
protected |
Separator used in the csv file
Referenced by BathyUtmCsvDbCreator(), createWossDb(), getDbRangeNorthing(), and setDbRangeNorthing().
|
protected |
Separator used in the csv file
Referenced by BathyUtmCsvDbCreator(), createWossDb(), getCSVSeparator(), and setCSVSeparator().
|
protected |
Separator used in the csv file
Referenced by BathyUtmCsvDbCreator(), createWossDb(), getDbTotalValues(), and setDbTotalValues().
|
protected |
Separator used in the csv file
Referenced by BathyUtmCsvDbCreator(), createWossDb(), getDbTotalValues(), and setDbTotalValues().