libdap Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
libdap::Int16 Class Reference

Holds a 16-bit signed integer value. More...

#include <Int16.h>

Inheritance diagram for libdap::Int16:
Inheritance graph

Public Member Functions

unsigned int buf2val (void **val) override
void compute_checksum (Crc32 &checksum) override
bool d4_ops (BaseType *b, int op) override
void deserialize (D4StreamUnMarshaller &um, DMR &dmr) override
bool deserialize (UnMarshaller &um, DDS *dds, bool reuse=false) override
void dump (ostream &strm) const override
 dumps information about this object
 Int16 (const Int16 &copy_from)
 Int16 (const string &n)
 Int16 (const string &n, const string &d)
Int16operator= (const Int16 &rhs)
bool ops (BaseType *b, int op) override
void print_val (FILE *out, string space="", bool print_decl_p=true) override
void print_val (ostream &out, string space="", bool print_decl_p=true) override
BaseTypeptr_duplicate () override
bool serialize (ConstraintEvaluator &eval, DDS &dds, Marshaller &m, bool ce_eval=true) override
void serialize (D4StreamMarshaller &m, DMR &dmr, bool filter=false) override
 Serialize an Int8.
virtual bool set_value (dods_int16 val)
unsigned int val2buf (void *val, bool reuse=false) override
virtual dods_int16 value () const
unsigned int width (bool=false) const override
int64_t width_ll (bool=false) const override

Protected Attributes

dods_int16 d_buf

Detailed Description

Holds a 16-bit signed integer value.

Definition at line 57 of file Int16.h.

Constructor & Destructor Documentation

◆ Int16() [1/3]

libdap::Int16::Int16 ( const string & n)

The Int16 constructor accepts the name of the variable to be created.

Parameters
nA string containing the name of the variable to be created.

Definition at line 78 of file Int16.cc.

◆ Int16() [2/3]

libdap::Int16::Int16 ( const string & n,
const string & d )

The Int16 server-side constructor accepts the name of the variable and the dataset name from which this instance is created.

Parameters
nA string containing the name of the variable to be created.
dA string containing the name of the dataset from which this variable is created

Definition at line 87 of file Int16.cc.

◆ ~Int16()

virtual libdap::Int16::~Int16 ( )
inlinevirtual

Definition at line 64 of file Int16.h.

◆ Int16() [3/3]

libdap::Int16::Int16 ( const Int16 & copy_from)

Definition at line 89 of file Int16.cc.

Member Function Documentation

◆ buf2val()

unsigned int libdap::Int16::buf2val ( void ** val)
override

Definition at line 156 of file Int16.cc.

◆ compute_checksum()

void libdap::Int16::compute_checksum ( Crc32 & checksum)
override

Definition at line 124 of file Int16.cc.

◆ d4_ops()

bool libdap::Int16::d4_ops ( BaseType * b,
int op )
override
See also
BaseType::d4_ops(BaseType *, int)

Definition at line 221 of file Int16.cc.

◆ deserialize() [1/2]

void libdap::Int16::deserialize ( D4StreamUnMarshaller & um,
DMR & dmr )
override

Definition at line 141 of file Int16.cc.

◆ deserialize() [2/2]

bool libdap::Int16::deserialize ( UnMarshaller & um,
DDS * dds,
bool reuse = false )
override

Definition at line 118 of file Int16.cc.

◆ dump()

void libdap::Int16::dump ( ostream & strm) const
override

dumps information about this object

Displays the pointer value of this instance and information about this instance.

Parameters
strmC++ i/o stream to dump the information to
Returns
void

Definition at line 259 of file Int16.cc.

◆ operator=()

Int16 & libdap::Int16::operator= ( const Int16 & rhs)

Definition at line 93 of file Int16.cc.

◆ ops()

bool libdap::Int16::ops ( BaseType * b,
int op )
override

Definition at line 193 of file Int16.cc.

◆ print_val() [1/2]

void libdap::Int16::print_val ( FILE * out,
string space = "",
bool print_decl_p = true )
override

Definition at line 179 of file Int16.cc.

◆ print_val() [2/2]

void libdap::Int16::print_val ( ostream & out,
string space = "",
bool print_decl_p = true )
override

Definition at line 185 of file Int16.cc.

◆ ptr_duplicate()

BaseType * libdap::Int16::ptr_duplicate ( )
override

Definition at line 91 of file Int16.cc.

◆ serialize() [1/2]

bool libdap::Int16::serialize ( ConstraintEvaluator & eval,
DDS & dds,
Marshaller & m,
bool ce_eval = true )
override

Definition at line 101 of file Int16.cc.

◆ serialize() [2/2]

void libdap::Int16::serialize ( D4StreamMarshaller & m,
DMR & dmr,
bool filter = false )
override

Serialize an Int8.

Parameters
m
dmrUnused
evalUnused
filterUnused
Exceptions
Erroris thrown if the value needs to be read and that operation fails.

Definition at line 134 of file Int16.cc.

◆ set_value()

bool libdap::Int16::set_value ( dods_int16 val)
virtual

Definition at line 172 of file Int16.cc.

◆ val2buf()

unsigned int libdap::Int16::val2buf ( void * val,
bool reuse = false )
override

Definition at line 143 of file Int16.cc.

◆ value()

dods_int16 libdap::Int16::value ( ) const
virtual

Definition at line 170 of file Int16.cc.

◆ width()

unsigned int libdap::Int16::width ( bool = false) const
inlineoverride

Definition at line 72 of file Int16.h.

◆ width_ll()

int64_t libdap::Int16::width_ll ( bool = false) const
inlineoverride

Definition at line 74 of file Int16.h.

Member Data Documentation

◆ d_buf

dods_int16 libdap::Int16::d_buf
protected

Definition at line 59 of file Int16.h.


The documentation for this class was generated from the following files: