libdap Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
Ancillary.h
Go to the documentation of this file.
1// Ancillary.h
2
3// -*- mode: c++; c-basic-offset:4 -*-
4
5// This file is part of libdap, A C++ implementation of the OPeNDAP Data
6// Access Protocol.
7
8// Copyright (c) 2002,2003 OPeNDAP, Inc.
9// Author: James Gallagher <jgallagher@opendap.org>
10// Patrick West <pwest@opendap.org>
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// (c) COPYRIGHT URI/MIT 1994-1999
29// Please read the full copyright statement in the file COPYRIGHT_URI.
30//
31// Authors:
32// jhrg,jimg James Gallagher <jgallagher@gso.uri.edu>
33// pwest Patrick West <pwest@opendap.org>
34
35#ifndef S_Ancillary_h
36#define S_Ancillary_h 1
37
38#include <string>
39
40#include "DAS.h"
41#include "DDS.h"
42
43namespace libdap {
44
45class Ancillary {
46public:
47 static string find_ancillary_file(const string &pathname, const string &ext, const string &dir, const string &file);
48
49 static string find_group_ancillary_file(const string &pathname, const string &ext);
50
51 static void read_ancillary_das(DAS &das, const string &pathname, const string &dir = "", const string &file = "");
52
53 static void read_ancillary_dds(DDS &dds, const string &pathname, const string &dir = "", const string &file = "");
54};
55
56} // namespace libdap
57
58#endif // S_Ancillary_h
static string find_group_ancillary_file(const string &pathname, const string &ext)
Definition Ancillary.cc:131
static void read_ancillary_das(DAS &das, const string &pathname, const string &dir="", const string &file="")
Definition Ancillary.cc:185
static void read_ancillary_dds(DDS &dds, const string &pathname, const string &dir="", const string &file="")
Definition Ancillary.cc:197
static string find_ancillary_file(const string &pathname, const string &ext, const string &dir, const string &file)
Find a file with ancillary data.
Definition Ancillary.cc:68
Hold attribute data for a DAP2 dataset.
Definition DAS.h:119
top level DAP object to house generic methods
Definition AISConnect.cc:30