World Ocean Simulation System (WOSS) library
res-time-arr-txt-db-creator.h
Go to the documentation of this file.
1/* WOSS - World Ocean Simulation System -
2 *
3 * Copyright (C) 2009 2025 Federico Guerra
4 * and regents of the SIGNET lab, University of Padova
5 *
6 * Author: Federico Guerra - WOSS@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
33#ifndef WOSS_RES_TIME_ARR_TXT_DB_CREATOR_H
34#define WOSS_RES_TIME_ARR_TXT_DB_CREATOR_H
35
36
37#include <memory>
38#include <woss-db-creator.h>
39
40
41namespace woss {
42
43
50
51 public:
52
54
56
58
59 virtual ~ResTimeArrTxtDbCreator() override = default;
60
62
64
72 virtual std::unique_ptr<WossDbCreator> clone() const override { return std::make_unique<ResTimeArrTxtDbCreator>(*this); }
73
78 virtual std::unique_ptr<WossDb> createWossDb() const override;
79
80
81 void setSpaceSampling( double value ) { space_sampling = value; }
82
83 double getSpaceSampling() const { return space_sampling; }
84
85
86 protected:
87
88
89 double space_sampling = 0.0;
90
96 virtual bool initializeDb( WossDb& woss_db ) const;
97
98 };
99
100}
101
102#endif /* WOSS_RES_TIME_ARR_TXT_DB_CREATOR_H */
103
DbCreator for textual TimeArr database.
Definition res-time-arr-txt-db-creator.h:49
ResTimeArrTxtDbCreator & operator=(const ResTimeArrTxtDbCreator &copy)=default
void setSpaceSampling(double value)
Definition res-time-arr-txt-db-creator.h:81
virtual ~ResTimeArrTxtDbCreator() override=default
ResTimeArrTxtDbCreator & operator=(ResTimeArrTxtDbCreator &&tmp)=default
virtual std::unique_ptr< WossDb > createWossDb() const override
Definition res-time-arr-txt-db-creator.cpp:40
double space_sampling
Definition res-time-arr-txt-db-creator.h:89
ResTimeArrTxtDbCreator(const ResTimeArrTxtDbCreator &copy)=default
double getSpaceSampling() const
Definition res-time-arr-txt-db-creator.h:83
virtual bool initializeDb(WossDb &woss_db) const
Definition res-time-arr-txt-db-creator.cpp:57
ResTimeArrTxtDbCreator(ResTimeArrTxtDbCreator &&tmp)=default
virtual std::unique_ptr< WossDbCreator > clone() const override
Definition res-time-arr-txt-db-creator.h:72
Abstract class that provides the interface of database creator ( Factory object )
Definition woss-db-creator.h:55
Abstract class that provides the interface of databases.
Definition woss-db.h:79
Definition ac-toolbox-arr-asc-reader.h:44
Provides the interface for woss::WossDbCreator class.