30 #include "BESIndent.h"
32 #include "byteswap_compat.h"
33 #include "DmrppInt32.h"
41 DmrppInt32::operator=(
const DmrppInt32 &rhs)
46 dynamic_cast<Int32 &
>(*this) = rhs;
48 dynamic_cast<DmrppCommon &
>(*this) = rhs;
57 BESDEBUG(
"dmrpp",
"Entering " <<__PRETTY_FUNCTION__ <<
" for '" << name() <<
"'" << endl);
59 if (!get_chunks_loaded())
65 set_value(*
reinterpret_cast<dods_int32*
>(read_atomic(name())));
67 if ( this->twiddle_bytes() ) {
68 d_buf = bswap_32(d_buf);
76 DmrppInt32::set_send_p(
bool state)
78 if (!get_attributes_loaded())
79 load_attributes(
this);
81 Int32::set_send_p(state);
84 void DmrppInt32::dump(ostream & strm)
const
86 strm << BESIndent::LMarg <<
"DmrppInt32::dump - (" << (
void *)
this <<
")" << endl;
88 DmrppCommon::dump(strm);
90 strm << BESIndent::LMarg <<
"value: " << d_buf << endl;
91 BESIndent::UnIndent();