| 
|   | ByteSink () | 
|   | Default constructor.  
  | 
|   | 
|   | ByteSink (const std::shared_ptr< TypeIO > &typeIO) | 
|   | Construct from given TypeIO object.  
  | 
|   | 
|   | ByteSink (const ByteSink &sink) | 
|   | The copy constructor uses reference semantics.  
  | 
|   | 
| ByteSink &  | operator= (const ByteSink &sink) | 
|   | The assignment operator uses reference semantics.  
  | 
|   | 
|   | ~ByteSink () | 
|   | destructor  
  | 
|   | 
| ByteSink &  | operator<< (Bool value) | 
|   | These functions write one value of the given type.  
  | 
|   | 
| ByteSink &  | operator<< (Char value) | 
|   | 
| ByteSink &  | operator<< (uChar value) | 
|   | 
| ByteSink &  | operator<< (Short value) | 
|   | 
| ByteSink &  | operator<< (uShort value) | 
|   | 
| ByteSink &  | operator<< (Int value) | 
|   | 
| ByteSink &  | operator<< (uInt value) | 
|   | 
| ByteSink &  | operator<< (Int64 value) | 
|   | 
| ByteSink &  | operator<< (uInt64 value) | 
|   | 
| ByteSink &  | operator<< (Float value) | 
|   | 
| ByteSink &  | operator<< (Double value) | 
|   | 
| ByteSink &  | operator<< (const Complex &value) | 
|   | 
| ByteSink &  | operator<< (const DComplex &value) | 
|   | 
| ByteSink &  | operator<< (const String &value) | 
|   | 
| ByteSink &  | operator<< (const Char *value) | 
|   | 
| void  | write (size_t nvalues, const Bool *value) | 
|   | These functions write multiple values of the given type.  
  | 
|   | 
| void  | write (size_t nvalues, const Char *value) | 
|   | 
| void  | write (size_t nvalues, const uChar *value) | 
|   | 
| void  | write (size_t nvalues, const Short *value) | 
|   | 
| void  | write (size_t nvalues, const uShort *value) | 
|   | 
| void  | write (size_t nvalues, const Int *value) | 
|   | 
| void  | write (size_t nvalues, const uInt *value) | 
|   | 
| void  | write (size_t nvalues, const Int64 *value) | 
|   | 
| void  | write (size_t nvalues, const uInt64 *value) | 
|   | 
| void  | write (size_t nvalues, const Float *value) | 
|   | 
| void  | write (size_t nvalues, const Double *value) | 
|   | 
| void  | write (size_t nvalues, const Complex *value) | 
|   | 
| void  | write (size_t nvalues, const DComplex *value) | 
|   | 
| void  | write (size_t nvalues, const String *value) | 
|   | 
| const std::shared_ptr< TypeIO > &  | typeIO () const | 
|   | This functions returns the shared pointer to itsTypeIO.  
  | 
|   | 
| Int64  | seek (Int64 offset, ByteIO::SeekOption=ByteIO::Begin) | 
|   | This function sets the position on the given offset.  
  | 
|   | 
| Int64  | seek (Int offset, ByteIO::SeekOption=ByteIO::Begin) | 
|   | 
| Bool  | isReadable () const | 
|   | Is the SinkSource readable?  
  | 
|   | 
| Bool  | isWritable () const | 
|   | Is the SinkSource writable?  
  | 
|   | 
| Bool  | isSeekable () const | 
|   | Is the SinkSource seekable?  
  | 
|   | 
| Bool  | isNull () const | 
|   | Is the BaseSinkSource unusable?  
  
  | 
|   | 
Class for write-only access to data in a given format. 
Intended use:
Public interface
Review Status
- Reviewed By:
 
- Friso Olnon
 
- Date Reviewed:
 
- 1996/11/06
 
- Test programs:
 
- tByteSink
 
Prerequisite
Etymology
A sink is the place where bytes are written to.
Synopsis
ByteSink provides write-only access to a typed byte stream in the Casacore IO framework. The base class BaseSinkSource contains common functions like seek. 
The object is constructed using a typed byte stream. This stream is an instance of a class derived from class TypeIO. This makes it possible to store the data in any format (e.g. CanonicalIO or RawIO). 
 In its turn TypeIO uses an instance of a class derived from class ByteIO. This makes it possible to use any output stream (e.g. file, memory). 
Note that in general ByteSink will only be used for write-only streams like sockets or pipes. Class ByteSinkSource is the obvious choice for read/write streams.
Example
 
Motivation
This class makes it possible to deny read-access to an IO stream. 
Definition at line 93 of file ByteSink.h.