World Ocean Simulation System (WOSS) library
bathymetry-gebco-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_BATHYMETRY_GEBCO_DB_CREATOR_H
34#define WOSS_BATHYMETRY_GEBCO_DB_CREATOR_H
35
36#ifdef WOSS_NETCDF_SUPPORT
37
38#include <memory>
39#include "woss-db-creator.h"
40#include "bathymetry-gebco-db.h"
41
42
43namespace woss {
44
54
55 public:
56
58
60
62
63 virtual ~BathyGebcoDbCreator() override = default;
64
66
68
76 virtual std::unique_ptr<WossDbCreator> clone() const override { return std::make_unique<BathyGebcoDbCreator>(*this); }
77
82 virtual std::unique_ptr<WossDb> createWossDb() const override;
83
90 gebco_type = bathy_type; return *this; }
91
97
98 protected:
99
105
111 virtual bool initializeDb( WossDb& woss_db ) const override;
112
113 };
114
115}
116
117#endif // WOSS_NETCDF_SUPPORT
118
119#endif /* WOSS_BATHYMETRY_GEBCO_DB_CREATOR_H */
120
Provides the interface for woss::BathyGebcoDb class.
WossDbCreator for the GEBCO bathymetry database.
Definition bathymetry-gebco-db-creator.h:53
GEBCO_BATHY_TYPE getGebcoBathyType() const
Definition bathymetry-gebco-db-creator.h:96
BathyGebcoDbCreator & operator=(BathyGebcoDbCreator &&tmp)=default
GEBCO_BATHY_TYPE gebco_type
Definition bathymetry-gebco-db-creator.h:104
virtual std::unique_ptr< WossDbCreator > clone() const override
Definition bathymetry-gebco-db-creator.h:76
virtual std::unique_ptr< WossDb > createWossDb() const override
Definition bathymetry-gebco-db-creator.cpp:41
virtual ~BathyGebcoDbCreator() override=default
virtual bool initializeDb(WossDb &woss_db) const override
Definition bathymetry-gebco-db-creator.cpp:53
BathyGebcoDbCreator(const BathyGebcoDbCreator &copy)=default
BathyGebcoDbCreator(BathyGebcoDbCreator &&tmp)=default
BathyGebcoDbCreator & operator=(const BathyGebcoDbCreator &copy)=default
BathyGebcoDbCreator & setGebcoBathyType(GEBCO_BATHY_TYPE bathy_type)
Definition bathymetry-gebco-db-creator.h:89
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
GEBCO_BATHY_TYPE
Definition bathymetry-gebco-db.h:114
@ GEBCO_2D_30_SECONDS_BATHY_TYPE
GEBCO 2D, thirty seconds of arc netcf format.
Provides the interface for woss::WossDbCreator class.