Bond 0.9
C++ Bond Runtime Library API Documentation
Loading...
Searching...
No Matches
Bond::StdOutOutputStream Class Reference

A concrete implementation of StdioOutputStream bound to stdout. More...

#include <bond/io/stdiooutputstream.h>

Inheritance diagram for Bond::StdOutOutputStream:
Bond::StdioOutputStream Bond::OutputStream Bond::Stream

Public Member Functions

 StdOutOutputStream ()
 Constructs a StdOutOutputStream object.
virtual ~StdOutOutputStream ()
 Destroys a StdOutOutputStream object. stdout is not closed.
Public Member Functions inherited from Bond::StdioOutputStream
 StdioOutputStream (FILE *file)
 Constructs a StdioOutputStream object.
 StdioOutputStream (const char *fileName)
 Constructs a StdioOutputStream object that opens and owns the given file.
 StdioOutputStream (StdioFileHandle &&handle)
 Constructs a StdioOutputStream object.
 StdioOutputStream (StdioOutputStream &&other)
 Move-constructs a StdioOutputStream object.
virtual ~StdioOutputStream ()
 Destroys a StdioOutputStream object, closing the file if it is owned.
 StdioOutputStream (const StdioOutputStream &other)=delete
StdioOutputStream & operator= (const StdioOutputStream &other)=delete
StdioOutputStream & operator= (StdioOutputStream &&other)
 Closes the file if it is owned and takes over the file of another StdioOutputStream.
bool IsBound () const
 Tests whether this stream is currently bound to a FILE object.
virtual void Close () override
 Closes the FILE object, whether or not it is owned, and unbinds the stream.
virtual void Flush () override
 Flushes any buffered output.
virtual void VPrint (const char *format, va_list argList) override
 Writes formatted output to the stream using a variable argument list.
virtual void Write (uint8_t c) override
 Writes a single byte to the stream.
virtual void Write (const uint8_t *bytes, size_t numBytes) override
 Writes a sequence of bytes to the stream.
virtual pos_t GetPosition () const override
 Returns the current position within the stream.
virtual pos_t GetEndPosition () const override
 Returns the end position of the stream.
virtual void SetPosition (off_t offset) override
 Sets the current position within the stream.
virtual void SetPositionFromEnd (off_t offset) override
 Sets the current position relative to the end of the stream.
virtual void AddOffset (off_t offset) override
 Advances the current position by the given offset.
virtual bool IsEof () const override
 Tests whether the current position is at or beyond the end of the stream.
virtual bool HasError () const override
 Tests whether the stream is currently in an error state.
virtual void ClearError () override
 Clears the current error state of the stream.
Public Member Functions inherited from Bond::OutputStream
virtual ~OutputStream ()
 Destroys an OutputStream object.
virtual void Print (const char *format,...)
 Writes formatted output to the stream.
Public Member Functions inherited from Bond::Stream
virtual ~Stream ()
 Destroys a Stream object.

Additional Inherited Members

Public Types inherited from Bond::Stream
typedef long pos_t
 A type used to represent absolute positions within a stream.
typedef long off_t
 A type used to represent relative offsets within a stream.
Static Public Attributes inherited from Bond::Stream
static const int Eof = -1
 A special value returned by single-byte input functions to indicate end of stream.

Detailed Description

A concrete implementation of StdioOutputStream bound to stdout.

See also
StdioOutputStream

Constructor & Destructor Documentation

◆ StdOutOutputStream()

Bond::StdOutOutputStream::StdOutOutputStream ( )
inline

Constructs a StdOutOutputStream object.

◆ ~StdOutOutputStream()

virtual Bond::StdOutOutputStream::~StdOutOutputStream ( )
inlinevirtual

Destroys a StdOutOutputStream object. stdout is not closed.


The documentation for this class was generated from the following file:
  • include/bond/io/stdiooutputstream.h