Scopira 20080306

scopira::tool::oflow_i Class Reference

#include <flow.h>

Inheritance diagram for scopira::tool::oflow_i:
scopira::tool::flow_i scopira::tool::object scopira::tool::bufferflow scopira::tool::bufferoflow scopira::tool::cacheoflow scopira::tool::countoflow scopira::tool::distoflow scopira::tool::fileflow scopira::tool::hashoflow scopira::tool::hexoflow scopira::tool::netflow scopira::tool::nullflow scopira::tool::otflow_i scopira::tool::stringflow scopira::tool::stringoflow scopira::tool::teeoflow scopira::tool::unixflow

List of all members.

Public Member Functions

virtual size_t write (const byte_t *_buf, size_t _size)=0
virtual size_t write_byte (byte_t b)
template<class TT >
size_t write_array (const TT *_buf, size_t _numelem)
size_t write_void (const void *_buf, size_t _size)

Detailed Description

A raw output stream of bytes

Author:
Aleksander Demko

Member Function Documentation

template<class TT >
size_t scopira::tool::oflow_i::write_array ( const TT *  _buf,
size_t  _numelem 
) [inline]

Nice wrapper around the raw write() method. Lets you write raw arrays of a particular type. POD types only. Returns the number of elelments actually written.

Author:
Aleksander Demko

References write().

Referenced by scopira::basekit::const_nslice< T, DIM >::save(), scopira::basekit::nslice< T, DIM >::save(), scopira::basekit::narray< T, DIM >::save(), and scopira::basekit::directio_slice< T, DIM >::save_slice().

virtual size_t scopira::tool::oflow_i::write_byte ( byte_t  b) [inline, virtual]

Writes one byte

Parameters:
bthe byte to write
Returns:
1 if the byte was written to the flow, 0 if not
Author:
Aleksander Demko

Reimplemented in scopira::tool::cacheoflow, and scopira::tool::hexoflow.

References write().

size_t scopira::tool::oflow_i::write_void ( const void *  _buf,
size_t  _size 
) [inline]

Writes a block of bytes, using a void*

Parameters:
_bufthe bytes
_sizethe size of the above buffer
Returns:
the number of bytes actually written
Author:
Aleksander Demko

References write().


The documentation for this class was generated from the following file: