World Ocean Simulation System (WOSS) library
res-pressure-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_PRESSURE_BIN_DB_CREATOR_H
34#define WOSS_RES_PRESSURE_BIN_DB_CREATOR_H
35
36
37#include "woss-db-creator.h"
38
39
40namespace woss {
41
42
49
50
51 public:
52
53
58
60
62
63 virtual ~ResPressureBinDbCreator() override = default;
64
66
68
76 virtual std::unique_ptr<WossDbCreator> clone() const override { return std::make_unique<ResPressureBinDbCreator>(*this); }
77
82 virtual std::unique_ptr<WossDb> createWossDb() const override;
83
84
85 void setSpaceSampling( double value ) { space_sampling = value; }
86
87 double getSpaceSampling() const { return space_sampling; }
88
89
90 protected:
91
92
93 double space_sampling = 0.0;
94
95
101 virtual bool initializeDb( WossDb& woss_db ) const;
102
103 };
104
105
106}
107
108
109#endif /* WOSS_RES_PRESSURE_BIN_DB_CREATOR_H */
110
DbCreator for binary Pressure database.
Definition res-pressure-bin-db-creator.h:48
ResPressureBinDbCreator & operator=(ResPressureBinDbCreator &&tmp)=default
ResPressureBinDbCreator(const ResPressureBinDbCreator &copy)=default
virtual ~ResPressureBinDbCreator() override=default
double space_sampling
Definition res-pressure-bin-db-creator.h:93
virtual std::unique_ptr< WossDb > createWossDb() const override
Definition res-pressure-bin-db-creator.cpp:40
void setSpaceSampling(double value)
Definition res-pressure-bin-db-creator.h:85
virtual bool initializeDb(WossDb &woss_db) const
Definition res-pressure-bin-db-creator.cpp:56
double getSpaceSampling() const
Definition res-pressure-bin-db-creator.h:87
ResPressureBinDbCreator & operator=(const ResPressureBinDbCreator &copy)=default
virtual std::unique_ptr< WossDbCreator > clone() const override
Definition res-pressure-bin-db-creator.h:76
ResPressureBinDbCreator(ResPressureBinDbCreator &&tmp)=default
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.