43#include "D4StreamMarshaller.h"
44#include "D4StreamUnMarshaller.h"
48#include "InternalErr.h"
51#include "dods-limits.h"
89 BaseType::operator=(rhs);
94void UInt64::compute_checksum(Crc32 &checksum) { checksum.
AddData(
reinterpret_cast<uint8_t *
>(&d_buf),
sizeof(d_buf)); }
113dods_uint64 UInt64::value()
const {
return d_buf; }
115bool UInt64::set_value(dods_uint64 i) {
122unsigned int UInt64::buf2val(
void **val)
126 throw InternalErr(__FILE__, __LINE__,
"NULL pointer.");
129 *val =
new dods_uint64;
131 *(dods_uint64 *)*val = d_buf;
136void UInt64::print_val(ostream &out,
string space,
bool print_decl_p) {
138 print_decl(out, space,
false);
139 out <<
" = " << d_buf <<
";\n";
144bool UInt64::ops(BaseType *b,
int op) {
147 throw InternalErr(__FILE__, __LINE__,
"This value was not read!");
150 if (!b || !(b->read_p() || b->read()))
151 throw InternalErr(__FILE__, __LINE__,
"This value was not read!");
179bool UInt64::d4_ops(BaseType *b,
int op) {
225 AttrTable *attrs = this->attributes()->get_AttrTable();
227 dest->set_attr_table(*attrs);
228 dest->set_is_dap4(
false);
242 bool has_projected_dap4 =
false;
244 has_projected_dap4 =
true;
245 attributes()->has_dap4_types(FQN(), inventory);
246 inventory.emplace_back(
type_name() +
" " + FQN());
248 return has_projected_dap4;
260 strm << DapIndent::LMarg <<
"UInt32::dump - (" << (
void *)
this <<
")" << endl;
262 BaseType::dump(strm);
263 strm << DapIndent::LMarg <<
"value: " << d_buf << endl;
264 DapIndent::UnIndent();
void AddData(const uint8_t *pData, const uint32_t length)
Contains the attributes for a dataset.
virtual void set_name(const string &n)
Set the name of this attribute table.
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.
Holds a 64-bit unsigned integer.
void serialize(D4StreamMarshaller &m, DMR &dmr, bool filter=false) override
Serialize an Int8.
void dump(ostream &strm) const override
dumps information about this object
std::vector< BaseType * > * transform_to_dap2(AttrTable *parent_attr_table) override
DAP4 to DAP2 transform.
bool is_dap4_projected(std::vector< string > &inventory) override
top level DAP object to house generic methods
virtual BaseType * ptr_duplicate()=0
virtual bool read_p()
Has this variable been read?
virtual string type_name() const
Returns the type of the class instance as a string.
bool Cmp(int op, T1 v1, T2 v2)
virtual bool send_p()
Should this variable be sent?
virtual D4SeqValues value() const
Get the values for this D4Sequence This method returns a reference to the values held by the instance...