29#ifndef _dods_datatypes_h
30#include "dods-datatypes.h"
43 unsigned int val2buf(
void *val,
bool)
override {
44 set_value(*
reinterpret_cast<dods_int8 *
>(val));
45 return sizeof(dods_int8);
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); }
70 int64_t width_ll(
bool =
false)
const override {
return sizeof(dods_int8); }
73 void compute_checksum(
Crc32 &checksum)
override;
77 virtual dods_int8
value()
const;
78 virtual bool set_value(dods_int8 val);
80 void print_val(ostream &out,
string space =
"",
bool print_decl_p =
true)
override;
82 bool ops(
BaseType *b,
int op)
override;
88 void dump(ostream &strm)
const override;
Contains the attributes for a dataset.
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.
void dump(ostream &strm) const override
dumps information about this object
void serialize(D4StreamMarshaller &m, DMR &dmr, bool filter=false) override
Serialize an Int8.
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
virtual BaseType * ptr_duplicate()=0
virtual D4SeqValues value() const
Get the values for this D4Sequence This method returns a reference to the values held by the instance...