Eaagles::Basic::LcLogger Class Reference

Inherits Eaagles::Basic::LcComponent.

Inheritance diagram for Eaagles::Basic::LcLogger:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::Basic::LcLogger:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LcLogger ()
bool isOpen ()
bool isFailed ()
virtual void log (const char *const msg)
virtual void log (LogEvent *const event)
virtual void updateTC (const LCreal dt=0.0f)
virtual void updateData (const LCreal dt=0.0)

Protected Member Functions

bool setSlotFilename (LcString *const msg)
bool setSlotPathName (LcString *const msg)
virtual bool openFile ()

Private Attributes

std::ofstream * lout
LcStringfilename
LcStringpathname
bool opened
bool failed

Classes

class  LogEvent

Detailed Description

General Message/Event Logger

    Form name: Logger
    Slots:
       1. components (Component)  Single child component.
                     (PairStream) List of child components.
       2. select     (String)     Select a child component by name.
                     (Number)     Select a child component by index.
       3. logger     (Logger)     Set the event logger for this component.
       4. file       (String)     Log file name.
       5. path       (String)     Path to log directory (optional).
    


Constructor & Destructor Documentation

Eaagles::Basic::LcLogger::LcLogger (  ) 


Member Function Documentation

bool Eaagles::Basic::LcLogger::isOpen (  )  [inline]

Get the state of the log file.

bool Eaagles::Basic::LcLogger::isFailed (  )  [inline]

void Eaagles::Basic::LcLogger::log ( const char *const  msg  )  [virtual]

Add an entry to the log file.

void Eaagles::Basic::LcLogger::log ( LogEvent *const  event  )  [virtual]

void Eaagles::Basic::LcLogger::updateTC ( const LCreal  dt = 0.0f  )  [virtual]

Update time critical part of this component (empty).

Reimplemented from Eaagles::Basic::LcComponent.

void Eaagles::Basic::LcLogger::updateData ( const LCreal  dt = 0.0  )  [virtual]

Update background part of this component (tries to open the logfile).

Reimplemented from Eaagles::Basic::LcComponent.

bool Eaagles::Basic::LcLogger::setSlotFilename ( LcString *const  msg  )  [protected]

bool Eaagles::Basic::LcLogger::setSlotPathName ( LcString *const  msg  )  [protected]

bool Eaagles::Basic::LcLogger::openFile (  )  [protected, virtual]


Member Data Documentation

std::ofstream* Eaagles::Basic::LcLogger::lout [private]

Output stream.

LcString* Eaagles::Basic::LcLogger::filename [private]

Log file name.

LcString* Eaagles::Basic::LcLogger::pathname [private]

Path to log file directory.

bool Eaagles::Basic::LcLogger::opened [private]

File opened.

bool Eaagles::Basic::LcLogger::failed [private]

Open or write failed.


Generated on Tue Dec 19 16:26:14 2006 for Eaagles by  doxygen 1.5.0