IoManip.h
Go to the documentation of this file.
29 RawPointerT<Pointer> &orNil(const char *nilTextToUse = "[nil]") { nilText = nilTextToUse; return *this; }
void PrintHex(std::ostream &, const char *data, size_t n)
Prints the first n data bytes using hex notation. Does nothing if n is 0.
Definition: IoManip.cc:16
std::ostream & operator<<(std::ostream &os, const RawPointerT< Pointer > &pd)
prints RawPointerT<>, dereferencing the io_manip pointer if possible
Definition: IoManip.h:59
RawPointerT< Pointer > RawPointer(const char *label, const Pointer &ptr)
convenience wrapper for creating RawPointerT<> objects
Definition: IoManip.h:43
AsHex< Integer > asHex(const Integer n)
a helper to ease AsHex object creation
Definition: IoManip.h:99
std::ostream manipulator to print integers as hex numbers prefixed by 0x
Definition: IoManip.h:81
auto & prefixedBy(const char *const p)
a c-string to print before the first item (if any). Caller must ensure lifetime.
Definition: IoManip.h:112
const char * delimiter
a c-string to print between consecutive items (if any). Caller must ensure lifetime.
Definition: IoManip.h:121
auto & delimitedBy(const char *const d)
a c-string to print between consecutive items (if any). Caller must ensure lifetime.
Definition: IoManip.h:115
const char * prefix
a c-string to print before the first item (if any). Caller must ensure lifetime.
Definition: IoManip.h:120
Definition: IoManip.h:20
RawPointerT(const char *aLabel, const Pointer &aPtr)
Definition: IoManip.h:22
RawPointerT< Pointer > & orNil(const char *nilTextToUse="[nil]")
enable and, optionally, customize reporting of nil pointers
Definition: IoManip.h:29
RawPointerT< Pointer > & asExtra()
Report the pointed-to-object on a dedicated Debug::Extra line.
Definition: IoManip.h:26