#include <console.h>
Definition at line 19 of file console.h.
TCon::TCon |
( |
const TCon & |
| ) |
|
|
private |
Definition at line 3 of file console.cpp.
4 #if defined (GLib_CreateConsole)
5 Ok = (AllocConsole() != 0);
6 HStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
7 IAssert(HStdOut != INVALID_HANDLE_VALUE);
Definition at line 11 of file console.cpp.
12 #if defined (GLib_CreateConsole)
void TCon::operator() |
( |
const char * |
FmtStr, |
|
|
|
... |
|
) |
| |
Definition at line 65 of file console.cpp.
66 static char Bf [2048];
67 va_list valist; va_start(valist, FmtStr);
68 int BfL=vsnprintf(Bf, 2048, FmtStr, valist); va_end(valist);
69 if (BfL!=-1){
PutBf((
void *) Bf, BfL);}
70 else {
PutBf((
void *) Bf, 2048);}
void PutBf(const void *LBf, const int &LBfL)
TCon& TCon::operator<< |
( |
const bool & |
Bool | ) |
|
|
inline |
Definition at line 37 of file console.h.
37 {
PutCh(Bool ?
'T' :
'F');
return *
this; }
Definition at line 38 of file console.h.
38 {
PutBf(&UCh,
sizeof(UCh));
return *
this; }
void PutBf(const void *LBf, const int &LBfL)
TCon& TCon::operator<< |
( |
const char & |
Ch | ) |
|
|
inline |
Definition at line 39 of file console.h.
39 {
PutBf(&Ch,
sizeof(Ch));
return *
this; }
void PutBf(const void *LBf, const int &LBfL)
TCon & TCon::operator<< |
( |
const int & |
Int | ) |
|
Definition at line 29 of file console.cpp.
31 sprintf(Bf,
"%d", Int);
32 PutBf((
void *) Bf,
int(strlen(Bf)));
void PutBf(const void *LBf, const int &LBfL)
TCon & TCon::operator<< |
( |
const uint & |
Int | ) |
|
Definition at line 36 of file console.cpp.
38 sprintf(Bf,
"%u", UInt);
39 PutBf((
void *) Bf,
int(strlen(Bf)));
void PutBf(const void *LBf, const int &LBfL)
TCon& TCon::operator<< |
( |
const short & |
Sh | ) |
|
|
inline |
Definition at line 42 of file console.h.
TCon & operator<<(const bool &Bool)
Definition at line 43 of file console.h.
TCon & operator<<(const bool &Bool)
TCon & TCon::operator<< |
( |
const float & |
Flt | ) |
|
Definition at line 43 of file console.cpp.
45 sprintf(Bf,
"%g", Flt);
46 PutBf((
void *) Bf,
int(strlen(Bf)));
void PutBf(const void *LBf, const int &LBfL)
TCon & TCon::operator<< |
( |
const double & |
Double | ) |
|
Definition at line 51 of file console.cpp.
53 sprintf(Bf,
"%g", Double);
54 PutBf((
void *) Bf,
int(strlen(Bf)));
void PutBf(const void *LBf, const int &LBfL)
TCon & TCon::operator<< |
( |
const long double & |
LDouble | ) |
|
Definition at line 58 of file console.cpp.
60 sprintf(Bf,
"%Lg", LDouble);
61 PutBf((
void *) Bf,
int(strlen(Bf)));
void PutBf(const void *LBf, const int &LBfL)
TCon& TCon::operator<< |
( |
const char * |
CStr | ) |
|
|
inline |
Definition at line 47 of file console.h.
47 {
PutBf(CStr,
int(strlen(CStr)));
return *
this; }
void PutBf(const void *LBf, const int &LBfL)
TCon& TCon::operator<< |
( |
const TStr & |
Str | ) |
|
|
inline |
Definition at line 48 of file console.h.
void PutBf(const void *LBf, const int &LBfL)
TCon& TCon::operator<< |
( |
const TChA & |
ChA | ) |
|
|
inline |
Definition at line 49 of file console.h.
void PutBf(const void *LBf, const int &LBfL)
Definition at line 50 of file console.h.
50 {
return Mnp(*
this); }
Definition at line 51 of file console.h.
51 {
return FuncPt(*
this); }
void TCon::PutBf |
( |
const void * |
LBf, |
|
|
const int & |
LBfL |
|
) |
| |
Definition at line 17 of file console.cpp.
18 #if defined (GLib_Console)
19 #if defined (GLib_CreateConsole)
21 WriteConsole(HStdOut, LBf, LBfL, &ChsWritten, 0);
22 IAssert(ChsWritten == static_cast<DWORD>(LBfL));
24 fwrite(LBf,
sizeof(
char), LBfL, stdout);
int TCon::PutCh |
( |
const int & |
Ch | ) |
|
|
inline |
Definition at line 33 of file console.h.
33 {
PutBf((
void *) &Ch, 1);
return Ch; }
void PutBf(const void *LBf, const int &LBfL)
The documentation for this class was generated from the following files: