| 
    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) | |
| ~UT_OStream ()=default | |
| void | setStreamRef (UT_OStream &os) | 
| UT_OStream (std::ostream &os, UT_IOS_TYPE bin) | |
| UT_OStream (std::ostream &os, bool binary) | |
| std::ostream & | getOStream () | 
| void | setOStream (std::ostream &os) | 
| bool | isAscii () const | 
| bool | isBinary () const | 
| 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) | 
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.
      
  | 
  default | 
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 531 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. | 
| bool UT_OStream::awrite | ( | const UT_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::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 499 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. | 
| bool UT_OStream::bwrite | ( | const UT_String & | 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 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 355 of file UT_OStream.h.
      
  | 
  inline | 
Manipulation of the underlying std::ostream reference
Definition at line 120 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 131 of file UT_OStream.h.
      
  | 
  inline | 
Determine if the stream is currently in ASCII or binary mode.
Definition at line 132 of file UT_OStream.h.
      
  | 
  inline | 
Compatibility methods for std::ostream replacement.
Definition at line 428 of file UT_OStream.h.
      
  | 
  inline | 
Compatibility methods for std::ostream replacement.
Definition at line 434 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 341 of file UT_OStream.h.
      
  | 
  inline | 
Compatibility methods for std::ostream replacement.
Definition at line 362 of file UT_OStream.h.
      
  | 
  inline | 
Manipulation of the underlying std::ostream reference
Definition at line 121 of file UT_OStream.h.
      
  | 
  inline | 
Compatibility methods for std::ostream replacement.
Definition at line 95 of file UT_OStream.h.
      
  | 
  inline | 
Set the stream reference to same as the given UT_OStream object.
Definition at line 126 of file UT_OStream.h.
      
  | 
  inline | 
Compatibility methods for std::ostream replacement.
Definition at line 380 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 348 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. | 
      
  | 
  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 466 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 471 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 476 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 248 of file UT_OStream.h.