32 #include "byteswap_compat.h"
33 #include "DmrppInt16.h"
41 DmrppInt16::operator=(
const DmrppInt16 &rhs)
46 dynamic_cast<Int16 &
>(*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_int16*
>(read_atomic(name())));
67 if ( this->twiddle_bytes() ) {
68 d_buf = bswap_16(d_buf);
77 DmrppInt16::set_send_p(
bool state)
79 if (!get_attributes_loaded())
80 load_attributes(
this);
82 Int16::set_send_p(state);
85 void DmrppInt16::dump(ostream & strm)
const
87 strm << BESIndent::LMarg <<
"DmrppInt16::dump - (" << (
void *)
this <<
")" << endl;
89 DmrppCommon::dump(strm);
91 strm << BESIndent::LMarg <<
"value: " << d_buf << endl;
92 BESIndent::UnIndent();