bes  Updated for version 3.20.6
FFStr.h
1 
2 // -*- mode: c++; c-basic-offset:4 -*-
3 
4 // This file is part of ff_handler a FreeForm API handler for the OPeNDAP
5 // DAP2 data server.
6 
7 // Copyright (c) 2005 OPeNDAP, Inc.
8 // Author: James Gallagher <jgallagher@opendap.org>
9 //
10 // This is free software; you can redistribute it and/or modify it under the
11 // terms of the GNU Lesser General Public License as published by the Free
12 // Software Foundation; either version 2.1 of the License, or (at your
13 // option) any later version.
14 //
15 // This software is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 // 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 //
24 // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
25 
26 // (c) COPYRIGHT URI/MIT 1997-98
27 // Please read the full copyright statement in the file COPYRIGHT.
28 //
29 // Authors: reza (Reza Nekovei)
30 
31 // FreeFrom sub-class implementation for FFByte,...FFGrid.
32 // The files are patterned after the subcalssing examples
33 // Test<type>.c,h files.
34 //
35 // ReZa 6/18/97
36 
37 #ifndef _ffstr_h
38 #define _ffstr_h 1
39 
40 
41 #include <limits.h>
42 
43 #include <Str.h>
44 
45 using namespace libdap ;
46 
47 class FFStr: public Str {
48 private:
49  int d_length;
50 
51 public:
52  FFStr(const string &n, const string &d);
53  virtual ~FFStr() {}
54 
55  virtual BaseType *ptr_duplicate();
56 
57  virtual bool read();
58 
59  virtual void set_length(int len) { d_length = len; }
60  virtual int length() const { return d_length; }
61 };
62 
63 // $Log: FFStr.h,v $
64 // Revision 1.7 2003/02/10 23:01:52 jimg
65 // Merged with 3.2.5
66 //
67 // Revision 1.6.2.1 2002/12/18 23:30:42 pwest
68 // gcc3.2 compile corrections, mainly regarding the using statement
69 //
70 // Revision 1.6 2000/10/11 19:37:56 jimg
71 // Moved the CVS log entries to the end of files.
72 // Changed the definition of the read method to match the dap library.
73 // Added exception handling.
74 // Added exceptions to the read methods.
75 //
76 // Revision 1.5 1999/05/27 17:02:22 jimg
77 // Merge with alpha-3-0-0
78 //
79 // Revision 1.4.2.1 1999/05/20 21:42:08 edavis
80 // Fix spelling of COPYRIGHT and remove some #if 0 stuff.
81 //
82 // Revision 1.4 1999/05/04 02:55:36 jimg
83 // Merge with no-gnu
84 //
85 // Revision 1.3.12.1 1999/05/01 04:40:30 brent
86 // converted old String.h to the new std C++ <string> code
87 //
88 // Revision 1.3 1998/04/21 17:14:01 jimg
89 // Fixes for warnings, etc
90 //
91 // Revision 1.2 1998/04/16 18:11:17 jimg
92 // Sequence support added by Reza
93 
94 #endif
95 
libdap
Definition: BESDapFunctionResponseCache.h:35
FFStr
Definition: FFStr.h:47