SNAP Library 3.0, User Reference  2016-07-20 17:56:49
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

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.

454 {return ChN==Chs;}
int ChN
Definition: http.cpp:448
int Chs
Definition: http.cpp:448
char THttpChRet::GetCh ( )
inline

Definition at line 455 of file http.cpp.

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
THttpChRet& THttpChRet::operator= ( const THttpChRet )
inline

Definition at line 453 of file http.cpp.

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.

int THttpChRet::Chs
private

Definition at line 448 of file http.cpp.

THttpExCd THttpChRet::HttpExCd
private

Definition at line 449 of file http.cpp.

PSIn THttpChRet::SIn
private

Definition at line 447 of file http.cpp.


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