LifeV
DebugStream Class Reference

#include <LifeDebug.hpp>

+ Collaboration diagram for DebugStream:

Data Structures

struct  Private
 

Private Attributes

PrivateM_data
 

Public typedefs and structures

typedef int(* stprintf) (const char *format,...)
 

Constructors, destructor

 DebugStream (int area=0, int level=1, bool print=true)
 
 DebugStream (const char *initialString, int area=0, int level=1, bool print=true)
 
 DebugStream (DebugStream const &)
 
 ~DebugStream ()
 

Operators

DebugStreamoperator<< (char const *c)
 
DebugStreamoperator<< (double d)
 
DebugStreamoperator<< (std::string const &str)
 
DebugStreamoperator<< (LManipFunction f)
 

Methods

void setFlush (stprintf=0)
 
void flush ()
 
static void attach (std::string const &logfile)
 
static void attach (std::string const &logfile, int area)
 
static void detach (std::string const &logfile, int area)
 
static void detachAll ()
 

Detailed Description

Definition at line 63 of file LifeDebug.hpp.

Member Typedef Documentation

◆ stprintf

typedef int(* stprintf) (const char *format,...)

Definition at line 69 of file LifeDebug.hpp.

Constructor & Destructor Documentation

◆ DebugStream() [1/3]

DebugStream ( int  area = 0,
int  level = 1,
bool  print = true 
)

Definition at line 186 of file LifeDebug.cpp.

+ Here is the caller graph for this function:

◆ DebugStream() [2/3]

DebugStream ( const char *  initialString,
int  area = 0,
int  level = 1,
bool  print = true 
)

Definition at line 209 of file LifeDebug.cpp.

+ Here is the caller graph for this function:

◆ DebugStream() [3/3]

DebugStream ( DebugStream const &  sd)

Definition at line 229 of file LifeDebug.cpp.

◆ ~DebugStream()

Definition at line 236 of file LifeDebug.cpp.

Member Function Documentation

◆ operator<<() [1/4]

DebugStream & operator<< ( char const *  c)

Definition at line 245 of file LifeDebug.cpp.

◆ operator<<() [2/4]

DebugStream & operator<< ( double  d)

Definition at line 258 of file LifeDebug.cpp.

◆ operator<<() [3/4]

DebugStream & operator<< ( std::string const &  str)

Definition at line 268 of file LifeDebug.cpp.

◆ operator<<() [4/4]

DebugStream & operator<< ( LifeV::LManipFunction  f)

Definition at line 281 of file LifeDebug.cpp.

◆ setFlush()

void setFlush ( stprintf  func = 0)

Definition at line 294 of file LifeDebug.cpp.

◆ flush()

void flush ( )

Definition at line 299 of file LifeDebug.cpp.

+ Here is the caller graph for this function:

◆ attach() [1/2]

void attach ( std::string const &  logfile)
static

Definition at line 327 of file LifeDebug.cpp.

◆ attach() [2/2]

void attach ( std::string const &  logfile,
int  area 
)
static

Definition at line 352 of file LifeDebug.cpp.

◆ detach()

void detach ( std::string const &  logfile,
int  area 
)
static

Definition at line 356 of file LifeDebug.cpp.

◆ detachAll()

void detachAll ( )
static

Definition at line 360 of file LifeDebug.cpp.

Field Documentation

◆ M_data

Private* M_data
private

Definition at line 101 of file LifeDebug.hpp.


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