World Ocean Simulation System (WOSS) library
sediment-deck41-db-creator.h
Go to the documentation of this file.
1/* WOSS - World Ocean Simulation System -
2 *
3 * Copyright (C) 2009 Federico Guerra
4 * and regents of the SIGNET lab, University of Padova
5 *
6 * Author: Federico Guerra - federico@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/*
23 * This software has been developed by Federico Guerra and SIGNET lab,
24 * University of Padova, in collaboration with the NATO Centre for
25 * Maritime Research and Experimentation (http://www.cmre.nato.int ;
26 * E-mail: pao@cmre.nato.int), whose support is gratefully acknowledged.
27 */
28
29
40#ifndef WOSS_SEDIMENT_DECK41_DB_CREATOR_H
41#define WOSS_SEDIMENT_DECK41_DB_CREATOR_H
42
43
44#ifdef WOSS_NETCDF_SUPPORT
45
46#include "woss-db-creator.h"
48
49
50namespace woss {
51
52
53 class SedimDeck41Db;
54
55
62
63
64 public:
65
66
71
72 virtual ~SedimDeck41DbCreator();
73
74
79 virtual WossDb* const createWossDb();
80
81
82 void setDeck41CoordPathName( const ::std::string& name ) { db_coord_name = name; }
83
84 void setDeck41MarsdenPathName( const ::std::string& name ) { db_marsden_name = name; }
85
86 void setDeck41MarsdenOnePathName( const ::std::string& name ) { db_marsden_one_name = name; }
87
88#if defined (WOSS_NETCDF4_SUPPORT)
89 void setDeck41DbType( DECK41DbType db_type ) { deck41_db_type = db_type; }
90#endif // defined (WOSS_NETCDF4_SUPPORT)
91
92 ::std::string getDeck41CoordPathName() const { return db_coord_name; }
93
94 ::std::string getDeck41MarsdenPathName() const { return db_marsden_name; }
95
96 ::std::string getDeck41MarsdenOnePathName() const { return db_marsden_one_name; }
97
98 DECK41DbType getDeck41DbType() const { return deck41_db_type; }
99
100
101 protected:
102
103 ::std::string db_coord_name;
104
105 ::std::string db_marsden_name;
106
107 ::std::string db_marsden_one_name;
108
113
119 virtual bool initializeDb( WossDb* woss_db );
120
126 bool initializeSedimDb( SedimDeck41Db* const woss_db );
127 };
128
129
130}
131
132#endif // WOSS_NETCDF_SUPPORT
133
134#endif /* WOSS_SEDIMENT_DECK41_DB_CREATOR_H */
135
DbCreator for NetCDF Deck41 Sediment database.
Definition sediment-deck41-db-creator.h:61
bool initializeSedimDb(SedimDeck41Db *const woss_db)
Definition sediment-deck41-db-creator.cpp:73
virtual bool initializeDb(WossDb *woss_db)
Definition sediment-deck41-db-creator.cpp:93
SedimDeck41DbCreator()
Definition sediment-deck41-db-creator.cpp:49
DECK41DbType deck41_db_type
Definition sediment-deck41-db-creator.h:112
virtual WossDb *const createWossDb()
Definition sediment-deck41-db-creator.cpp:64
WossDb for NetCDF DECK41 Sediment database.
Definition sediment-deck41-db.h:82
Abstract class that provides the interface of database creator ( Factory object )
Definition woss-db-creator.h:64
Abstract class that provides the interface of databases.
Definition woss-db.h:89
Provides the interface for woss::SedimDeck41CoordDb class.
DECK41DbType
Definition sediment-deck41-coord-db.h:82
Provides the interface for woss::WossDbCreator class.