29#ifndef _dods_datatypes_h
30#include "dods-datatypes.h"
43 unsigned int val2buf(
void *val,
bool)
override {
47 unsigned int buf2val(
void **)
override {
48 throw InternalErr(__FILE__, __LINE__,
"buf2val: Not implemented for Int8");
50 void print_val(FILE *,
string,
bool)
override {
51 throw InternalErr(__FILE__, __LINE__,
"print_val: Not implemented for Int8");
58 Int8(
const string &n);
59 Int8(
const string &n,
const string &d);
68 unsigned int width(
bool =
false)
const override {
return sizeof(
dods_int8); }
80 void print_val(ostream &out,
string space =
"",
bool print_decl_p =
true)
override;
88 void dump(ostream &strm)
const override;
Contains the attributes for a dataset.
The basic data type for the DODS DAP types.
BaseType(const string &n, const Type &t, bool is_dap4=false)
The BaseType constructor.
Marshaller that knows how to marshal/serialize dap data objects to a C++ iostream using DAP4's receiv...
Read data from the stream made by D4StreamMarshaller.
Holds an 8-bit signed integer value.
virtual bool set_value(dods_int8 val)
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
bool ops(BaseType *b, int op) override
Evaluate relational operators.
int64_t width_ll(bool=false) const override
Int8 & operator=(const Int8 &rhs)
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
virtual dods_int8 value() const
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