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

Holds an 8-bit signed integer value. More...

#include <Int8.h>

Inheritance diagram for libdap::Int8:
Inheritance graph

Public Member Functions

void compute_checksum (Crc32 &checksum) override
bool d4_ops (BaseType *b, int op) override
void deserialize (D4StreamUnMarshaller &um, DMR &dmr) override
void dump (ostream &strm) const override
 dumps information about this object
 Int8 (const Int8 &copy_from)
 Int8 (const string &n)
 Int8 (const string &n, const string &d)
bool is_dap4_projected (std::vector< std::string > &inventory) override
Int8operator= (const Int8 &rhs)
bool ops (BaseType *b, int op) override
void print_val (ostream &out, string space="", bool print_decl_p=true) override
BaseTypeptr_duplicate () override
void serialize (D4StreamMarshaller &m, DMR &dmr, bool filter=false) override
 Serialize an Int8.
virtual bool set_value (dods_int8 val)
std::vector< BaseType * > * transform_to_dap2 (AttrTable *parent_attr_table) override
 DAP4 to DAP2 transform.
virtual dods_int8 value () const
unsigned int width (bool=false) const override
int64_t width_ll (bool=false) const override

Protected Attributes

dods_int8 d_buf

Detailed Description

Holds an 8-bit signed integer value.

Definition at line 41 of file Int8.h.

Constructor & Destructor Documentation

◆ Int8() [1/3]

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

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

Note
This type is available in DAP4 only. See http://docs.opendap.org/index.php/DAP4:_Specification_Volume_1#Atomic_Types
Parameters
nA string containing the name of the variable to be created.

Definition at line 68 of file Int8.cc.

◆ Int8() [2/3]

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

The Int8 server-side constructor accepts the name of the variable and the dataset name from which this instance is created. This is a signed 8-bit integer and was added for DAP4; Byte and UInt8 are unsigned 8-bit integers.

Note
This integer type cannot be used with DAP2; it is only present in DAP4. See http://docs.opendap.org/index.php/DAP4:_Specification_Volume_1#Atomic_Types.
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 82 of file Int8.cc.

◆ ~Int8()

virtual libdap::Int8::~Int8 ( )
inlinevirtual

Definition at line 60 of file Int8.h.

◆ Int8() [3/3]

libdap::Int8::Int8 ( const Int8 & copy_from)

Definition at line 84 of file Int8.cc.

Member Function Documentation

◆ compute_checksum()

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

Definition at line 96 of file Int8.cc.

◆ d4_ops()

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

Definition at line 147 of file Int8.cc.

◆ deserialize()

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

Definition at line 113 of file Int8.cc.

◆ dump()

void libdap::Int8::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 225 of file Int8.cc.

◆ is_dap4_projected()

bool libdap::Int8::is_dap4_projected ( std::vector< std::string > & inventory)
override

When send_p() is true a description of the instance is added to the inventory and true is returned.

Parameters
inventoryis a value-result parameter
Returns
True when send_p() is true, false otherwise

Definition at line 207 of file Int8.cc.

◆ operator=()

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

Definition at line 88 of file Int8.cc.

◆ ops()

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

Definition at line 132 of file Int8.cc.

◆ print_val()

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

Definition at line 124 of file Int8.cc.

◆ ptr_duplicate()

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

Definition at line 86 of file Int8.cc.

◆ serialize()

void libdap::Int8::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 106 of file Int8.cc.

◆ set_value()

bool libdap::Int8::set_value ( dods_int8 val)
virtual

Definition at line 117 of file Int8.cc.

◆ transform_to_dap2()

std::vector< BaseType * > * libdap::Int8::transform_to_dap2 ( AttrTable * parent_attr_table)
override

DAP4 to DAP2 transform.

Return a DAP2 'copy' of the variable. In this case, since Int8 doesn't have a natural representation in DAP2 we are going to just call it a Byte . Why? Because SIZE.

Parameters
rootThe root group that should hold this new variable. Add Group-level stuff here (e.g., D4Dimensions).
containerAdd the new variable to this container.
Returns
A pointer to the transformed variable

Definition at line 190 of file Int8.cc.

◆ value()

dods_int8 libdap::Int8::value ( ) const
virtual

Definition at line 115 of file Int8.cc.

◆ width()

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

Definition at line 68 of file Int8.h.

◆ width_ll()

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

Definition at line 70 of file Int8.h.

Member Data Documentation

◆ d_buf

dods_int8 libdap::Int8::d_buf
protected

Definition at line 55 of file Int8.h.


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