![]() |
VR-Link API Documentation for DIS
|
Utility functions for printing objects. More...
Go to the source code of this file.
Functions | |
| 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. More... | |
| template<typename T > | |
| void | DtPrintAttribute (std::ostream &stream, const char *label, T obj) |
| Prints out a value of type T with a label. More... | |
| void | DtPrintAttribute (std::ostream &stream, const char *label, bool obj) |
| An overload of DtPrintAttribute for attributes of type bool. More... | |
| void | DtPrintAttribute (std::ostream &stream, const char *label, DtU8 obj) |
| An overload of DtPrintAttribute for attributes of type DtU8. More... | |
| void | DtPrintAttribute (std::ostream &stream, const char *label, const char *enumStr, int enumNum) |
| An overload of DtPrintAttribute which also adds a spot for enumerations. More... | |
| void | DtDumpHexBytes (const char *label, const void *bytes, int size) |
| These functions DtDumpHexBytes and DtDumpHexWord print hex output to the DtInfo stream. More... | |
| void | DtPrintAttributeHex (std::ostream &stream, const char *label, const void *bytes, int size) |
| 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. More... | |
| 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. More... | |
| void | DtPrintAttributeHex (std::ostream &stream, const char *label, DtU32 word) |
| Prints a DtU32 value to the provided stream. More... | |
| void | DtDumpHexWord (const char *label, DtU32 word) |
| Prints a DtU32 word to DtInfo. More... | |
| void | DtDumpEnum (const char *label, const char *enumStr, int enumNum) |
| DtDumpEnum prints a label, a enumeration string, and an enumeration value. More... | |
| void | DtDumpInteger (const char *label, long i) |
| formats and prints an integer next to a label using the DtInfo Stream. More... | |
| void | DtDumpFloat (const char *label, double f) |
| formats and prints a floating point value next to a label using the DtInfo Stream. More... | |
| void | DtDumpString (const char *label, const char *string) |
| formats and prints a string next to a label using the DtInfo Stream. More... | |
| void | DtDumpString (const char *label, const DtString &string) |
| formats and prints a string next to a label using the DtInfo Stream. More... | |
| void | DtDumpBoolean (const char *label, bool val, int onlyIfTrue=0) |
| formats and prints a boolean value next to a label using the DtInfo Stream. More... | |
Utility functions for printing objects.