Inheritance diagram for Eaagles::Basic::LcLogger:


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 |
| LcString * | filename |
| LcString * | pathname |
| bool | opened |
| bool | failed |
Classes | |
| class | LogEvent |
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).
| Eaagles::Basic::LcLogger::LcLogger | ( | ) |
| 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] |
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.
1.5.0