libdap Updated for version 3.18.1
Ancillary.h
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
40using std::string ;
41
42#include "DAS.h"
43#include "DDS.h"
44
45namespace libdap
46{
47
49{
50public:
51 static string find_ancillary_file( const string &pathname,
52 const string &ext,
53 const string &dir,
54 const string &file ) ;
55
56 static string find_group_ancillary_file( const string &pathname,
57 const string &ext ) ;
58
59 static void read_ancillary_das( DAS &das,
60 const string &pathname,
61 const string &dir = "",
62 const string &file = "" ) ;
63
64 static void read_ancillary_dds( DDS &dds,
65 const string &pathname,
66 const string &dir = "",
67 const string &file = "" ) ;
68} ;
69
70} // namespace libdap
71
72#endif // S_Ancillary_h
73
static string find_group_ancillary_file(const string &pathname, const string &ext)
Definition: Ancillary.cc:138
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:69
Hold attribute data for a DAP2 dataset.
Definition: DAS.h:122