VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vlutil
vlPrintUtil.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
8
#pragma once
9
10
#include "
vlMachineTypes.h
"
11
#include "
vlString.h
"
12
#include <iostream>
13
14
#ifdef DtUSE_UTILITIES_NAMESPACE
15
namespace
DtUSE_UTILITIES_NAMESPACE
16
{
17
#endif
18
19
class
DtString
;
20
26
DT_DLL_VLUTIL
void
DtPrintAndIndent
(
27
std::ostream &stream,
const
DtString
&
string
,
int
padTo = 20);
28
32
template
<
typename
T>
33
void
DtPrintAttribute
(std::ostream &stream,
const
char
* label,T obj)
34
{
35
DtPrintAndIndent
(stream, label);
36
stream << obj << std::endl;
37
}
38
41
DT_DLL_VLUTIL
void
DtPrintAttribute
(std::ostream &stream,
const
char
* label,
bool
obj);
42
45
DT_DLL_VLUTIL
void
DtPrintAttribute
(std::ostream& stream,
const
char
* label,
DtU8
obj);
46
49
DT_DLL_VLUTIL
void
DtPrintAttribute
(std::ostream &stream,
const
char
*label,
const
char
*enumStr,
int
enumNum);
50
51
55
DT_DLL_VLUTIL
void
DtDumpHexBytes
(
const
char
*label,
const
void
*bytes,
int
size
);
57
DT_DLL_VLUTIL
void
DtPrintAttributeHex
(
58
std::ostream &stream,
const
char
*label,
const
void
*bytes,
int
size
);
59
63
DT_DLL_VLUTIL
void
DtDumpLineOfHex
(std::ostream& stream,
DtU8
*address,
size_t
num_bytes);
67
DT_DLL_VLUTIL
void
DtDumpHex
(std::ostream& str,
const
char
* address,
size_t
num_bytes);
68
71
DT_DLL_VLUTIL
void
DtPrintAttributeHex
(
72
std::ostream &stream,
const
char
*label,
DtU32
word);
73
77
DT_DLL_VLUTIL
void
DtDumpHexWord
(
const
char
*label,
DtU32
word);
78
85
DT_DLL_VLUTIL
void
DtDumpEnum
(
const
char
*label,
const
char
*enumStr,
int
enumNum);
86
90
DT_DLL_VLUTIL
void
DtDumpInteger
(
const
char
*label,
long
i);
91
96
DT_DLL_VLUTIL
void
DtDumpFloat
(
const
char
*label,
double
f);
97
102
DT_DLL_VLUTIL
void
DtDumpString
(
const
char
*label,
const
char
*
string
);
103
108
DT_DLL_VLUTIL
void
DtDumpString
(
const
char
*label,
const
DtString
&
string
);
109
110
115
DT_DLL_VLUTIL
void
DtDumpBoolean
(
const
char
*label,
bool
val,
int
onlyIfTrue = 0);
116
117
#ifdef DtUSE_UTILITIES_NAMESPACE
118
}
119
#endif
120
121
122
123
124
125
126
127
128
129
130
Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)