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