14 #ifdef DtUSE_UTILITIES_NAMESPACE
15 namespace DtUSE_UTILITIES_NAMESPACE
27 std::ostream &stream,
const DtString&
string,
int padTo = 20);
36 stream << obj << std::endl;
58 std::ostream &stream,
const char*label,
const void *bytes,
int size);
72 std::ostream &stream,
const char *label,
DtU32 word);
117 #ifdef DtUSE_UTILITIES_NAMESPACE
void DtDumpHex(std::ostream &str, const char *address, size_t num_bytes)
Prints to stream a byte buffer, neatly seperating bytes and putting only 4 bytes on a line...
Contains the DtString class declaration.
void DtDumpString(const char *label, const char *string)
formats and prints a string next to a label using the DtInfo Stream.
void DtPrintAttribute(std::ostream &stream, const char *label, T obj)
Prints out a value of type T with a label.
Definition: vlPrintUtil.h:33
void DtDumpInteger(const char *label, long i)
formats and prints an integer next to a label using the DtInfo Stream.
void DtDumpHexBytes(const char *label, const void *bytes, int size)
These functions DtDumpHexBytes and DtDumpHexWord print hex output to the DtInfo stream.
void DtDumpFloat(const char *label, double f)
formats and prints a floating point value next to a label using the DtInfo Stream.
void DtPrintAttributeHex(std::ostream &stream, const char *label, const void *bytes, int size)
void DtPrintAndIndent(std::ostream &stream, const DtString &string, int padTo=20)
prints the string to the stream, then it adds spaces to fill to padTo.
unsigned char DtU8
An eight bit unsigned integer value.
Definition: vlMachineTypes.h:137
void DtDumpBoolean(const char *label, bool val, int onlyIfTrue=0)
formats and prints a boolean value next to a label using the DtInfo Stream.
void DtDumpEnum(const char *label, const char *enumStr, int enumNum)
DtDumpEnum prints a label, a enumeration string, and an enumeration value.
unsigned long DtU32
A 32 bit unsigned integer value.
Definition: vlMachineTypes.h:153
void DtDumpHexWord(const char *label, DtU32 word)
Prints a DtU32 word to DtInfo.
Instances of DtString are used to represent strings.
Definition: vlString.h:29
virtual int size() const
size() - returns the length of the string not including the terminating '\0'
void DtDumpLineOfHex(std::ostream &stream, DtU8 *address, size_t num_bytes)
Prints to stream one line (with a newline at the end) of hex data grouped by bytes.
This file contains typedefs for machine dependant types.
#define DT_DLL_VLUTIL
Definition: vlMachineTypes.h:109