libdap Updated for version 3.21.0
libdap4 is an implementation of OPeNDAP's DAP protocol.
AISMerge.h
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{
55
65{
66private:
67 AISResources d_ais_db;
68 HTTPConnect d_http; // used to access remote resources
69
70 friend class AISMergeTest;
71public:
76 AISMerge(const string &database) throw(AISDatabaseReadFailed) :
77 d_ais_db(database), d_http(RCReader::instance())
78 { }
79
82 virtual ~AISMerge()
83 {}
84
85 // Change this when HTTPConnect/HTTPCache are changed.
86 virtual Response *get_ais_resource(const string &res);
87
88 virtual void merge(const string &primary, DAS &das);
89};
90
91} // namespace libdap
92
93#endif // ais_merge_h
virtual void merge(const string &primary, DAS &das)
Definition AISMerge.cc:79
virtual ~AISMerge()
Definition AISMerge.h:82
virtual Response * get_ais_resource(const string &res)
Definition AISMerge.cc:51
AISMerge(const string &database)
Definition AISMerge.h:76
Manage AIS resources.
Hold attribute data for a DAP2 dataset.
Definition DAS.h:122
top level DAP object to house generic methods
Definition AISConnect.cc:30