World Ocean Simulation System (WOSS) library
woss::BathyUtmCsvDbCreator Class Reference

WossDbCreator for the UMT CSV bathymetry database. More...

#include <bathymetry-utm-csv-db-creator.h>

Inheritance diagram for woss::BathyUtmCsvDbCreator:
Inheritance graph
Collaboration diagram for woss::BathyUtmCsvDbCreator:
Collaboration graph

Public Member Functions

 BathyUtmCsvDbCreator ()
 
 BathyUtmCsvDbCreator (const BathyUtmCsvDbCreator &copy)=default
 
 BathyUtmCsvDbCreator (BathyUtmCsvDbCreator &&tmp)=default
 
virtual ~BathyUtmCsvDbCreator () override=default
 
BathyUtmCsvDbCreatoroperator= (const BathyUtmCsvDbCreator &copy)=default
 
BathyUtmCsvDbCreatoroperator= (BathyUtmCsvDbCreator &&tmp)=default
 
virtual std::unique_ptr< WossDbCreatorclone () const override
 
virtual std::unique_ptr< WossDbcreateWossDb () const override
 
BathyUtmCsvDbCreatorsetCSVSeparator (const char new_separator)
 
const char getCSVSeparator () const
 
BathyUtmCsvDbCreatorsetDbSpacing (double spacing)
 
double getDbSpacing () const
 
BathyUtmCsvDbCreatorsetDbTotalValues (int nnorth, int neast)
 
std::pair< int, int > getDbTotalValues () const
 
BathyUtmCsvDbCreatorsetDbRangeEasting (double start, double end)
 
std::pair< double, double > getDbRangeEasting () const
 
BathyUtmCsvDbCreatorsetDbRangeNorthing (double start, double end)
 
std::pair< double, double > getDbRangeNorthing () const
 
BathyUtmCsvDbCreatorsetLandApproximationFlag (bool flag)
 
bool getLandApproximationFlag () const
 
- Public Member Functions inherited from woss::WossDbCreator
 WossDbCreator ()=default
 
 WossDbCreator (const WossDbCreator &copy)=default
 
 WossDbCreator (WossDbCreator &&tmp)=default
 
virtual ~WossDbCreator ()=default
 
WossDbCreatoroperator= (const WossDbCreator &copy)=default
 
WossDbCreatorsetDebug (bool flag)
 
WossDbCreatorsetWossDebug (bool flag)
 
