SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Abstract base class for all protocol replies. More...
#include <rw/internet/RWReply.h>
Public Member Functions | |
RWReply (void) | |
virtual | ~RWReply (void) |
virtual void | clearAndDestroy (void) |
virtual bool | isComplete (void) const |
virtual bool | isValid (void) const |
Protected Member Functions | |
virtual void | readFromPortal (const RWPortal &portal)=0 |
Protected Attributes | |
bool | valid_ |
bool | complete_ |
Friends | |
std::ostream & | operator<< (std::ostream &str, const RWReply &r) |
RWReply is the abstract base class for all protocol replies. It provides some common methods that all replies share.
RWReply::RWReply | ( | void | ) |
Constructs a default RWReply as part of a specific and concrete reply object.
virtual RWReply::~RWReply | ( | void | ) | [virtual] |
Virtual destructor.
virtual void RWReply::clearAndDestroy | ( | void | ) | [virtual] |
Resets the object to the same state as after the default construction.
Reimplemented in RWNumReply.
virtual bool RWReply::isComplete | ( | void | ) | const [virtual] |
Returns true
if self
represents a complete protocol reply.
virtual bool RWReply::isValid | ( | void | ) | const [virtual] |
Returns true
if self
is a valid reply.
virtual void RWReply::readFromPortal | ( | const RWPortal & | portal | ) | [protected, pure virtual] |
Reads data from portal to construct self
. It must be overridden by derived classes.
Implemented in RWHttpReply, RWNumReply, and RWPop3Reply.
std::ostream& operator<< | ( | std::ostream & | str, | |
const RWReply & | r | |||
) | [friend] |
Outputs RWReply to an std::ostream
as part of a specific and concrete reply object.
bool RWReply::complete_ [protected] |
Contains true
if self
is a complete protocol reply.
bool RWReply::valid_ [protected] |
Contains true
if self
is a valid protocol reply.
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.