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

DbCreator for textual TimeArr database. More...

#include <res-time-arr-bin-db-creator.h>

Inheritance diagram for woss::ResTimeArrBinDbCreator:
Inheritance graph
Collaboration diagram for woss::ResTimeArrBinDbCreator:
Collaboration graph

Public Member Functions

 ResTimeArrBinDbCreator ()=default
 ResTimeArrBinDbCreator (const ResTimeArrBinDbCreator &copy)=default
 ResTimeArrBinDbCreator (ResTimeArrBinDbCreator &&tmp)=default
virtual ~ResTimeArrBinDbCreator () override=default
ResTimeArrBinDbCreatoroperator= (const ResTimeArrBinDbCreator &copy)=default
ResTimeArrBinDbCreatoroperator= (ResTimeArrBinDbCreator &&tmp)=default
virtual std::unique_ptr< WossDbCreatorclone () const override
virtual std::unique_ptr< WossDbcreateWossDb () const override
void setSpaceSampling (double value)
double getSpaceSampling () 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

Protected Attributes

double space_sampling = 0.0
Protected Attributes inherited from woss::WossDbCreator
bool debug = false
bool woss_db_debug = false
std::string pathname = ""

Detailed Description

DbCreator for textual TimeArr database.

ResTimeArrBinDbCreator implements WossDbCreator for textual TimeArr database

Constructor & Destructor Documentation

◆ ResTimeArrBinDbCreator() [1/3]

woss::ResTimeArrBinDbCreator::ResTimeArrBinDbCreator ( )
default

◆ ResTimeArrBinDbCreator() [2/3]

woss::ResTimeArrBinDbCreator::ResTimeArrBinDbCreator ( const ResTimeArrBinDbCreator & copy)
default

References ResTimeArrBinDbCreator().

Here is the call graph for this function:

◆ ResTimeArrBinDbCreator() [3/3]

woss::ResTimeArrBinDbCreator::ResTimeArrBinDbCreator ( ResTimeArrBinDbCreator && tmp)
default

References ResTimeArrBinDbCreator().

Here is the call graph for this function:

◆ ~ResTimeArrBinDbCreator()

virtual woss::ResTimeArrBinDbCreator::~ResTimeArrBinDbCreator ( )
overridevirtualdefault

Member Function Documentation

◆ clone()

virtual std::unique_ptr< WossDbCreator > woss::ResTimeArrBinDbCreator::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 > ResTimeArrBinDbCreator::createWossDb ( ) const
overridevirtual

This method is called to create and initialize a ResTimeArrTxtDb

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

Implements woss::WossDbCreator.

References woss::WossDbCreator::debug, initializeDb(), woss::WossDbCreator::pathname, and space_sampling.

Referenced by WossUnitTest::testResTimeArrDb().

Here is the call graph for this function:

◆ getSpaceSampling()

double woss::ResTimeArrBinDbCreator::getSpaceSampling ( ) const
inline

References space_sampling.

◆ initializeDb()

bool ResTimeArrBinDbCreator::initializeDb ( WossDb & woss_db) const
protectedvirtual

Initializes the referenced object

Parameters
woss_dbreference to a recently created ResTimeArrTxtDb
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]

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

References ResTimeArrBinDbCreator().

Here is the call graph for this function:

◆ operator=() [2/2]

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

References ResTimeArrBinDbCreator().

Here is the call graph for this function:

◆ setSpaceSampling()

void woss::ResTimeArrBinDbCreator::setSpaceSampling ( double value)
inline

References space_sampling.

Member Data Documentation

◆ space_sampling

double woss::ResTimeArrBinDbCreator::space_sampling = 0.0
protected

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