6 #ifndef OPENDDS_DCPS_PRINTER_VALUE_WRITER_H 7 #define OPENDDS_DCPS_PRINTER_VALUE_WRITER_H 14 #include <dds/DdsDcpsCoreTypeSupportImpl.h> 15 #include <dds/DdsDcpsTopicC.h> 21 #if !defined (ACE_LACKS_PRAGMA_ONCE) 60 #if OPENDDS_HAS_EXPLICIT_INTS 73 void write_fixed(
const OpenDDS::FaceTypes::Fixed& value);
80 std::string
str()
const 180 stream_ << (value ?
"true" :
"false");
185 stream_ << std::hex <<
"0x" <<
static_cast<unsigned int>(
value) << std::dec;
188 #if OPENDDS_HAS_EXPLICIT_INTS 192 stream_ << static_cast<int>(
value);
197 stream_ << static_cast<unsigned int>(
value);
275 stream_ << name <<
" (" << value <<
")";
const LogLevel::Value value
void write_int16(ACE_CDR::Short value)
Convert values to a readable format.
void write_fixed(const OpenDDS::FaceTypes::Fixed &value)
void begin_discriminator()
const unsigned int indent_
void write_uint64(ACE_CDR::ULongLong value)
void write_float32(ACE_CDR::Float value)
void write_float128(ACE_CDR::LongDouble value)
void write_int64(ACE_CDR::LongLong value)
void write_char16(ACE_CDR::WChar value)
void write_float64(ACE_CDR::Double value)
std::stringstream stream_
void write_uint16(ACE_CDR::UShort value)
PrinterValueWriter(unsigned int a_indent=TheServiceParticipant->printer_value_writer_indent())
void write_string(const ACE_CDR::Char *value, size_t length)
void write_wstring(const ACE_CDR::WChar *value, size_t length)
unsigned int current_indent_
void begin_element(size_t idx)
void begin_union_member(const char *name)
void begin_struct_member(const DDS::MemberDescriptor &)
std::ostream & string_helper(std::ostream &o, const CharType *value)
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
void write_uint32(ACE_CDR::ULong value)
void write_int32(ACE_CDR::Long value)
#define TheServiceParticipant
The Internal API and Implementation of OpenDDS.
void write_byte(ACE_CDR::Octet value)
void write_enum(const char *, ACE_CDR::Long value)
void write_char8(ACE_CDR::Char value)
std::ostream & char_helper(std::ostream &o, CharType value)
void write_boolean(ACE_CDR::Boolean value)