6 va_start(valist, FmtStr);
7 const int RetVal=vsnprintf(Bf, 10*1024-2, FmtStr, valist);
15 va_start(valist, FmtStr);
16 const int RetVal=vsnprintf(Bf, 10*1024-2, FmtStr, valist);
24 va_start(valist, FmtStr);
25 const int RetVal=vsnprintf(Bf, 10*1024-2, FmtStr, valist);
33 va_start(valist, FmtStr);
34 const int RetVal=vsnprintf(Bf, 10*1024-2, FmtStr, valist);
41 static TStr InfoSStr=
"I";
static TStr InfoLStr=
"Information";
42 static TStr WarnSStr=
"W";
static TStr WarnLStr=
"Warning";
43 static TStr ErrSStr=
"E";
static TStr ErrLStr=
"Error";
44 static TStr StatSStr=
"";
static TStr StatLStr=
"Status";
46 case ntInfo:
if (Brief){
return InfoSStr;}
else {
return InfoLStr;}
47 case ntWarn:
if (Brief){
return WarnSStr;}
else {
return WarnLStr;}
48 case ntErr:
if (Brief){
return ErrSStr;}
else {
return ErrLStr;}
49 case ntStat:
if (Brief){
return StatSStr;}
else {
return StatLStr;}
72 printf(
"%s\n", MsgStr.
CStr());
75 printf(
"%s: %s\n", TypeStr.
CStr(), MsgStr.
CStr());
80 printf(
"%s", MsgStr.
CStr());
90 fprintf(stderr,
"%s\n", MsgStr.
CStr());
93 fprintf(stderr,
"%s: %s\n", TypeStr.
CStr(), MsgStr.
CStr());
98 fprintf(stderr,
"%s", MsgStr.
CStr());
101 fprintf(stderr,
"\n");}
static TStr GetTypeStr(const TNotifyType &Type, const bool &Brief=true)
void OnStatus(const TStr &MsgStr)
static void DfOnNotify(const TNotifyType &Type, const TStr &MsgStr)
TStr GetYMDDashStr() const
void OnNotify(const TNotifyType &Type, const TStr &MsgStr)
static const PNotify StdErrNotify
void OnStatusFmt(const char *FmtStr,...)
void ErrNotify(const char *NotifyCStr)
void OnStatus(const TStr &MsgStr)
void WarnNotify(const char *NotifyCStr)
void(* TOnExceptF)(const TStr &MsgStr)
virtual void OnTxt(const TStr &)
virtual void OnLn(const TStr &)
void OnStatus(const TStr &MsgStr)
virtual void OnNotify(const TNotifyType &, const TStr &)
static const PNotify StdNotify
void OnLnFmt(const char *FmtStr,...)
void InfoNotify(const char *NotifyCStr)
static const PNotify NullNotify
enum TNotifyType_ TNotifyType
virtual void OnStatus(const TStr &)
static TStr Fmt(const char *FmtStr,...)
TStr GetHMSTColonDotStr(const bool &FullP=false, const bool &MSecP=true) const
void OnTxtFmt(const char *FmtStr,...)
void StatNotify(const char *NotifyCStr)
static TOnExceptF OnExceptF
void OnNotifyFmt(const TNotifyType &Type, const char *FmtStr,...)
void OnNotify(const TNotifyType &Type, const TStr &MsgStr)