HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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); \
} \
Definition: core.h:1131

Definition at line 386 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; \
} \
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2540
long long int64
Definition: SYS_Types.h:116
if(num_boxed_items<=0)
Definition: UT_RTreeImpl.h:697
* for(int i=0;i< n_subtasks;++i)*tasks.push(pool-> push(myfunc))
Definition: UT_RTreeImpl.h:685

Definition at line 505 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; \
} \
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2540
long long int64
Definition: SYS_Types.h:116

Definition at line 481 of file UT_OStream.h.

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

Definition at line 440 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:824

Definition at line 401 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); \
} \
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2540
long long int64
Definition: SYS_Types.h:116

Definition at line 450 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; \
} \
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2540
long long int64
Definition: SYS_Types.h:116

Definition at line 543 of file UT_OStream.h.

Function Documentation

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

Definition at line 330 of file UT_OStream.h.