#include <LoggerBroker.hpp>
Public Member Functions | |
| DECLARE_MAP (const FullPN, LoggerPtr, std::less< const FullPN >, LoggerMap) | |
| LoggerBroker (ModelRef aModel) | |
| ECELL_API LoggerPtr | getLogger (FullPNCref aFullPN) const |
| Get or create a Logger for a PropertySlot. | |
| ECELL_API LoggerPtr | createLogger (FullPNCref aFullPN, PolymorphVectorCref aParamList) |
| void | flush () |
| Flush the data in all the Loggers immediately. | |
| LoggerMapCref | getLoggerMap () const |
| Get a const reference to the LoggerMap. | |
This class creates, holds in a map which associates FullPN with a Logger, and responds to requests to Loggers.
| ECELL_API LoggerPtr libecs::LoggerBroker::getLogger | ( | FullPNCref | aFullPN | ) | const |
Get or create a Logger for a PropertySlot.
This method first look for a Logger object which is logging the specified PropertySlot, and if it is found, returns the Logger. If there is no Logger connected to the PropertySlot yet, it creates and returns a new Logger.
FIXME: doc for interval needed
| aFullPN | a FullPN of the requested FullPN | |
| anInterval | a logging interval |
| void libecs::LoggerBroker::flush | ( | ) |
Flush the data in all the Loggers immediately.
Usually Loggers record data with logging intervals. This method orders every Logger to write the data immediately ignoring the logging interval.
| LoggerMapCref libecs::LoggerBroker::getLoggerMap | ( | ) | const [inline] |
Get a const reference to the LoggerMap.
Use this method for const operations such as LoggerMap::size() and LoggerMap::begin().
1.5.5