42 virtual void Print(
const char *pszText) = 0;
51 void Printf(
const char *pszFormat, ...);
224 stream <<
"(size:" <<
static_cast<unsigned int>(list.size()) <<
")";
226 for (
const auto &element : list) {
227 stream <<
"\n" << nIndex <<
"\t" << element;
286 stream <<
"(size:" <<
static_cast<unsigned int>(elements.size()) <<
")";
288 for (
const T &element : elements) {
289 stream <<
"\n" << nIndex <<
"\t" << element;
311template <
typename Key,
typename Value,
typename Compare>
313 stream <<
"(size:" <<
static_cast<unsigned int>(map.size()) <<
")";
314 for (
const auto &entry : map) {
315 stream <<
"\n\t" <<
"key:" << entry.first <<
" value:" << entry.second;
329template <
typename Key,
typename Value>
Text output stream.
Definition prnstream.h:16
PrnStream & operator<<(bool bValue)
Write true or false.
void Printf(const char *pszFormat,...)
Format text into the shared format buffer and write the result through Print().
PrnStream & operator<<(float fValue)
Write a number with two decimals.
PrnStream & operator<<(unsigned char nValue)
Write a byte as an unsigned integer in decimal.
int GetDumpLevel() const
Definition prnstream.h:166
void Space(int nCount)
Write a number of spaces, one Print() call each.
virtual ~PrnStream()
Release the stream.
Definition prnstream.h:32
virtual void Print(const char *pszText)=0
Write text to the stream's destination.
PrnStream & operator<<(unsigned int nValue)
Write an unsigned integer in decimal.
PrnStream & operator<<(unsigned long long nValue)
Write an unsigned 64-bit number in decimal.
PrnStream & operator<<(short nValue)
Write a short integer in decimal.
PrnStream & operator<<(char ch)
Write a character.
PrnStream & operator<<(unsigned short nValue)
Write an unsigned short integer in decimal.
PrnStream & operator<<(int nValue)
Write an integer in decimal.
PrnStream()
Construct a stream with a dump level of 0.
Definition prnstream.h:23
PrnStream & operator<<(const char *pszText)
Write text.
PrnStream & operator<<(PrnStream &stream, const std::list< T > &list)
Write a list as its size followed by one tab-indented line per element.
Definition prnstream.h:223
constexpr int kPrnModeFull
The PrnStream::mDumpLevel value that includes the fourth word of a written Vector3.
Definition prnstream.h:180