![]() |
VR-Link API Documentation for HLA Evolved
|
00001 /********************************************************************* 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 *********************************************************************/ 00008 #pragma once 00009 00010 #include "vlMachineTypes.h" 00011 #include "vlString.h" 00012 #include <iostream> 00013 00014 #ifdef DtUSE_UTILITIES_NAMESPACE 00015 namespace DtUSE_UTILITIES_NAMESPACE 00016 { 00017 #endif 00018 00019 class DtString; 00020 00026 DT_DLL_VLUTIL void DtPrintAndIndent( 00027 std::ostream &stream, const DtString& string, int padTo = 20); 00028 00032 template <typename T> 00033 void DtPrintAttribute(std::ostream &stream, const char* label,T obj) 00034 { 00035 DtPrintAndIndent(stream, label); 00036 stream << obj << std::endl; 00037 } 00038 00041 DT_DLL_VLUTIL void DtPrintAttribute(std::ostream &stream, const char* label,bool obj); 00042 00045 DT_DLL_VLUTIL void DtPrintAttribute(std::ostream& stream, const char* label, DtU8 obj); 00046 00049 DT_DLL_VLUTIL void DtPrintAttribute(std::ostream &stream, const char *label, const char *enumStr, int enumNum); 00050 00051 00055 DT_DLL_VLUTIL void DtDumpHexBytes(const char *label, const void *bytes, int size); 00057 DT_DLL_VLUTIL void DtPrintAttributeHex( 00058 std::ostream &stream, const char*label, const void *bytes, int size); 00059 00063 DT_DLL_VLUTIL void DtDumpLineOfHex(std::ostream& stream, DtU8 *address, size_t num_bytes); 00067 DT_DLL_VLUTIL void DtDumpHex(std::ostream& str, const char * address, size_t num_bytes); 00068 00071 DT_DLL_VLUTIL void DtPrintAttributeHex( 00072 std::ostream &stream, const char *label, DtU32 word); 00073 00077 DT_DLL_VLUTIL void DtDumpHexWord(const char *label, DtU32 word); 00078 00085 DT_DLL_VLUTIL void DtDumpEnum(const char *label, const char *enumStr, int enumNum); 00086 00090 DT_DLL_VLUTIL void DtDumpInteger(const char *label, long i); 00091 00096 DT_DLL_VLUTIL void DtDumpFloat(const char *label, double f); 00097 00102 DT_DLL_VLUTIL void DtDumpString(const char *label, const char *string); 00103 00108 DT_DLL_VLUTIL void DtDumpString(const char *label, const DtString &string); 00109 00110 00115 DT_DLL_VLUTIL void DtDumpBoolean(const char *label, bool val, int onlyIfTrue = 0); 00116 00117 #ifdef DtUSE_UTILITIES_NAMESPACE 00118 } 00119 #endif 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130