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