#include <fl.h>
Inherits TSBase.
Inherited by TChAIn, TFIn, TMemIn, TMIn, TSInOut, TStdIn, TStrIn, and TZipIn.
Definition at line 58 of file fl.h.
TSIn::TSIn |
( |
const TSIn & |
| ) |
|
|
private |
Definition at line 65 of file fl.h.
TSIn::TSIn |
( |
const TStr & |
Str | ) |
|
Definition at line 67 of file fl.h.
virtual bool TSIn::Eof |
( |
| ) |
|
|
pure virtual |
virtual int TSIn::GetBf |
( |
const void * |
Bf, |
|
|
const TSize & |
BfL |
|
) |
| |
|
pure virtual |
virtual char TSIn::GetCh |
( |
| ) |
|
|
pure virtual |
bool TSIn::GetNextLn |
( |
TStr & |
LnStr | ) |
|
Definition at line 43 of file fl.cpp.
bool GetNextLn(TStr &LnStr)
bool TSIn::GetNextLn |
( |
TChA & |
LnChA | ) |
|
Definition at line 50 of file fl.cpp.
53 const char Ch=
GetCh();
54 if (Ch==
'\n'){
return true;}
55 if (Ch==
'\r' &&
PeekCh()==
'\n'){
GetCh();
return true;}
58 return !LnChA.
Empty();
void AddCh(const char &Ch, const int &MxLen=-1)
virtual bool TSIn::GetNextLnBf |
( |
TChA & |
LnChA | ) |
|
|
pure virtual |
bool TSIn::IsFastMode |
( |
| ) |
const |
|
inline |
Definition at line 77 of file fl.h.
virtual int TSIn::Len |
( |
| ) |
const |
|
pure virtual |
void TSIn::Load |
( |
bool & |
Bool | ) |
|
|
inline |
Definition at line 84 of file fl.h.
84 {
Cs+=
GetBf(&Bool,
sizeof(Bool));}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
void TSIn::Load |
( |
uchar & |
UCh | ) |
|
|
inline |
Definition at line 85 of file fl.h.
virtual int GetBf(const void *Bf, const TSize &BfL)=0
void TSIn::Load |
( |
char & |
Ch | ) |
|
|
inline |
Definition at line 86 of file fl.h.
virtual int GetBf(const void *Bf, const TSize &BfL)=0
void TSIn::Load |
( |
short & |
Short | ) |
|
|
inline |
Definition at line 87 of file fl.h.
87 {
Cs+=
GetBf(&Short,
sizeof(Short));}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
void TSIn::Load |
( |
ushort & |
UShort | ) |
|
|
inline |
Definition at line 88 of file fl.h.
88 {
Cs+=
GetBf(&UShort,
sizeof(UShort));}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
void TSIn::Load |
( |
int & |
Int | ) |
|
|
inline |
Definition at line 89 of file fl.h.
virtual int GetBf(const void *Bf, const TSize &BfL)=0
void TSIn::Load |
( |
uint & |
UInt | ) |
|
|
inline |
Definition at line 90 of file fl.h.
90 {
Cs+=
GetBf(&UInt,
sizeof(UInt));}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
void TSIn::Load |
( |
int64 & |
Int | ) |
|
|
inline |
Definition at line 91 of file fl.h.
virtual int GetBf(const void *Bf, const TSize &BfL)=0
void TSIn::Load |
( |
uint64 & |
UInt | ) |
|
|
inline |
Definition at line 92 of file fl.h.
92 {
Cs+=
GetBf(&UInt,
sizeof(UInt));}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
void TSIn::Load |
( |
double & |
Flt | ) |
|
|
inline |
Definition at line 93 of file fl.h.
virtual int GetBf(const void *Bf, const TSize &BfL)=0
Definition at line 94 of file fl.h.
94 {
Cs+=
GetBf(&SFlt,
sizeof(SFlt));}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
Definition at line 95 of file fl.h.
95 {
Cs+=
GetBf(&LFlt,
sizeof(LFlt));}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
void TSIn::Load |
( |
char *& |
CStr, |
|
|
const int & |
MxCStrLen, |
|
|
const int & |
CStrLen |
|
) |
| |
|
inline |
Definition at line 96 of file fl.h.
97 CStr=
new char[MxCStrLen+1];
Cs+=
GetBf(CStr, CStrLen+1);}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
void TSIn::Load |
( |
char *& |
CStr | ) |
|
Definition at line 34 of file fl.cpp.
38 CStr=
new char[CStrLen+1];
39 if (CStrLen>0){
Cs+=
GetBf(CStr, CStrLen);}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
#define EAssertR(Cond, MsgStr)
virtual TStr GetSNm() const
void TSIn::LoadBf |
( |
const void * |
Bf, |
|
|
const TSize & |
BfL |
|
) |
| |
|
inline |
Definition at line 81 of file fl.h.
virtual int GetBf(const void *Bf, const TSize &BfL)=0
Definition at line 28 of file fl.cpp.
30 Cs+=
GetBf(&TestCs,
sizeof(TestCs));
31 EAssertR(CurCs==TestCs,
"Invalid checksum reading '"+
GetSNm()+
"'.");
virtual int GetBf(const void *Bf, const TSize &BfL)=0
#define EAssertR(Cond, MsgStr)
virtual TStr GetSNm() const
void* TSIn::LoadNewBf |
( |
const int & |
BfL | ) |
|
|
inline |
Definition at line 82 of file fl.h.
83 void* Bf=(
void*)
new char[BfL];
Cs+=
GetBf(Bf, BfL);
return Bf;}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
TSIn& TSIn::operator>> |
( |
bool & |
Bool | ) |
|
|
inline |
Definition at line 100 of file fl.h.
100 {
Cs+=
GetBf(&Bool,
sizeof(Bool));
return *
this;}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
Definition at line 101 of file fl.h.
101 {
Cs+=
GetBf(&UCh,
sizeof(UCh));
return *
this;}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
TSIn& TSIn::operator>> |
( |
char & |
Ch | ) |
|
|
inline |
Definition at line 102 of file fl.h.
102 {
Cs+=
GetBf(&Ch,
sizeof(Ch));
return *
this;}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
TSIn& TSIn::operator>> |
( |
short & |
Sh | ) |
|
|
inline |
Definition at line 103 of file fl.h.
103 {
Cs+=
GetBf(&Sh,
sizeof(Sh));
return *
this;}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
Definition at line 104 of file fl.h.
104 {
Cs+=
GetBf(&USh,
sizeof(USh));
return *
this;}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
TSIn& TSIn::operator>> |
( |
int & |
Int | ) |
|
|
inline |
Definition at line 105 of file fl.h.
105 {
Cs+=
GetBf(&Int,
sizeof(Int));
return *
this;}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
Definition at line 106 of file fl.h.
106 {
Cs+=
GetBf(&UInt,
sizeof(UInt));
return *
this;}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
Definition at line 107 of file fl.h.
107 {
Cs+=
GetBf(&Int,
sizeof(Int));
return *
this;}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
Definition at line 108 of file fl.h.
108 {
Cs+=
GetBf(&UInt,
sizeof(UInt));
return *
this;}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
TSIn& TSIn::operator>> |
( |
float & |
Flt | ) |
|
|
inline |
Definition at line 109 of file fl.h.
109 {
Cs+=
GetBf(&Flt,
sizeof(Flt));
return *
this;}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
TSIn& TSIn::operator>> |
( |
double & |
Double | ) |
|
|
inline |
Definition at line 110 of file fl.h.
110 {
Cs+=
GetBf(&Double,
sizeof(Double));
return *
this;}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
TSIn& TSIn::operator>> |
( |
long double & |
LDouble | ) |
|
|
inline |
Definition at line 111 of file fl.h.
111 {
Cs+=
GetBf(&LDouble,
sizeof(LDouble));
return *
this;}
virtual int GetBf(const void *Bf, const TSize &BfL)=0
virtual char TSIn::PeekCh |
( |
| ) |
|
|
pure virtual |
virtual void TSIn::Reset |
( |
| ) |
|
|
inlinevirtual |
void TSIn::SetFastMode |
( |
const bool & |
_FastMode | ) |
|
|
inline |
Definition at line 78 of file fl.h.
Definition at line 117 of file fl.h.
Definition at line 60 of file fl.h.
Definition at line 116 of file fl.h.
The documentation for this class was generated from the following files: