SNAP Library 2.1, User Reference  2013-09-25 10:47:25
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
TStdIn Class Reference

#include <fl.h>

Inherits TSIn.

List of all members.

Public Member Functions

 TStdIn ()
bool Eof ()
int Len () const
char GetCh ()
char PeekCh ()
int GetBf (const void *LBf, const TSize &LBfL)
void Reset ()
bool GetNextLnBf (TChA &LnChA)

Static Public Member Functions

static TPt< TSInNew ()

Private Member Functions

 TStdIn (const TStdIn &)
TStdInoperator= (const TStdIn &)

Detailed Description

Definition at line 240 of file fl.h.


Constructor & Destructor Documentation

TStdIn::TStdIn ( const TStdIn ) [private]

Definition at line 63 of file fl.cpp.

: TSBase("Standard input"), TSIn("Standard input") {}

Member Function Documentation

bool TStdIn::Eof ( ) [inline, virtual]

Implements TSIn.

Definition at line 248 of file fl.h.

{return feof(stdin)!=0;}
int TStdIn::GetBf ( const void *  LBf,
const TSize LBfL 
) [virtual]

Implements TSIn.

Definition at line 217 of file fl.cpp.

                                                   {
  int LBfS=0;
  for (TSize LBfC=0; LBfC<LBfL; LBfC++){
    LBfS+=(((char*)LBf)[LBfC]=GetCh());}
  return LBfS;
}
char TStdIn::GetCh ( ) [inline, virtual]

Implements TSIn.

Definition at line 250 of file fl.h.

{return char(getchar());}
bool TStdIn::GetNextLnBf ( TChA LnChA) [virtual]

Implements TSIn.

Definition at line 224 of file fl.cpp.

                                   {
  // not implemented
  FailR(TStr::Fmt("TStdIn::GetNextLnBf: not implemented").CStr());
  return false;
}
int TStdIn::Len ( ) const [inline, virtual]

Implements TSIn.

Definition at line 249 of file fl.h.

{return -1;}
static TPt<TSIn> TStdIn::New ( ) [inline, static]

Definition at line 246 of file fl.h.

{return new TStdIn();}
TStdIn& TStdIn::operator= ( const TStdIn ) [private]
char TStdIn::PeekCh ( ) [inline, virtual]

Implements TSIn.

Definition at line 251 of file fl.h.

               {
    int Ch=getchar(); ungetc(Ch, stdin); return char(Ch);}
void TStdIn::Reset ( ) [inline, virtual]

Reimplemented from TSIn.

Definition at line 254 of file fl.h.

{Cs=TCs();}

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