VR-Link API Documentation for HLA 1.3
Functions
vlPrintUtil.h File Reference

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.
template<typename T >
void DtPrintAttribute (std::ostream &stream, const char *label, T obj)
 Prints out a value of type T with a label.
void DtPrintAttribute (std::ostream &stream, const char *label, bool obj)
 An overload of DtPrintAttribute for attributes of type bool.
void DtPrintAttribute (std::ostream &stream, const char *label, DtU8 obj)
 An overload of DtPrintAttribute for attributes of type DtU8.
void DtPrintAttribute (std::ostream &stream, const char *label, const char *enumStr, int enumNum)
 An overload of DtPrintAttribute which also adds a spot for enumerations.
void DtDumpHexBytes (const char *label, const void *bytes, int size)
 These functions DtDumpHexBytes and DtDumpHexWord print hex output to the DtInfo stream.
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.
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.
void DtPrintAttributeHex (std::ostream &stream, const char *label, DtU32 word)
 Prints a DtU32 value to the provided stream.
void DtDumpHexWord (const char *label, DtU32 word)
 Prints a DtU32 word to DtInfo.
void DtDumpEnum (const char *label, const char *enumStr, int enumNum)
 DtDumpEnum prints a label, a enumeration string, and an enumeration value.
void DtDumpInteger (const char *label, long i)
 formats and prints an integer next to a label using 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 DtDumpString (const char *label, const char *string)
 formats and prints a string next to a label using the DtInfo Stream.
void DtDumpString (const char *label, const DtString &string)
 formats and prints a string next to a label using the DtInfo Stream.
void DtDumpBoolean (const char *label, bool val, int onlyIfTrue=0)
 formats and prints a boolean value next to a label using the DtInfo Stream.

Detailed Description

Utility functions for printing objects.


Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)