HDK
|
#include <UT_OStream.h>
Public Types | |
enum | Uninitialized { NO_INIT } |
Tag for suppressing uninitialization. More... | |
typedef char | char_type |
typedef int64 | pos_type |
typedef UT_IOS_SEEK | seek_type |
Public Member Functions | |
UT_OStream (Uninitialized, UT_IOS_TYPE bin) | |
void | setStreamRef (UT_OStream &os) |
UT_OStream (std::ostream &os, UT_IOS_TYPE bin) | |
UT_OStream (std::ostream &os, bool binary) | |
std::ostream & | getOStream () |
Manipulation of the underlying std::ostream reference. More... | |
void | setOStream (std::ostream &os) |
Manipulation of the underlying std::ostream reference. More... | |
bool | isAscii () const |
Determine if the stream is currently in ASCII or binary mode. More... | |
bool | isBinary () const |
Determine if the stream is currently in ASCII or binary mode. More... | |
int64 | write (const bool *buf, int64 cnt=1, bool nl=false) |
int64 | write (const int16 *buf, int64 cnt=1, bool nl=false) |
int64 | write (const uint16 *buf, int64 cnt=1, bool nl=false) |
int64 | write (const int32 *buf, int64 cnt=1, bool nl=false) |
int64 | write (const uint32 *buf, int64 cnt=1, bool nl=false) |
int64 | write (const int64 *buf, int64 cnt=1, bool nl=false) |
int64 | write (const uint64 *buf, int64 cnt=1, bool nl=false) |
template<typename DEST_TYPE > | |
int64 | write (const fpreal32 *buf, int64 cnt=1, bool nl=false) |
template<typename DEST_TYPE > | |
int64 | write (const fpreal64 *buf, int64 cnt=1, bool nl=false) |
bool | write (const UT_String &str, bool nl=false) |
bool | write (const UT_StringRef &str, bool nl=false) |
bool | write (const std::string &str, bool nl=false) |
int64 | bwrite (const bool *buf, int64 cnt=1) |
int64 | bwrite (const char *buf, int64 cnt=1) |
int64 | bwrite (const unsigned char *buf, int64 cnt=1) |
int64 | bwrite (const signed char *buf, int64 cnt=1) |
int64 | bwrite (const int16 *buf, int64 cnt=1) |
int64 | bwrite (const uint16 *buf, int64 cnt=1) |
int64 | bwrite (const int32 *buf, int64 cnt=1) |
int64 | bwrite (const uint32 *buf, int64 cnt=1) |
int64 | bwrite (const int64 *buf, int64 cnt=1) |
int64 | bwrite (const uint64 *buf, int64 cnt=1) |
template<typename DEST_TYPE > | |
int64 | bwrite (const fpreal32 *buf, int64 cnt=1) |
template<typename DEST_TYPE > | |
int64 | bwrite (const fpreal64 *buf, int64 cnt=1) |
bool | bwrite (const UT_String &str) |
bool | bwrite (const UT_StringRef &str) |
bool | bwrite (const std::string &str) |
int64 | awrite (const bool *buf, int64 cnt=1, bool nl=false) |
int64 | awrite (const char *buf, int64 cnt=1, bool nl=false) |
int64 | awrite (const unsigned char *buf, int64 cnt=1, bool nl=false) |
int64 | awrite (const signed char *buf, int64 cnt=1, bool nl=false) |
int64 | awrite (const int16 *buf, int64 cnt=1, bool nl=false) |
int64 | awrite (const uint16 *buf, int64 cnt=1, bool nl=false) |
int64 | awrite (const int32 *buf, int64 cnt=1, bool nl=false) |
int64 | awrite (const uint32 *buf, int64 cnt=1, bool nl=false) |
int64 | awrite (const int64 *buf, int64 cnt=1, bool nl=false) |
int64 | awrite (const uint64 *buf, int64 cnt=1, bool nl=false) |
int64 | awrite (const fpreal32 *buf, int64 cnt=1, bool nl=false) |
int64 | awrite (const fpreal64 *buf, int64 cnt=1, bool nl=false) |
bool | awrite (const UT_String &str, bool nl=false) |
bool | awrite (const UT_StringRef &str, bool nl=false) |
bool | awrite (const std::string &str, bool nl=false) |
Friends | |
class UT_API | UT_OStreamAutoBinary |
UT_OStream & | operator<< (UT_OStream &os, int16 value) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | operator<< (UT_OStream &os, uint16 value) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | operator<< (UT_OStream &os, int32 value) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | operator<< (UT_OStream &os, uint32 value) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | operator<< (UT_OStream &os, int64 value) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | operator<< (UT_OStream &os, uint64 value) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | operator<< (UT_OStream &os, fpreal32 value) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | operator<< (UT_OStream &os, fpreal64 value) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | operator<< (UT_OStream &os, char value) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | operator<< (UT_OStream &os, unsigned char value) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | operator<< (UT_OStream &os, const char *value) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | operator<< (UT_OStream &os, long value) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | operator<< (UT_OStream &os, unsigned long value) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | put (char_type ch) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | write (const char_type *str, int64 count) |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | flush () |
Compatibility methods for std::ostream replacement. More... | |
UT_OStream & | seekp (pos_type offset, seek_type dir=UT_IOS_SEEK_BEG) |
Compatibility methods for std::ostream replacement. More... | |
pos_type | tellp () |
Compatibility methods for std::ostream replacement. More... | |
int | precision () const |
Compatibility methods for std::ostream replacement. More... | |
int | precision (int dig) |
Compatibility methods for std::ostream replacement. More... | |
int | width () const |
Compatibility methods for std::ostream replacement. More... | |
int | width (int dig) |
Compatibility methods for std::ostream replacement. More... | |
SYS_SAFE_BOOL | operator bool () const |
Compatibility methods for std::ostream replacement. More... | |
bool | operator! () const |
Compatibility methods for std::ostream replacement. More... | |
bool | bad () const |
Compatibility methods for std::ostream replacement. More... | |
bool | eof () const |
Compatibility methods for std::ostream replacement. More... | |
bool | fail () const |
Compatibility methods for std::ostream replacement. More... | |
bool | good () const |
Compatibility methods for std::ostream replacement. More... | |
void | setstate (std::ios::iostate state) |
Compatibility methods for std::ostream replacement. More... | |
Definition at line 35 of file UT_OStream.h.
typedef char UT_OStream::char_type |
Definition at line 38 of file UT_OStream.h.
typedef int64 UT_OStream::pos_type |
Definition at line 39 of file UT_OStream.h.
typedef UT_IOS_SEEK UT_OStream::seek_type |
Definition at line 40 of file UT_OStream.h.
|
inline |
Construct UT_OStream with reference to the given std::ostream and streaming mode.
Definition at line 49 of file UT_OStream.h.
|
inline |
Construct UT_OStream with reference to the given std::ostream and streaming mode.
Definition at line 54 of file UT_OStream.h.
|
inline |
Construct uninitialized UT_OStream with a given streaming mode. You must call setOStream() before this object can be used.
Definition at line 62 of file UT_OStream.h.
Platform consistent ASCII writes of data.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. |
Definition at line 527 of file UT_OStream.h.
Platform consistent ASCII writes of data.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. |
Platform consistent ASCII writes of data.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. |
Platform consistent ASCII writes of data.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. |
Platform consistent ASCII writes of data.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. |
Platform consistent ASCII writes of data.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. |
Platform consistent ASCII writes of data.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. |
Platform consistent ASCII writes of data.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. |
Platform consistent ASCII writes of data.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. |
Platform consistent ASCII writes of data.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. |
Platform consistent ASCII writes of data.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. |
Platform consistent ASCII writes of data.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. |
Platform consistent ASCII writes of strings.
str | The string to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
true
if the string was successfully written out. bool UT_OStream::awrite | ( | const UT_StringRef & | str, |
bool | nl = false |
||
) |
Platform consistent ASCII writes of strings.
str | The string to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
true
if the string was successfully written out. bool UT_OStream::awrite | ( | const std::string & | str, |
bool | nl = false |
||
) |
Platform consistent ASCII writes of strings.
str | The string to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
true
if the string was successfully written out. bool UT_OStream::bad | ( | ) | const |
Compatibility methods for std::ostream replacement.
Platform consistent binary writes of data. The data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
Definition at line 495 of file UT_OStream.h.
Platform consistent binary writes of data. The data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
Platform consistent binary writes of data. The data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
Platform consistent binary writes of data. The data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
Platform consistent binary writes of data. The data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
Platform consistent binary writes of data. The data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
Platform consistent binary writes of data. The data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
Platform consistent binary writes of data. The data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
Platform consistent binary writes of data. The data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
Platform consistent binary writes of data. The data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
Platform consistent binary writes of data. The data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
Platform consistent binary writes of data. The data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
Platform consistent binary writes of strings.
str | The string to write. |
true
if the string was successfully written out. bool UT_OStream::bwrite | ( | const UT_StringRef & | str | ) |
Platform consistent binary writes of strings.
str | The string to write. |
true
if the string was successfully written out. bool UT_OStream::bwrite | ( | const std::string & | str | ) |
Platform consistent binary writes of strings.
str | The string to write. |
true
if the string was successfully written out. bool UT_OStream::eof | ( | ) | const |
Compatibility methods for std::ostream replacement.
bool UT_OStream::fail | ( | ) | const |
Compatibility methods for std::ostream replacement.
|
inline |
Compatibility methods for std::ostream replacement.
Definition at line 351 of file UT_OStream.h.
|
inline |
Manipulation of the underlying std::ostream reference.
Definition at line 116 of file UT_OStream.h.
bool UT_OStream::good | ( | ) | const |
Compatibility methods for std::ostream replacement.
|
inline |
Determine if the stream is currently in ASCII or binary mode.
Definition at line 127 of file UT_OStream.h.
|
inline |
Determine if the stream is currently in ASCII or binary mode.
Definition at line 128 of file UT_OStream.h.
|
inline |
Compatibility methods for std::ostream replacement.
Definition at line 424 of file UT_OStream.h.
|
inline |
Compatibility methods for std::ostream replacement.
Definition at line 430 of file UT_OStream.h.
int UT_OStream::precision | ( | ) | const |
Compatibility methods for std::ostream replacement.
|
inline |
Compatibility methods for std::ostream replacement.
Definition at line 337 of file UT_OStream.h.
|
inline |
Compatibility methods for std::ostream replacement.
Definition at line 358 of file UT_OStream.h.
|
inline |
Manipulation of the underlying std::ostream reference.
Definition at line 117 of file UT_OStream.h.
|
inline |
Compatibility methods for std::ostream replacement.
Definition at line 91 of file UT_OStream.h.
|
inline |
Set the stream reference to same as the given UT_OStream object.
Definition at line 122 of file UT_OStream.h.
|
inline |
Compatibility methods for std::ostream replacement.
Definition at line 376 of file UT_OStream.h.
int UT_OStream::width | ( | ) | const |
Compatibility methods for std::ostream replacement.
|
inline |
Compatibility methods for std::ostream replacement.
Definition at line 344 of file UT_OStream.h.
Write array data to the stream. It will call bwrite() or awrite() depending on the current streaming mode. For binary output, the data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
Write array data to the stream. It will call bwrite() or awrite() depending on the current streaming mode. For binary output, the data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
Write array data to the stream. It will call bwrite() or awrite() depending on the current streaming mode. For binary output, the data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
Write array data to the stream. It will call bwrite() or awrite() depending on the current streaming mode. For binary output, the data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
Write array data to the stream. It will call bwrite() or awrite() depending on the current streaming mode. For binary output, the data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
Write array data to the stream. It will call bwrite() or awrite() depending on the current streaming mode. For binary output, the data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
Write array data to the stream. It will call bwrite() or awrite() depending on the current streaming mode. For binary output, the data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
int64 UT_OStream::write | ( | const fpreal32 * | buf, |
int64 | cnt = 1 , |
||
bool | nl = false |
||
) |
Write array data to the stream. It will call bwrite() or awrite() depending on the current streaming mode. For binary output, the data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
int64 UT_OStream::write | ( | const fpreal64 * | buf, |
int64 | cnt = 1 , |
||
bool | nl = false |
||
) |
Write array data to the stream. It will call bwrite() or awrite() depending on the current streaming mode. For binary output, the data will be byte-swapped according to the Houdini standard.
buf | The array to write. |
cnt | The number of array elements to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
Write string data to the stream. It will call bwrite() or awrite() depending on the current streaming mode.
str | The string to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
true
if the string was successfully written out. Definition at line 462 of file UT_OStream.h.
|
inline |
Write string data to the stream. It will call bwrite() or awrite() depending on the current streaming mode.
str | The string to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
true
if the string was successfully written out. Definition at line 467 of file UT_OStream.h.
|
inline |
Write string data to the stream. It will call bwrite() or awrite() depending on the current streaming mode.
str | The string to write. |
nl | If true, a newline is appended, else a space is appended. This parameter is ignored for binary writes. |
true
if the string was successfully written out. Definition at line 472 of file UT_OStream.h.
|
friend |
Compatibility methods for std::ostream replacement.
|
friend |
Compatibility methods for std::ostream replacement.
|
friend |
Compatibility methods for std::ostream replacement.
|
friend |
Compatibility methods for std::ostream replacement.
|
friend |
Compatibility methods for std::ostream replacement.
|
friend |
Compatibility methods for std::ostream replacement.
|
friend |
Compatibility methods for std::ostream replacement.
|
friend |
Compatibility methods for std::ostream replacement.
|
friend |
Compatibility methods for std::ostream replacement.
|
friend |
Compatibility methods for std::ostream replacement.
|
friend |
Compatibility methods for std::ostream replacement.
|
friend |
Compatibility methods for std::ostream replacement.
|
friend |
Compatibility methods for std::ostream replacement.
|
friend |
Definition at line 244 of file UT_OStream.h.