rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWReply Class Reference
[Internet Basics]

Abstract base class for all protocol replies. More...

#include <rw/internet/RWReply.h>

Inheritance diagram for RWReply:
RWNumReply RWPop3Reply RWFtpReply RWHttpReply RWSmtpReply RWPop3ConnReply RWPop3DataReply RWPop3StatReply RWFtpDataReply RWFtpPwdReply RWSmtpDataReply

List of all members.

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)

Detailed Description

RWReply is the abstract base class for all protocol replies. It provides some common methods that all replies share.


Constructor & Destructor Documentation

RWReply::RWReply ( void   ) 

Constructs a default RWReply as part of a specific and concrete reply object.

virtual RWReply::~RWReply ( void   )  [virtual]

Virtual destructor.


Member Function Documentation

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.


Friends And Related Function Documentation

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.


Member Data Documentation

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.

 All Classes Functions Variables Typedefs Enumerations Enumerator Friends

© 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.