FACT++  1.0
void Status::Print ( std::ostream &  out,
const char *  title,
const bool &  val,
const char *  t = "enabled",
const char *  f = "disabled" 
)

Definition at line 56 of file HeadersPower.cc.

References kGreen, kRed, and kReset.

Referenced by ConnectionInterlock::ProcessAnswer().

57 {
58  out << setw(9) << title << " : ";
59  if (val)
60  out << kGreen << t << kReset << '\n';
61  else
62  out << kRed << f << kReset << '\n';
63 }
Set color Green.
Definition: WindowLog.h:18
Set color Red.
Definition: WindowLog.h:17
TT t
Definition: test_client.c:26
Reset all attributes.
Definition: WindowLog.h:29

+ Here is the caller graph for this function: