#include <Logger.hpp>
Public Types | |
| enum | Policy { STEP_SIZE = 0, TIME_INTERVAL, END_POLICY, MAX_SPACE } |
Public Member Functions | |
| DECLARE_TYPE (PhysicalLogger::size_type, size_type) | |
| Logger (LoggerAdapterPtr aLoggerAdapter) | |
| Constructor. | |
| ~Logger (void) | |
| Destructor. | |
| void | setLoggerPolicy (IntegerParam aMinimumStep, RealParam aMinimumTimeInterval, IntegerParam anEndPolicy, IntegerParam aMaxSpace) |
| Sets logging policy that is a vector of 4 numerical values. | |
| void | setLoggerPolicy (PolymorphCref aParamList) |
| Sets logging policy as a PolymorphVector of 4 numerical values. | |
| const Polymorph | getLoggerPolicy (void) |
| Returns logging policy vector. | |
| void | log (RealParam aTime) |
| Log current value that theLoggerAdapter gives with aTime. | |
| DataPointVectorSharedPtr | getData (void) const |
| Returns contents of the whole logger. | |
| DataPointVectorSharedPtr | getData (RealParam aStartTime, RealParam anEndTime) const |
| Returns a slice of the data from aStartTime to anEndTime. | |
| DataPointVectorSharedPtr | getData (RealParam aStartTime, RealParam anEndTime, RealParam anInterval) const |
| Returns a summary of the data from aStartTime to anEndTime with intervals anInterval between data elements. | |
| const Real | getStartTime (void) const |
| Returns time of the first element in Logger. | |
| const Real | getEndTime (void) const |
| Returns time of the last element in Logger. | |
| const size_type | getSize () const |
| Returns size of logger. | |
| void | setMinimumInterval (RealParam anInterval) |
| DEPRECATED - Use setLoggerPolicy. | |
| const Real | getMinimumInterval (void) const |
| DEPRECATED - Use getLoggerPolicy. | |
| void | flush () |
| This method does nothing as of version 3.1.103. | |
Protected Member Functions | |
| DataPointVectorIterator | binary_search (DataPointVectorIterator begin, DataPointVectorIterator end, RealParam t) |
| void | pushData (RealParam aTime, RealParam aValue) |
| Writes data (aTime, aValue ) onto the logger. | |
Static Protected Member Functions | |
| static DataPointVectorSharedPtr | createEmptyVector () |
|
|
Constructor. Takes up the ownership of the given LoggerAdapter. |
|
||||||||||||||||
|
For internal use only.
|
|
||||||||||||||||||||
|
Sets logging policy that is a vector of 4 numerical values. 0 (int) - minimum step size between logs 1 (real) - minimum time interval between logs 2 (int) - action to be taken when disk space runs out 3 (int) - user set max disk space, if 0 nothing |
1.4.6