SourcePro® API Reference Guide

 
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
RWReply Class Referenceabstract

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

#include <rw/internet/RWReply.h>

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

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 complete_
 
bool valid_
 

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)
protectedpure virtual

Reads data from portal to construct self. It must be overridden by derived classes.

Implemented in RWNumReply, RWHttpReply, 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.

Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.