32 #include "byteswap_compat.h"
33 #include "DmrppInt16.h"
41 DmrppInt16::_duplicate(
const DmrppInt16 &)
45 DmrppInt16::DmrppInt16(
const string &n) : Int16(n), DmrppCommon()
49 DmrppInt16::DmrppInt16(
const string &n,
const string &d) : Int16(n, d), DmrppCommon()
54 DmrppInt16::ptr_duplicate()
56 return new DmrppInt16(*
this);
59 DmrppInt16::DmrppInt16(
const DmrppInt16 &rhs) : Int16(rhs), DmrppCommon(rhs)
65 DmrppInt16::operator=(
const DmrppInt16 &rhs)
70 dynamic_cast<Int16 &
>(*this) = rhs;
73 DmrppCommon::m_duplicate_common(rhs);
81 BESDEBUG(
"dmrpp",
"Entering " <<__PRETTY_FUNCTION__ <<
" for '" << name() <<
"'" << endl);
86 set_value(*
reinterpret_cast<dods_int16*
>(read_atomic(name())));
88 if ( this->twiddle_bytes() ) {
89 d_buf = bswap_16(d_buf);
97 void DmrppInt16::dump(ostream & strm)
const
99 strm << BESIndent::LMarg <<
"DmrppInt16::dump - (" << (
void *)
this <<
")" << endl;
101 DmrppCommon::dump(strm);
103 strm << BESIndent::LMarg <<
"value: " << d_buf << endl;
104 BESIndent::UnIndent();