World Ocean Simulation System (WOSS) library
ssp-woa2005-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_SSP_NETCDF_DB_CREATOR_H
41#define WOSS_SSP_NETCDF_DB_CREATOR_H
42
43
44#ifdef WOSS_NETCDF_SUPPORT
45
46
47#include "woss-db-creator.h"
48#include "ssp-woa2005-db.h"
49
50namespace woss {
51
52
60
61
62 public:
63
64
69
70#if defined (WOSS_NETCDF4_SUPPORT)
76#endif // defined (WOSS_NETCDF4_SUPPORT)
77
78 virtual ~SspWoa2005DbCreator();
79
80
85 virtual WossDb* const createWossDb();
86
87
92 WOADbType getWoaDbType() const { return woa_db_type; }
93
94#if defined (WOSS_NETCDF4_SUPPORT)
99 SspWoa2005DbCreator& setWoaDbType(WOADbType type) { woa_db_type = type; return *this; }
100#endif // defined (WOSS_NETCDF4_SUPPORT)
101
102 protected:
103
104
110 virtual bool initializeDb( WossDb* const woss_db );
111
112 WOADbType woa_db_type;
113 };
114
115}
116
117#endif // WOSS_NETCDF_SUPPORT
118
119
120#endif /* WOSS_SSP_NETCDF_DB_CREATOR_H */
121
WossDbCreator for the custom made NetCDF WOA2005 SSP database.
Definition ssp-woa2005-db-creator.h:59
SspWoa2005DbCreator()
Definition ssp-woa2005-db-creator.cpp:50
WOADbType getWoaDbType() const
Definition ssp-woa2005-db-creator.h:92
virtual WossDb *const createWossDb()
Definition ssp-woa2005-db-creator.cpp:71
virtual bool initializeDb(WossDb *const woss_db)
Definition ssp-woa2005-db-creator.cpp:86
SspWoa2005DbCreator & setWoaDbType(WOADbType type)
Definition ssp-woa2005-db-creator.h:99
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::SspWoa2005Db class.
WOADbType
Definition ssp-woa2005-db.h:112
Provides the interface for woss::WossDbCreator class.