World Ocean Simulation System (WOSS) library
res-time-arr-bin-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_BIN_DB_CREATOR_H
34#define WOSS_RES_TIME_ARR_BIN_DB_CREATOR_H
35
36
37#include "woss-db-creator.h"
38
39
40namespace woss {
41
42
49
50 public:
51
53
55
57
58 virtual ~ResTimeArrBinDbCreator() override = default;
59
61
63
71 virtual std::unique_ptr<WossDbCreator> clone() const override { return std::make_unique<ResTimeArrBinDbCreator>(*this); }
72
77 virtual std::unique_ptr<WossDb> createWossDb() const override;
78
79
80 void setSpaceSampling( double value ) { space_sampling = value; }
81
82 double getSpaceSampling() const { return space_sampling; }
83
84 protected:
85
86 double space_sampling = 0.0;
87
93 virtual bool initializeDb( WossDb& woss_db ) const;
94
95 };
96
97}
98
99#endif /* WOSS_RES_TIME_ARR_BIN_DB_CREATOR_H */
100
DbCreator for textual TimeArr database.
Definition res-time-arr-bin-db-creator.h:48
ResTimeArrBinDbCreator(const ResTimeArrBinDbCreator &copy)=default
ResTimeArrBinDbCreator(ResTimeArrBinDbCreator &&tmp)=default
ResTimeArrBinDbCreator & operator=(const ResTimeArrBinDbCreator &copy)=default
double getSpaceSampling() const
Definition res-time-arr-bin-db-creator.h:82
ResTimeArrBinDbCreator & operator=(ResTimeArrBinDbCreator &&tmp)=default
virtual std::unique_ptr< WossDb > createWossDb() const override
Definition res-time-arr-bin-db-creator.cpp:40
virtual ~ResTimeArrBinDbCreator() override=default
double space_sampling
Definition res-time-arr-bin-db-creator.h:86
void setSpaceSampling(double value)
Definition res-time-arr-bin-db-creator.h:80
virtual std::unique_ptr< WossDbCreator > clone() const override
Definition res-time-arr-bin-db-creator.h:71
virtual bool initializeDb(WossDb &woss_db) const
Definition res-time-arr-bin-db-creator.cpp:57
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.