bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
NgapBuildDmrppContainer.h
1// -*- mode: c++; c-basic-offset:4 -*-
2
3// This file is part of builddmrpp_module, A C++ module that can be loaded in to
4// the OPeNDAP Back-End Server (BES) and is able to handle remote requests.
5
6// Copyright (c) 2023 OPeNDAP, Inc.
7// Author: Daniel Holloway <dholloway@opendap.org>
8//
9// This library is free software; you can redistribute it and/or
10// modify it under the terms of the GNU Lesser General Public
11// License as published by the Free Software Foundation; either
12// version 2.1 of the License, or (at your option) any later version.
13//
14// This library is distributed in the hope that it will be useful,
15// but WITHOUT ANY WARRANTY; without even the implied warranty of
16// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17// Lesser General Public License for more details.
18//
19// You should have received a copy of the GNU Lesser General Public
20// License along with this library; if not, write to the Free Software
21// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22//
23// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
24// Authors:
25// ndp Nathan Potter <ndp@opendap.org>
26// dan Daniel Holloway <dholloway@opendap.org>
27
28#ifndef NgapBuildDmrppContainer_h_
29#define NgapBuildDmrppContainer_h_ 1
30
31#include <string>
32#include <ostream>
33#include <memory>
34
35#include "BESContainer.h"
36
37namespace http {
38class RemoteResource;
39}
40
41namespace builddmrpp {
42
52class NgapBuildDmrppContainer : public BESContainer {
53
54private:
55 std::shared_ptr<http::RemoteResource> d_data_rresource = nullptr;
56 std::string d_real_name;
57
58 void initialize();
59
60protected:
61 void _duplicate(NgapBuildDmrppContainer &copy_to);
62
63public:
64 NgapBuildDmrppContainer() = default;
65 NgapBuildDmrppContainer(const std::string &sym_name, const std::string &real_name, const std::string &type);
66 NgapBuildDmrppContainer(const NgapBuildDmrppContainer &copy_from);
67 ~NgapBuildDmrppContainer() override = default;
68
69 BESContainer *ptr_duplicate() override;
70
71 std::string access() override;
72 bool release() override { return true; }
73
74 void dump(std::ostream &strm) const override;
75};
76
77} // namespace builddmrpp
78
79#endif // NgapBuildDmrppContainer_h_
void _duplicate(NgapBuildDmrppContainer &copy_to)
Duplicate the contents of this instance into 'copy_to.'.
std::string access() override
access the remote target response by making the remote request
BESContainer * ptr_duplicate() override
pure abstract method to duplicate this instances of BESContainer
void dump(std::ostream &strm) const override
dumps information about this object
utility class for the HTTP catalog module
Definition TheBESKeys.h:51