libdap  Updated for version 3.17.0
D4Function.h
00001 // -*- mode: c++; c-basic-offset:4 -*-
00002 
00003 // This file is part of libdap, A C++ implementation of the OPeNDAP Data
00004 // Access Protocol.
00005 
00006 // Copyright (c) 2014 OPeNDAP, Inc.
00007 // Author: James Gallagher <jgallagher@opendap.org>
00008 //
00009 // This library is free software; you can redistribute it and/or
00010 // modify it under the terms of the GNU Lesser General Public
00011 // License as published by the Free Software Foundation; either
00012 // version 2.1 of the License, or (at your option) any later version.
00013 //
00014 // This library is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017 // Lesser General Public License for more details.
00018 //
00019 // You should have received a copy of the GNU Lesser General Public
00020 // License along with this library; if not, write to the Free Software
00021 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00022 //
00023 // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
00024 
00025 
00026 #ifndef D_FUNCTION_H_
00027 #define D_FUNCTION_H_
00028 
00029 namespace libdap {
00030 
00031 class BaseType;
00032 class D4RValueList;
00033 class DMR;
00034 
00035 // D4Function is a pointer to a function that takes a pointer to an RValueList and
00036 // a reference to a DMR and returns a pointer to a BaseTYpe.
00037 //
00038 // I think this would be better as a 'function that takes...' instead of a 'pointer
00039 // to a function that takes...' but I used this to make the code fit more closely to
00040 // the pattern established by the DAP2 CE functions. jhrg 3/10/14
00041 
00042 typedef BaseType* (*D4Function)(D4RValueList *, DMR &);
00043 
00044 }// namespace libdap
00045 
00046 #endif /* D_FUNCTION_H_ */