#include <HTTP_StreamPolicyBase.h>
Public Types | |
typedef STREAM_BUFFER::char_type | char_type |
Public Member Functions | |
StreamPolicyBase () | |
virtual | ~StreamPolicyBase () |
virtual int | read_from_stream (char_type *buffer, std::streamsize length)=0 |
virtual int | write_to_stream (const char_type *buffer, std::streamsize length)=0 |
void | set_stream_buffer (STREAM_BUFFER *streambuf) |
Protected Member Functions | |
int | read_from_stream_i (char_type *buffer, std::streamsize length) |
int | write_to_stream_i (const char_type *buffer, std::streamsize length) |
Private Attributes | |
STREAM_BUFFER * | streambuf_ |
Definition at line 30 of file HTTP_StreamPolicyBase.h.
typedef STREAM_BUFFER::char_type ACE::HTTP::StreamPolicyBase< STREAM_BUFFER >::char_type |
Reimplemented in ACE::HTTP::FixedLengthStreamPolicyBase< STREAM_BUFFER >, and ACE::HTTP::ChunkedTransferStreamPolicyBase< STREAM_BUFFER >.
Definition at line 36 of file HTTP_StreamPolicyBase.h.
ACE::HTTP::StreamPolicyBase< STREAM_BUFFER >::StreamPolicyBase | ( | ) |
Definition at line 15 of file HTTP_StreamPolicyBase.cpp.
: streambuf_ (0) {}
ACE::HTTP::StreamPolicyBase< STREAM_BUFFER >::~StreamPolicyBase | ( | ) | [virtual] |
Definition at line 20 of file HTTP_StreamPolicyBase.cpp.
{}
virtual int ACE::HTTP::StreamPolicyBase< STREAM_BUFFER >::read_from_stream | ( | char_type * | buffer, | |
std::streamsize | length | |||
) | [pure virtual] |
int ACE::HTTP::StreamPolicyBase< STREAM_BUFFER >::read_from_stream_i | ( | char_type * | buffer, | |
std::streamsize | length | |||
) | [protected] |
Definition at line 24 of file HTTP_StreamPolicyBase.cpp.
{ return this->streambuf_->read_from_stream_i (buf, length); }
void ACE::HTTP::StreamPolicyBase< STREAM_BUFFER >::set_stream_buffer | ( | STREAM_BUFFER * | streambuf | ) |
Definition at line 40 of file HTTP_StreamPolicyBase.cpp.
{ this->streambuf_ = streambuf; }
virtual int ACE::HTTP::StreamPolicyBase< STREAM_BUFFER >::write_to_stream | ( | const char_type * | buffer, | |
std::streamsize | length | |||
) | [pure virtual] |
int ACE::HTTP::StreamPolicyBase< STREAM_BUFFER >::write_to_stream_i | ( | const char_type * | buffer, | |
std::streamsize | length | |||
) | [protected] |
Definition at line 32 of file HTTP_StreamPolicyBase.cpp.
{ return this->streambuf_->write_to_stream_i (buf, length); }
STREAM_BUFFER* ACE::HTTP::StreamPolicyBase< STREAM_BUFFER >::streambuf_ [private] |
Definition at line 50 of file HTTP_StreamPolicyBase.h.