1 2 // -*- mode: c++; c-basic-offset:4 -*- 3 4 // This file is part of libdap, A C++ implementation of the OPeNDAP Data 5 // Access Protocol. 6 7 // Copyright (c) 2002,2003 OPeNDAP, Inc. 8 // Author: James Gallagher <jgallagher@opendap.org> 9 // 10 // This library is free software; you can redistribute it and/or 11 // modify it under the terms of the GNU Lesser General Public 12 // License as published by the Free Software Foundation; either 13 // version 2.1 of the License, or (at your option) any later version. 14 // 15 // This library is distributed in the hope that it will be useful, 16 // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 // Lesser General Public License for more details. 19 // 20 // You should have received a copy of the GNU Lesser General Public 21 // License along with this library; if not, write to the Free Software 22 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 23 // 24 // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112. 25 26 #ifndef _testuint64_h 27 #define _testuint64_h 1 28 29 #include <string> 30 31 #include "UInt64.h" 32 #include "TestCommon.h" 33 34 // using namespace libdap ; 35 36 class TestUInt64: public libdap::UInt64, public TestCommon { 37 bool d_series_values; 38 void _duplicate(const TestUInt64 &ts); 39 40 public: 41 TestUInt64(const std::string &n); 42 TestUInt64(const std::string &n, const std::string &d); 43 TestUInt64(const TestUInt64 &rhs); 44 ~TestUInt64()45 virtual ~TestUInt64() {} 46 47 TestUInt64 &operator=(const TestUInt64 &rhs); 48 49 virtual libdap::BaseType *ptr_duplicate(); 50 51 virtual bool read(); 52 53 virtual void output_values(std::ostream &out); 54 set_series_values(bool sv)55 void set_series_values(bool sv) { d_series_values = sv; } get_series_values()56 bool get_series_values() { return d_series_values; } 57 }; 58 59 #endif // _testuint64_h 60 61