SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
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::RWReply ( void )

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

◆ ~RWReply()

virtual RWReply::~RWReply ( void )
virtual

Virtual destructor.

Member Function Documentation

◆ clearAndDestroy()

virtual void RWReply::clearAndDestroy ( void )
virtual

Resets the object to the same state as after the default construction.

Reimplemented in RWNumReply.

◆ isComplete()

virtual bool RWReply::isComplete ( void ) const
virtual

Returns true if self represents a complete protocol reply.

◆ isValid()

virtual bool RWReply::isValid ( void ) const
virtual

Returns true if self is a valid reply.

◆ readFromPortal()

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 RWHttpReply, RWNumReply, and RWPop3Reply.

Friends And Related Symbol Documentation

◆ operator<<

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

◆ complete_

bool RWReply::complete_
protected

Contains true if self is a complete protocol reply.

◆ valid_

bool RWReply::valid_
protected

Contains true if self is a valid protocol reply.

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