ESyS-Particle  4.0.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
BasicCon Class Reference

Handle message ouput on the console. More...

#include <console.h>

Inheritance diagram for BasicCon:
Inheritance graph
[legend]
Collaboration diagram for BasicCon:
Collaboration graph
[legend]

List of all members.

Public Types

enum  VerboseLevel {
  all = 0, dbg, info, msg,
  warning, err, critical, silent
}

Public Member Functions

 BasicCon (ostream *Ios)
void SetQuiet (bool Q)
void SetTiming (bool T)
virtual void flush ()
virtual void SetOStream (ostream *Ios)
BasicConMessage (bool h=true)
 set verbose level of next message to "msg"
BasicConError (bool h=true)
 set verbose level of next message to "err"
BasicConWarning (bool h=true)
 set verbose level of next message to "wrn"
BasicConCritical (bool h=true)
 set verbose level of next message to "crt"
BasicConInfo (bool h=true)
 set verbose level of next message to "inf"
BasicConDebug (bool h=true)
 set verbose level of next message to "dbg"
BasicConXDebug (bool h=true)
 set verbose level of next message to "xdg"
BasicConTiming (bool h=true)
 set verbose level of next message to "tme"
BasicConoperator<< (const char *s)
BasicConoperator<< (char s)
BasicConoperator<< (short s)
BasicConoperator<< (int s)
BasicConoperator<< (long s)
BasicConoperator<< (float s)
BasicConoperator<< (double s)
BasicConoperator<< (unsigned char s)
BasicConoperator<< (unsigned short s)
BasicConoperator<< (unsigned int s)
BasicConoperator<< (unsigned long s)
BasicConoperator<< (void *s)
BasicConoperator<< (Vec3 s)
BasicConoperator<< (const Matrix3 &)
BasicConoperator<< (CCounter &s)
BasicConoperator<< (CCounterList &s)
BasicConoperator<< (const string &)

Static Public Member Functions

static void SetVerbose (int vl=all)
 set verbose level
static int GetVerbose ()

Protected Member Functions

virtual void process (ostringstream *str_os)
virtual void show (char *level, bool h)

Protected Attributes

char * CurBuffer
 buffer for output & process
ostream * os
 Output stream (cout usually)

Static Protected Attributes

static int VLevel = Con::info
 current verbose level
static bool mute = false
static bool quiet = false
 flag to mute console (loats output) or quiet console
static bool timing = false

Detailed Description

Handle message ouput on the console.

Author:
David Place, Steffen Abe $Revision$ $Date$

Member Function Documentation

void BasicCon::process ( ostringstream *  str_os) [protected, virtual]

output stream on Output stream if not quiet

Parameters:
str_osstream to output

Reimplemented in Con.

References os, and quiet.

void BasicCon::show ( char *  level,
bool  h 
) [protected, virtual]

Show header before output lines in h is true

Parameters:
levelstring of character to output
hif true will ouput the string level

Referenced by Critical(), Debug(), Error(), Info(), Message(), Timing(), Warning(), and XDebug().

Here is the caller graph for this function:


The documentation for this class was generated from the following files: