libdap++
Updated for version 3.12.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Int8.h
Go to the documentation of this file.
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) 2012 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., 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
#ifndef _int8_h
27
#define _int8_h 1
28
29
#ifndef _dods_datatypes_h
30
#include "
dods-datatypes.h
"
31
#endif
32
33
#ifndef _basetype_h
34
#include "
BaseType.h
"
35
#endif
36
37
namespace
libdap
38
{
39
42
class
Int8
:
public
BaseType
43
{
44
virtual
unsigned
int
val2buf(
void
*,
bool
) {
throw
InternalErr
(__FILE__, __LINE__,
"Not implemented for Int8"
); }
45
virtual
unsigned
int
buf2val(
void
**) {
throw
InternalErr
(__FILE__, __LINE__,
"Not implemented for Int8"
); }
46
47
protected
:
48
dods_int8
d_buf
;
49
50
public
:
51
Int8
(
const
string
&n);
52
Int8
(
const
string
&n,
const
string
&d);
53
virtual
~Int8
()
54
{}
55
56
Int8
(
const
Int8
©_from);
57
58
Int8
&
operator=
(
const
Int8
&rhs);
59
60
virtual
BaseType
*
ptr_duplicate
();
61
62
virtual
unsigned
int
width
(
bool
constrained =
false
);
63
64
virtual
bool
serialize
(
ConstraintEvaluator
&eval,
DDS
&dds,
Marshaller
&m,
bool
ce_eval =
true
);
65
virtual
bool
deserialize
(
UnMarshaller
&um,
DDS
*dds,
bool
reuse =
false
);
66
67
virtual
dods_int8
value
()
const
;
68
virtual
bool
set_value
(
dods_int8
val);
69
70
virtual
void
print_val
(FILE *out,
string
space =
""
,
71
bool
print_decl_p =
true
);
72
virtual
void
print_val
(ostream &out,
string
space =
""
,
73
bool
print_decl_p =
true
);
74
75
virtual
bool
ops
(
BaseType
*b,
int
op);
76
77
virtual
void
dump
(ostream &strm)
const
;
78
};
79
80
}
// namespace libdap
81
82
#endif // _int16_h
83
Int8.h
Generated on Fri Oct 18 2013 00:14:23 for libdap++ by
1.8.4