29#ifndef _dods_datatypes_h
30#include "dods-datatypes.h"
45 unsigned int val2buf(
void *val,
bool)
override {
46 set_value(*
reinterpret_cast<dods_int8*
>(val));
47 return sizeof(dods_int8);
49 unsigned int buf2val(
void **)
override {
throw InternalErr(__FILE__, __LINE__,
"buf2val: Not implemented for Int8"); }
50 void print_val(FILE *,
string ,
bool)
override {
throw InternalErr(__FILE__, __LINE__,
"print_val: Not implemented for Int8"); }
56 Int8(
const string &n);
57 Int8(
const string &n,
const string &d);
67 unsigned int width(
bool =
false)
const override
69 return sizeof(dods_int8);
72 int64_t width_ll(
bool =
false)
const override
74 return sizeof(dods_int8);
80 void serialize(D4StreamMarshaller &m, DMR &dmr,
bool filter =
false)
override;
81 void deserialize(D4StreamUnMarshaller &um, DMR &dmr)
override;
83 virtual dods_int8 value()
const;
84 virtual bool set_value(dods_int8 val);
86 void print_val(ostream &out,
string space =
"",
bool print_decl_p =
true)
override;
88 bool ops(BaseType *b,
int op)
override;
89 bool d4_ops(BaseType *b,
int op)
override;
90 std::vector<BaseType *> *
transform_to_dap2(AttrTable *parent_attr_table)
override;
94 void dump(ostream &strm)
const override;
The basic data type for the DODS DAP types.
Holds an 8-bit signed integer value.
void dump(ostream &strm) const override
dumps information about this object
unsigned int width(bool=false) const override
How many bytes does this variable use Return the number of bytes of storage this variable uses....
void serialize(D4StreamMarshaller &m, DMR &dmr, bool filter=false) override
Serialize an Int8.
void deserialize(D4StreamUnMarshaller &um, DMR &dmr) override
BaseType * ptr_duplicate() override
void compute_checksum(Crc32 &checksum) override
include the data for this variable in the checksum DAP4 includes a checksum with every data response....
bool is_dap4_projected(std::vector< std::string > &inventory) override
bool d4_ops(BaseType *b, int op) override
std::vector< BaseType * > * transform_to_dap2(AttrTable *parent_attr_table) override
DAP4 to DAP2 transform.
A class for software fault reporting.
top level DAP object to house generic methods