|
SNAP Library 2.0, User Reference
2013-05-13 16:33:57
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <fl.h>
Inherits TSBase.
Inherited by TFOut, TMemOut, TMOut, TSInOut, TStdOut, and TZipOut.
Public Member Functions | |
| TSOut () | |
| TSOut (const TStr &Str) | |
| virtual | ~TSOut () |
| void | EnableLnTrunc (const int &_MxLnLen) |
| void | DisableLnTrunc () |
| virtual int | PutCh (const char &Ch)=0 |
| virtual int | PutBf (const void *LBf, const TSize &LBfL)=0 |
| virtual void | Flush ()=0 |
| virtual TFileId | GetFileId () const |
| int | PutMem (const TMem &Mem) |
| int | PutCh (const char &Ch, const int &Chs) |
| int | PutBool (const bool &Bool) |
| int | PutInt (const int &Int) |
| int | PutInt (const int &Int, const char *FmtStr) |
| int | PutUInt (const uint &Int) |
| int | PutUInt (const uint &Int, const char *FmtStr) |
| int | PutFlt (const double &Flt) |
| int | PutFlt (const double &Flt, const char *FmtStr) |
| int | PutStr (const char *CStr) |
| int | PutStr (const TChA &ChA) |
| int | PutStr (const TStr &Str, const char *FmtStr) |
| int | PutStr (const TStr &Str, const bool &ForceInLn=false) |
| int | PutStrLn (const TStr &Str, const bool &ForceInLn=false) |
| int | PutStrFmt (const char *FmtStr,...) |
| int | PutStrFmtLn (const char *FmtStr,...) |
| int | PutIndent (const int &IndentLev=1) |
| int | PutLn (const int &Lns=1) |
| int | PutDosLn (const int &Lns=1) |
| int | PutSep (const int &NextStrLen=0) |
| int | PutSepLn (const int &Lns=0) |
| void | SaveCs () |
| void | SaveBf (const void *Bf, const TSize &BfL) |
| void | Save (const bool &Bool) |
| void | Save (const char &Ch) |
| void | Save (const uchar &UCh) |
| void | Save (const short &Short) |
| void | Save (const ushort &UShort) |
| void | Save (const int &Int) |
| void | Save (const uint &UInt) |
| void | Save (const int64 &Int) |
| void | Save (const uint64 &UInt) |
| void | Save (const double &Flt) |
| void | Save (const sdouble &SFlt) |
| void | Save (const ldouble &LFlt) |
| void | Save (const char *CStr, const TSize &CStrLen) |
| void | Save (const char *CStr) |
| void | Save (TSIn &SIn, const TSize &BfL=-1) |
| void | Save (const PSIn &SIn, const TSize &BfL=-1) |
| void | Save (const void *Bf, const TSize &BfL) |
| TSOut & | operator<< (const bool &Bool) |
| TSOut & | operator<< (const uchar &UCh) |
| TSOut & | operator<< (const char &Ch) |
| TSOut & | operator<< (const short &Sh) |
| TSOut & | operator<< (const ushort &USh) |
| TSOut & | operator<< (const int &Int) |
| TSOut & | operator<< (const uint &Int) |
| TSOut & | operator<< (const int64 &Int) |
| TSOut & | operator<< (const uint64 &UInt) |
| TSOut & | operator<< (const float &Flt) |
| TSOut & | operator<< (const double &Double) |
| TSOut & | operator<< (const long double &LDouble) |
| TSOut & | operator<< (const TSOutMnp &Mnp) |
| TSOut & | operator<< (TSOut &(*FuncPt)(TSOut &)) |
| TSOut & | operator<< (TSIn &SIn) |
| TSOut & | operator<< (PSIn &SIn) |
Static Public Attributes | |
| static const TPt< TSOut > | StdOut = PSOut(new TStdOut()) |
Private Member Functions | |
| int | UpdateLnLen (const int &StrLen, const bool &ForceInLn=false) |
| TSOut (const TSIn &) | |
| TSOut & | operator= (const TSOut &) |
Private Attributes | |
| int | MxLnLen |
| int | LnLen |
Friends | |
| class | TPt< TSOut > |
| TSOut::TSOut | ( | const TSIn & | ) | [private] |
| TSOut::TSOut | ( | ) | [inline] |
| TSOut::TSOut | ( | const TStr & | Str | ) |
| virtual TSOut::~TSOut | ( | ) | [inline, virtual] |
| void TSOut::DisableLnTrunc | ( | ) | [inline] |
| void TSOut::EnableLnTrunc | ( | const int & | _MxLnLen | ) | [inline] |
| virtual void TSOut::Flush | ( | ) | [pure virtual] |
| virtual TFileId TSOut::GetFileId | ( | ) | const [inline, virtual] |
| TSOut& TSOut::operator<< | ( | const bool & | Bool | ) | [inline] |
| TSOut& TSOut::operator<< | ( | const char & | Ch | ) | [inline] |
| TSOut& TSOut::operator<< | ( | const short & | Sh | ) | [inline] |
| TSOut& TSOut::operator<< | ( | const int & | Int | ) | [inline] |
| TSOut& TSOut::operator<< | ( | const float & | Flt | ) | [inline] |
| TSOut& TSOut::operator<< | ( | const double & | Double | ) | [inline] |
| TSOut& TSOut::operator<< | ( | const long double & | LDouble | ) | [inline] |
Definition at line 206 of file fl.h.
{return operator<<(*SIn);}
| virtual int TSOut::PutBf | ( | const void * | LBf, |
| const TSize & | LBfL | ||
| ) | [pure virtual] |
| int TSOut::PutBool | ( | const bool & | Bool | ) |
Definition at line 89 of file fl.cpp.
{
return PutStr(TBool::GetStr(Bool));
}
| virtual int TSOut::PutCh | ( | const char & | Ch | ) | [pure virtual] |
| int TSOut::PutCh | ( | const char & | Ch, |
| const int & | Chs | ||
| ) |
| int TSOut::PutDosLn | ( | const int & | Lns = 1 | ) |
| int TSOut::PutFlt | ( | const double & | Flt | ) |
Definition at line 109 of file fl.cpp.
{
return PutStr(TFlt::GetStr(Flt));
}
| int TSOut::PutFlt | ( | const double & | Flt, |
| const char * | FmtStr | ||
| ) |
Definition at line 113 of file fl.cpp.
{
return PutStr(TFlt::GetStr(Flt, FmtStr));
}
| int TSOut::PutIndent | ( | const int & | IndentLev = 1 | ) |
| int TSOut::PutInt | ( | const int & | Int | ) |
Definition at line 93 of file fl.cpp.
{
return PutStr(TInt::GetStr(Int));
}
| int TSOut::PutInt | ( | const int & | Int, |
| const char * | FmtStr | ||
| ) |
Definition at line 97 of file fl.cpp.
{
return PutStr(TInt::GetStr(Int, FmtStr));
}
| int TSOut::PutLn | ( | const int & | Lns = 1 | ) |
| int TSOut::PutMem | ( | const TMem & | Mem | ) |
| int TSOut::PutSep | ( | const int & | NextStrLen = 0 | ) |
| int TSOut::PutSepLn | ( | const int & | Lns = 0 | ) |
| int TSOut::PutStr | ( | const char * | CStr | ) |
Definition at line 117 of file fl.cpp.
{
int Cs=UpdateLnLen(int(strlen(CStr)));
return Cs+PutBf(CStr, int(strlen(CStr)));
}
| int TSOut::PutStr | ( | const TChA & | ChA | ) |
| int TSOut::PutStr | ( | const TStr & | Str, |
| const char * | FmtStr | ||
| ) |
Definition at line 127 of file fl.cpp.
{
return PutStr(TStr::GetStr(Str, FmtStr));
}
| int TSOut::PutStr | ( | const TStr & | Str, |
| const bool & | ForceInLn = false |
||
| ) |
| int TSOut::PutStrFmt | ( | const char * | FmtStr, |
| ... | |||
| ) |
| int TSOut::PutStrFmtLn | ( | const char * | FmtStr, |
| ... | |||
| ) |
| int TSOut::PutStrLn | ( | const TStr & | Str, |
| const bool & | ForceInLn = false |
||
| ) | [inline] |
| int TSOut::PutUInt | ( | const uint & | Int | ) |
Definition at line 101 of file fl.cpp.
{
return PutStr(TUInt::GetStr(UInt));
}
| int TSOut::PutUInt | ( | const uint & | Int, |
| const char * | FmtStr | ||
| ) |
Definition at line 105 of file fl.cpp.
{
return PutStr(TUInt::GetStr(UInt, FmtStr));
}
| void TSOut::Save | ( | const bool & | Bool | ) | [inline] |
| void TSOut::Save | ( | const char & | Ch | ) | [inline] |
| void TSOut::Save | ( | const uchar & | UCh | ) | [inline] |
| void TSOut::Save | ( | const short & | Short | ) | [inline] |
| void TSOut::Save | ( | const ushort & | UShort | ) | [inline] |
| void TSOut::Save | ( | const int & | Int | ) | [inline] |
| void TSOut::Save | ( | const uint & | UInt | ) | [inline] |
| void TSOut::Save | ( | const int64 & | Int | ) | [inline] |
| void TSOut::Save | ( | const uint64 & | UInt | ) | [inline] |
| void TSOut::Save | ( | const double & | Flt | ) | [inline] |
| void TSOut::Save | ( | const sdouble & | SFlt | ) | [inline] |
| void TSOut::Save | ( | const ldouble & | LFlt | ) | [inline] |
| void TSOut::Save | ( | const char * | CStr, |
| const TSize & | CStrLen | ||
| ) | [inline] |
| void TSOut::Save | ( | const char * | CStr | ) |
| void TSOut::Save | ( | TSIn & | SIn, |
| const TSize & | BfL = -1 |
||
| ) |
| void TSOut::Save | ( | const PSIn & | SIn, |
| const TSize & | BfL = -1 |
||
| ) | [inline] |
| void TSOut::Save | ( | const void * | Bf, |
| const TSize & | BfL | ||
| ) | [inline] |
| void TSOut::SaveBf | ( | const void * | Bf, |
| const TSize & | BfL | ||
| ) | [inline] |
| int TSOut::UpdateLnLen | ( | const int & | StrLen, |
| const bool & | ForceInLn = false |
||
| ) | [private] |
int TSOut::LnLen [private] |
int TSOut::MxLnLen [private] |