ACE_INet 8.0.5
Loading...
Searching...
No Matches
ACE::HTTP::StreamBuffer Class Reference

#include <HTTP_IOStream.h>

Inheritance diagram for ACE::HTTP::StreamBuffer:
Collaboration diagram for ACE::HTTP::StreamBuffer:

Public Types

typedef StreamPolicyBase< StreamBufferpolicy_type
Public Types inherited from ACE::IOS::BasicBufferedStreamBuffer< char, std::char_traits< char > >
typedef std::basic_streambuf< char, std::char_traits< char > > base_type
typedef std::basic_ios< char, std::char_traits< char > > ios_type
typedef char char_type
typedef std::char_traits< char > char_traits
typedef base_type::int_type int_type
typedef base_type::pos_type pos_type
typedef base_type::off_type off_type
typedef ios_type::seekdir seekdir
typedef ios_type::openmode openmode
typedef StreamInterceptorBase< char_type, char_traitsinterceptor_type

Public Member Functions

 StreamBuffer (std::iostream &stream, policy_type *policy=0)
virtual ~StreamBuffer ()
virtual int sync ()
Public Member Functions inherited from ACE::IOS::BasicBufferedStreamBuffer< char, std::char_traits< char > >
 BasicBufferedStreamBuffer (std::streamsize bufsz, typename std::basic_ios< char, std::char_traits< char > >::openmode mode)
virtual ~BasicBufferedStreamBuffer ()
virtual int_type overflow (int_type c)
virtual int_type underflow ()
void set_interceptor (interceptor_type &interceptor)

Protected Types

enum  { BUFFER_SIZE = 4096 }

Protected Member Functions

virtual int read_from_stream (char *buffer, std::streamsize length)
virtual int write_to_stream (const char *buffer, std::streamsize length)
virtual int read_from_stream_i (char *buffer, std::streamsize length)
virtual int write_to_stream_i (const char *buffer, std::streamsize length)
Protected Member Functions inherited from ACE::IOS::BasicBufferedStreamBuffer< char, std::char_traits< char > >
void set_mode (typename std::basic_ios< char, std::char_traits< char > >::openmode mode)
std::basic_ios< char, std::char_traits< char > >::openmode get_mode () const
void reset_buffers ()

Private Attributes

std::iostream & stream_
policy_typepolicy_

Friends

class StreamPolicyBase< StreamBuffer >

Member Typedef Documentation

◆ policy_type

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
BUFFER_SIZE 

Constructor & Destructor Documentation

◆ StreamBuffer()

ACE::HTTP::StreamBuffer::StreamBuffer ( std::iostream & stream,
StreamBuffer::policy_type * policy = 0 )

◆ ~StreamBuffer()

ACE::HTTP::StreamBuffer::~StreamBuffer ( )
virtual

Member Function Documentation

◆ read_from_stream()

int ACE::HTTP::StreamBuffer::read_from_stream ( char * buffer,
std::streamsize length )
protectedvirtual

◆ read_from_stream_i()

int ACE::HTTP::StreamBuffer::read_from_stream_i ( char * buffer,
std::streamsize length )
protectedvirtual

◆ sync()

int ACE::HTTP::StreamBuffer::sync ( )
virtual

◆ write_to_stream()

int ACE::HTTP::StreamBuffer::write_to_stream ( const char * buffer,
std::streamsize length )
protectedvirtual

◆ write_to_stream_i()

int ACE::HTTP::StreamBuffer::write_to_stream_i ( const char * buffer,
std::streamsize length )
protectedvirtual

◆ StreamPolicyBase< StreamBuffer >

friend class StreamPolicyBase< StreamBuffer >
friend

Member Data Documentation

◆ policy_

policy_type* ACE::HTTP::StreamBuffer::policy_
private

◆ stream_

std::iostream& ACE::HTTP::StreamBuffer::stream_
private

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