HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_OStream.h File Reference
#include "UT_API.h"
#include "UT_IOS.h"
#include "UT_NTStreamUtil.h"
#include "UT_NonCopyable.h"
#include <SYS/SYS_Compiler.h>
#include <SYS/SYS_Types.h>
#include <iosfwd>
#include <string>
+ Include dependency graph for UT_OStream.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UT_OStream
 
class  UT_ONullStream
 
class  UT_OStreamAutoBinary
 Turn the stream into binary or ASCII while in variable scope. More...
 
class  UT_AutoPrecision
 

Macros

#define UT_NEED_LONG_OSTREAM_INSERTER
 
#define UT_OSTREAM_ACCESSOR(FUNCNAME)
 
#define UT_OSTREAM_INSERTER(T)
 
#define UT_OSTREAM_FLAG_GETTOR(FUNCNAME)   inline bool UT_OStream::FUNCNAME() const { return myOS->FUNCNAME(); }
 
#define UT_OSTREAM_WRITE(TYPENAME)
 
#define UT_OSTREAM_BWRITE(TYPENAME)
 
#define UT_OSTREAM_AWRITE(TYPENAME)
 
#define UT_OSTREAM_WRITEFLOAT(TYPENAME)
 

Functions

UT_OStreamoperator<< (UT_OStream &os, UT_OStream &(*manip)(UT_OStream &))
 

Macro Definition Documentation

#define UT_NEED_LONG_OSTREAM_INSERTER

Definition at line 27 of file UT_OStream.h.

#define UT_OSTREAM_ACCESSOR (   FUNCNAME)
Value:
inline int UT_OStream::FUNCNAME() const \
{ \
return myOS->FUNCNAME(); \
} \
inline int UT_OStream::FUNCNAME(int value) \
{ \
return myOS->FUNCNAME(value); \
} \
GLsizei const GLfloat * value
Definition: glcorearb.h:823
#define const
Definition: zconf.h:214

Definition at line 384 of file UT_OStream.h.

#define UT_OSTREAM_AWRITE (   TYPENAME)
Value:
inline int64 \
UT_OStream::awrite(const TYPENAME *buf, int64 cnt, bool nl) \
{ \
if (cnt < 1) \
return 0; \
*myOS << buf[0]; \
for (int64 i = 1; i < cnt; i++) \
*myOS << ' ' << buf[i]; \
*myOS << (nl ? '\n' : ' '); \
return myOS->bad() ? 0 : cnt; \
} \
png_uint_32 i
Definition: png.h:2877
long long int64
Definition: SYS_Types.h:100
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2539

Definition at line 503 of file UT_OStream.h.

#define UT_OSTREAM_BWRITE (   TYPENAME)
Value:
inline int64 \
UT_OStream::bwrite(const TYPENAME *buf, int64 cnt) \
{ \
return UTwrite(*myOS, buf, cnt).bad() ? 0 : cnt; \
} \
long long int64
Definition: SYS_Types.h:100
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2539

Definition at line 479 of file UT_OStream.h.

#define UT_OSTREAM_FLAG_GETTOR (   FUNCNAME)    inline bool UT_OStream::FUNCNAME() const { return myOS->FUNCNAME(); }

Definition at line 438 of file UT_OStream.h.

#define UT_OSTREAM_INSERTER (   T)
Value:
inline UT_OStream & \
operator<<(UT_OStream &os, T value) \
{ \
*os.myOS << value; \
return os; \
} \
GLsizei const GLfloat * value
Definition: glcorearb.h:823

Definition at line 399 of file UT_OStream.h.

#define UT_OSTREAM_WRITE (   TYPENAME)
Value:
inline int64 \
UT_OStream::write(const TYPENAME *buf, int64 cnt, bool nl) \
{ \
return myIsBinary ? bwrite(buf, cnt) : awrite(buf, cnt, nl); \
} \
long long int64
Definition: SYS_Types.h:100
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2539
void write(T &out, bool v)
Definition: ImfXdr.h:332

Definition at line 448 of file UT_OStream.h.

#define UT_OSTREAM_WRITEFLOAT (   TYPENAME)
Value:
template <typename DEST_TYPE> \
inline int64 \
UT_OStream::write(const TYPENAME *buf, int64 cnt, bool nl) \
{ \
return myIsBinary ? bwrite<DEST_TYPE>(buf, cnt) : awrite(buf, cnt, nl); \
} \
template <typename DEST_TYPE> \
inline int64 \
UT_OStream::bwrite(const TYPENAME *buf, int64 cnt) \
{ \
return UTwrite<DEST_TYPE>(*myOS, buf, cnt).bad() ? 0 : cnt; \
} \
long long int64
Definition: SYS_Types.h:100
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2539
void write(T &out, bool v)
Definition: ImfXdr.h:332

Definition at line 541 of file UT_OStream.h.

Function Documentation

UT_OStream& operator<< ( UT_OStream os,
UT_OStream &(*)(UT_OStream &)  manip 
)
inline

Definition at line 328 of file UT_OStream.h.