Holds an 8-bit signed integer value.
More...
#include <Int8.h>
Holds an 8-bit signed integer value.
Definition at line 41 of file Int8.h.
◆ Int8() [1/3]
| libdap::Int8::Int8 |
( |
const string & | n | ) |
|
◆ Int8() [2/3]
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
-
| n | A string containing the name of the variable to be created. |
| d | A 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 |
◆ Int8() [3/3]
| libdap::Int8::Int8 |
( |
const Int8 & | copy_from | ) |
|
◆ compute_checksum()
| void libdap::Int8::compute_checksum |
( |
Crc32 & | checksum | ) |
|
|
override |
◆ 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()
◆ 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
-
| strm | C++ 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
-
| inventory | is 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 | ) |
|
◆ ops()
| bool libdap::Int8::ops |
( |
BaseType * | b, |
|
|
int | op ) |
|
override |
◆ print_val()
| void libdap::Int8::print_val |
( |
ostream & | out, |
|
|
string | space = "", |
|
|
bool | print_decl_p = true ) |
|
override |
◆ ptr_duplicate()
| BaseType * libdap::Int8::ptr_duplicate |
( |
| ) |
|
|
override |
◆ serialize()
Serialize an Int8.
- Parameters
-
| m | |
| dmr | Unused |
| eval | Unused |
| filter | Unused |
- Exceptions
-
| Error | is 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 |
◆ 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
-
| root | The root group that should hold this new variable. Add Group-level stuff here (e.g., D4Dimensions). |
| container | Add 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 |
◆ width()
| unsigned int libdap::Int8::width |
( |
bool | = false | ) |
const |
|
inlineoverride |
◆ width_ll()
| int64_t libdap::Int8::width_ll |
( |
bool | = false | ) |
const |
|
inlineoverride |
◆ d_buf
| dods_int8 libdap::Int8::d_buf |
|
protected |
The documentation for this class was generated from the following files: