libdap Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
AISMerge.h
Go to the documentation of this file.
1
2// -*- mode: c++; c-basic-offset:4 -*-
3
4// This file is part of libdap, A C++ implementation of the OPeNDAP Data
5// Access Protocol.
6
7// Copyright (c) 2003 OPeNDAP, Inc.
8// Author: James Gallagher <jgallagher@opendap.org>
9// Dan Holloway <dan@hollywood.gso.uri.edu>
10// Reza Nekovei <reza@intcomm.net>
11//
12// This library is free software; you can redistribute it and/or
13// modify it under the terms of the GNU Lesser General Public
14// License as published by the Free Software Foundation; either
15// version 2.1 of the License, or (at your option) any later version.
16//
17// This library is distributed in the hope that it will be useful,
18// but WITHOUT ANY WARRANTY; without even the implied warranty of
19// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20// Lesser General Public License for more details.
21//
22// You should have received a copy of the GNU Lesser General Public
23// License along with this library; if not, write to the Free Software
24// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25//
26// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
27
28#ifndef ais_merge_h
29#define ais_merge_h
30
31#include <string>
32
33#ifndef _das_h
34#include "DAS.h"
35#endif
36
37#ifndef _httpconnect_h
38#include "HTTPConnect.h"
39#endif
40
41#ifndef ais_resources_h
42#include "AISResources.h"
43#endif
44
45#ifndef ais_exceptions_h
46#include "AISExceptions.h"
47#endif
48
49#ifndef response_h
50#include "Response.h"
51#endif
52
53namespace libdap {
54
63class AISMerge {
64private:
65 AISResources d_ais_db;
66 HTTPConnect d_http; // used to access remote resources
67
68 friend class AISMergeTest;
69
70public:
75 AISMerge(const string &database) throw(AISDatabaseReadFailed) : d_ais_db(database), d_http(RCReader::instance()) {}
76
79 virtual ~AISMerge() {}
80
81 // Change this when HTTPConnect/HTTPCache are changed.
82 virtual Response *get_ais_resource(const string &res);
83
84 virtual void merge(const string &primary, DAS &das);
85};
86
87} // namespace libdap
88
89#endif // ais_merge_h
friend class AISMergeTest
Definition AISMerge.h:68
virtual void merge(const string &primary, DAS &das)
Definition AISMerge.cc:75
virtual ~AISMerge()
Definition AISMerge.h:79
virtual Response * get_ais_resource(const string &res)
Definition AISMerge.cc:51
AISMerge(const string &database)
Definition AISMerge.h:75
Manage AIS resources.
Hold attribute data for a DAP2 dataset.
Definition DAS.h:119
static RCReader * instance()
Definition RCReader.cc:427
top level DAP object to house generic methods
Definition AISConnect.cc:30