SNAP Library 4.0, Developer Reference  2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
THttpChRet Class Reference
Collaboration diagram for THttpChRet:

Public Member Functions

 THttpChRet (const PSIn &_SIn, const THttpExCd &_HttpExCd)
 
THttpChRetoperator= (const THttpChRet &)
 
bool Eof ()
 
char GetCh ()
 

Private Attributes

PSIn SIn
 
int Chs
 
int ChN
 
THttpExCd HttpExCd
 

Detailed Description

Definition at line 446 of file http.cpp.

Constructor & Destructor Documentation

THttpChRet::THttpChRet ( const PSIn _SIn,
const THttpExCd _HttpExCd 
)
inline

Definition at line 451 of file http.cpp.

451  :
452  SIn(_SIn), Chs(SIn->Len()), ChN(0), HttpExCd(_HttpExCd){}
THttpExCd HttpExCd
Definition: http.cpp:449
int ChN
Definition: http.cpp:448
PSIn SIn
Definition: http.cpp:447
int Chs
Definition: http.cpp:448
virtual int Len() const =0

Member Function Documentation

bool THttpChRet::Eof ( )
inline

Definition at line 454 of file http.cpp.

References ChN, and Chs.

Referenced by THttpRq::ParseSearch().

454 {return ChN==Chs;}
int ChN
Definition: http.cpp:448
int Chs
Definition: http.cpp:448

Here is the caller graph for this function:

char THttpChRet::GetCh ( )
inline

Definition at line 455 of file http.cpp.

References ChN, Chs, TSIn::GetCh(), HttpExCd, and SIn.

Referenced by THttpRq::ParseSearch().

455  {
456  if (ChN>=Chs){throw THttpEx(HttpExCd);}
457  ChN++; return SIn->GetCh();}
THttpExCd HttpExCd
Definition: http.cpp:449
int ChN
Definition: http.cpp:448
PSIn SIn
Definition: http.cpp:447
int Chs
Definition: http.cpp:448
virtual char GetCh()=0

Here is the call graph for this function:

Here is the caller graph for this function:

THttpChRet& THttpChRet::operator= ( const THttpChRet )
inline

Definition at line 453 of file http.cpp.

References Fail.

453 {Fail; return *this;}
#define Fail
Definition: bd.h:238

Member Data Documentation

int THttpChRet::ChN
private

Definition at line 448 of file http.cpp.

Referenced by Eof(), and GetCh().

int THttpChRet::Chs
private

Definition at line 448 of file http.cpp.

Referenced by Eof(), and GetCh().

THttpExCd THttpChRet::HttpExCd
private

Definition at line 449 of file http.cpp.

Referenced by GetCh().

PSIn THttpChRet::SIn
private

Definition at line 447 of file http.cpp.

Referenced by GetCh().


The documentation for this class was generated from the following file: