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

Holds a 64-bit (double precision) floating point value. More...

#include <Float64.h>

Inheritance diagram for libdap::Float64:
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
 Float64 (const Float64 &copy_from)
 Float64 (const string &n)
 Float64 (const string &n, const string &d)
Float64operator= (const Float64 &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_float64 val)
unsigned int val2buf (void *val, bool reuse=false) override
virtual dods_float64 value () const
unsigned int width (bool=false) const override
int64_t width_ll (bool=false) const override

Protected Attributes

dods_float64 d_buf

Detailed Description

Holds a 64-bit (double precision) floating point value.

See also
BaseType

Definition at line 58 of file Float64.h.

Constructor & Destructor Documentation

◆ Float64() [1/3]

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

The Float64 constructor requires only the name of the variable to be created. The name may be omitted, which will create a nameless variable. This may be adequate for some applications.

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

Definition at line 84 of file Float64.cc.

◆ Float64() [2/3]

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

The Float64 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 93 of file Float64.cc.

◆ ~Float64()

virtual libdap::Float64::~Float64 ( )
inlinevirtual

Definition at line 65 of file Float64.h.

◆ Float64() [3/3]

libdap::Float64::Float64 ( const Float64 & copy_from)

Definition at line 95 of file Float64.cc.

Member Function Documentation

◆ buf2val()

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

Definition at line 164 of file Float64.cc.

◆ compute_checksum()

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

Definition at line 130 of file Float64.cc.

◆ d4_ops()

bool libdap::Float64::d4_ops ( BaseType * b,
int op )
override

Definition at line 236 of file Float64.cc.

◆ deserialize() [1/2]

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

Definition at line 149 of file Float64.cc.

◆ deserialize() [2/2]

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

Definition at line 124 of file Float64.cc.

◆ dump()

void libdap::Float64::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 280 of file Float64.cc.

◆ operator=()

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

Definition at line 99 of file Float64.cc.

◆ ops()

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

Definition at line 212 of file Float64.cc.

◆ print_val() [1/2]

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

Definition at line 192 of file Float64.cc.

◆ print_val() [2/2]

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

Definition at line 198 of file Float64.cc.

◆ ptr_duplicate()

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

Definition at line 97 of file Float64.cc.

◆ serialize() [1/2]

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

Definition at line 107 of file Float64.cc.

◆ serialize() [2/2]

void libdap::Float64::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 142 of file Float64.cc.

◆ set_value()

bool libdap::Float64::set_value ( dods_float64 val)
virtual

Definition at line 185 of file Float64.cc.

◆ val2buf()

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

Definition at line 151 of file Float64.cc.

◆ value()

dods_float64 libdap::Float64::value ( ) const
virtual

Return the value of the Float64 held by this instance. This is more convenient than the general interface provided by buf2val, but its use requires a downcase from BaseType to Float64.

Returns
The dods_float32 value.

Definition at line 183 of file Float64.cc.

◆ width()

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

Definition at line 73 of file Float64.h.

◆ width_ll()

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

Definition at line 75 of file Float64.h.

Member Data Documentation

◆ d_buf

dods_float64 libdap::Float64::d_buf
protected

Definition at line 60 of file Float64.h.


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