WossDbCreatorsetDbPathName (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 = ""
 

Detailed Description

WossDbCreator for the UMT CSV bathymetry database.

Specialization of WossDbCreator for the UMT CSV bathymetry database.

Constructor & Destructor Documentation

◆ BathyUtmCsvDbCreator() [1/3]

BathyUtmCsvDbCreator::BathyUtmCsvDbCreator ( )

Default BathyUtmCsvDbCreator constructor

◆ BathyUtmCsvDbCreator() [2/3]

woss::BathyUtmCsvDbCreator::BathyUtmCsvDbCreator ( const BathyUtmCsvDbCreator copy)
default

◆ BathyUtmCsvDbCreator() [3/3]

woss::BathyUtmCsvDbCreator::BathyUtmCsvDbCreator ( BathyUtmCsvDbCreator &&  tmp)
default

◆ ~BathyUtmCsvDbCreator()

virtual woss::BathyUtmCsvDbCreator::~BathyUtmCsvDbCreator ( )
overridevirtualdefault

Member Function Documentation

◆ clone()

virtual std::unique_ptr< WossDbCreator > woss::BathyUtmCsvDbCreator::clone ( ) const
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

Returns
a std::unique_ptr to a properly initialized WossDbCreator object

Implements woss::WossDbCreator.

◆ createWossDb()

std::unique_ptr< WossDb > BathyUtmCsvDbCreator::createWossDb ( ) const
overridevirtual

Creates and initialize a BathyUtmCsvDb object

Returns
a std::unique_ptr to a properly initialized 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.

Here is the call graph for this function:

◆ getCSVSeparator()

const char woss::BathyUtmCsvDbCreator::getCSVSeparator ( ) const
inline

Returns the current char separator

Returns
the char separator

References separator.

◆ getDbRangeEasting()

std::pair< double, double > woss::BathyUtmCsvDbCreator::getDbRangeEasting ( ) const
inline

Returns the current db range easting

Returns
the db easting range start and end

References range_easting_end, and range_easting_start.

◆ getDbRangeNorthing()

std::pair< double, double > woss::BathyUtmCsvDbCreator::getDbRangeNorthing ( ) const
inline

Returns the current db range northing

Returns
the db easting range start and end

References range_northing_end, and range_northing_start.

◆ getDbSpacing()

double woss::BathyUtmCsvDbCreator::getDbSpacing ( ) const
inline

Returns the current db spatial resolution

Returns
the db spatial resolution in meters

References db_spacing.

◆ getDbTotalValues()

std::pair< int, int > woss::BathyUtmCsvDbCreator::getDbTotalValues ( ) const
inline

Returns the total northing and easting values

Returns
pair of total northing and easting values

References total_easting_values, and total_northing_values.

◆ getLandApproximationFlag()

bool woss::BathyUtmCsvDbCreator::getLandApproximationFlag ( ) const
inline

Returns the current land approximation flag

Returns
the land approximation flag

References approx_land_to_sea_surface.

◆ initializeDb()

bool BathyUtmCsvDbCreator::initializeDb ( WossDb woss_db) const
overrideprotectedvirtual

Initializes the pointed object

Parameters
woss_dbreference to a recently created BathyUtmCsvDb
Returns
true if the method succeed, false otherwise

Implements woss::WossDbCreator.

References woss::WossDbCreator::initializeDb().

Referenced by createWossDb().

Here is the call graph for this function:

◆ operator=() [1/2]

BathyUtmCsvDbCreator & woss::BathyUtmCsvDbCreator::operator= ( BathyUtmCsvDbCreator &&  tmp)
default

◆ operator=() [2/2]

BathyUtmCsvDbCreator & woss::BathyUtmCsvDbCreator::operator= ( const BathyUtmCsvDbCreator copy)
default

◆ setCSVSeparator()

BathyUtmCsvDbCreator & woss::BathyUtmCsvDbCreator::setCSVSeparator ( const char  new_separator)
inline

Sets the char separator used in CSV textual db

Parameters
new_separatorseparator char
Returns
reference to *this

References separator.

◆ setDbRangeEasting()

BathyUtmCsvDbCreator & woss::BathyUtmCsvDbCreator::setDbRangeEasting ( double  start,
double  end 
)
inline

Sets db range easting start and end

Parameters
starteasting range start
endeasting range end
Returns
reference to *this

References range_easting_end, and range_easting_start.

◆ setDbRangeNorthing()

BathyUtmCsvDbCreator & woss::BathyUtmCsvDbCreator::setDbRangeNorthing ( double  start,
double  end 
)
inline

Sets db northing range start and end

Parameters
startnorthing range start
endnorthing range end
Returns
reference to *this

References range_northing_end, and range_northing_start.

◆ setDbSpacing()

BathyUtmCsvDbCreator & woss::BathyUtmCsvDbCreator::setDbSpacing ( double  spacing)
inline

Sets db resolution, in meters

Parameters
spacingspace resolution in meters
Returns
reference to *this

References db_spacing.

◆ setDbTotalValues()

BathyUtmCsvDbCreator & woss::BathyUtmCsvDbCreator::setDbTotalValues ( int  nnorth,
int  neast 
)
inline

Sets the db total northing and easting values

Parameters
nnorthdb total northing points. should be >= 0
neastdb total easting points. should be >= 0
Returns
reference to *this

References total_easting_values, and total_northing_values.

◆ setLandApproximationFlag()

BathyUtmCsvDbCreator & woss::BathyUtmCsvDbCreator::setLandApproximationFlag ( bool  flag)
inline

Sets land approximation flag

Parameters
flagland approximation flag
Returns
reference to *this

References approx_land_to_sea_surface.

Member Data Documentation

◆ approx_land_to_sea_surface

bool woss::BathyUtmCsvDbCreator::approx_land_to_sea_surface
protected

Approximate land db points to sea surface

Referenced by createWossDb(), getLandApproximationFlag(), and setLandApproximationFlag().

◆ db_spacing

double woss::BathyUtmCsvDbCreator::db_spacing
protected

spatial spacing of the db, in meters

Referenced by createWossDb(), getDbSpacing(), and setDbSpacing().

◆ range_easting_end

double woss::BathyUtmCsvDbCreator::range_easting_end
protected

Separator used in the csv file

Referenced by createWossDb(), getDbRangeEasting(), and setDbRangeEasting().

◆ range_easting_start

double woss::BathyUtmCsvDbCreator::range_easting_start
protected

Separator used in the csv file

Referenced by createWossDb(), getDbRangeEasting(), and setDbRangeEasting().

◆ range_northing_end

double woss::BathyUtmCsvDbCreator::range_northing_end
protected

Separator used in the csv file

Referenced by createWossDb(), getDbRangeNorthing(), and setDbRangeNorthing().

◆ range_northing_start

double woss::BathyUtmCsvDbCreator::range_northing_start
protected

Separator used in the csv file

Referenced by createWossDb(), getDbRangeNorthing(), and setDbRangeNorthing().

◆ separator

char woss::BathyUtmCsvDbCreator::separator
protected

Separator used in the csv file

Referenced by createWossDb(), getCSVSeparator(), and setCSVSeparator().

◆ total_easting_values

int woss::BathyUtmCsvDbCreator::total_easting_values
protected

Separator used in the csv file

Referenced by createWossDb(), getDbTotalValues(), and setDbTotalValues().

◆ total_northing_values

int woss::BathyUtmCsvDbCreator::total_northing_values
protected

Separator used in the csv file

Referenced by createWossDb(), getDbTotalValues(), and setDbTotalValues().


The documentation for this class was generated from the following files: