libdap++ Updated for version 3.8.2

Ancillary.h

Go to the documentation of this file.
00001 // Ancillary.h
00002 
00003 // -*- mode: c++; c-basic-offset:4 -*-
00004 
00005 // This file is part of libdap, A C++ implementation of the OPeNDAP Data
00006 // Access Protocol.
00007 
00008 // Copyright (c) 2002,2003 OPeNDAP, Inc.
00009 // Author: James Gallagher <jgallagher@opendap.org>
00010 //         Patrick West <pwest@opendap.org>
00011 //
00012 // This library is free software; you can redistribute it and/or
00013 // modify it under the terms of the GNU Lesser General Public
00014 // License as published by the Free Software Foundation; either
00015 // version 2.1 of the License, or (at your option) any later version.
00016 //
00017 // This library is distributed in the hope that it will be useful,
00018 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020 // Lesser General Public License for more details.
00021 //
00022 // You should have received a copy of the GNU Lesser General Public
00023 // License along with this library; if not, write to the Free Software
00024 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 //
00026 // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
00027 
00028 // (c) COPYRIGHT URI/MIT 1994-1999
00029 // Please read the full copyright statement in the file COPYRIGHT_URI.
00030 //
00031 // Authors:
00032 //      jhrg,jimg       James Gallagher <jgallagher@gso.uri.edu>
00033 //      pwest           Patrick West <pwest@opendap.org>
00034 
00035 #ifndef S_Ancillary_h
00036 #define S_Ancillary_h 1
00037 
00038 #include <string>
00039 
00040 using std::string ;
00041 
00042 #include "DAS.h"
00043 #include "DDS.h"
00044 
00045 namespace libdap
00046 {
00047 
00048 class Ancillary
00049 {
00050 public:
00051     static string       find_ancillary_file( const string &pathname,
00052                                              const string &ext,
00053                                              const string &dir,
00054                                              const string &file ) ;
00055 
00056     static string       find_group_ancillary_file( const string &pathname,
00057                                                    const string &ext ) ;
00058 
00059     static void         read_ancillary_das( DAS &das,
00060                                             const string &pathname,
00061                                             const string &dir = "",
00062                                             const string &file = "" ) ;
00063 
00064     static void         read_ancillary_dds( DDS &dds,
00065                                             const string &pathname,
00066                                             const string &dir = "",
00067                                             const string &file = "" ) ;
00068 } ;
00069 
00070 } // namespace libdap
00071 
00072 #endif // S_Ancillary_h
00073