BitShares-Core  5.0.0
BitShares blockchain implementation and command-line interface software
Public Member Functions | List of all members
fc::ostream Class Referenceabstract

#include <iostream.hpp>

Inheritance diagram for fc::ostream:
fc::asio::ostream< AsyncWriteStream > fc::buffered_ostream fc::cerr_t fc::cout_t fc::iostream fc::ofstream graphene::utilities::padding_ostream< BlockSize, PaddingChar > fc::stringstream fc::tcp_socket graphene::net::stcp_socket

Public Member Functions

virtual ~ostream ()
 
virtual size_t writesome (const char *buf, size_t len)=0
 
virtual size_t writesome (const std::shared_ptr< const char > &buf, size_t len, size_t offset)=0
 
virtual void close ()=0
 
virtual void flush ()=0
 
void put (char c)
 
ostreamwrite (const char *buf, size_t len)
 
ostreamwrite (const std::shared_ptr< const char > &buf, size_t len, size_t offset=0)
 

Detailed Description

Provides a fc::thread friendly cooperatively multi-tasked stream that will block 'cooperatively' instead of hard blocking.

Definition at line 41 of file iostream.hpp.

Constructor & Destructor Documentation

virtual fc::ostream::~ostream ( )
inlinevirtual

Definition at line 44 of file iostream.hpp.

Member Function Documentation

virtual void fc::ostream::close ( )
pure virtual
virtual void fc::ostream::flush ( )
pure virtual
void fc::ostream::put ( char  c)
inline

Definition at line 50 of file iostream.hpp.

ostream & fc::ostream::write ( const char *  buf,
size_t  len 
)

implemented in terms of writesome, guarantees len bytes are sent but not flushed.

Definition at line 290 of file iostream.cpp.

ostream & fc::ostream::write ( const std::shared_ptr< const char > &  buf,
size_t  len,
size_t  offset = 0 
)

Definition at line 298 of file iostream.cpp.

virtual size_t fc::ostream::writesome ( const char *  buf,
size_t  len 
)
pure virtual
virtual size_t fc::ostream::writesome ( const std::shared_ptr< const char > &  buf,
size_t  len,
size_t  offset 
)
pure virtual

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