VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)