#include <zlog.h>
Collaboration diagram for ZLog:
Public Member Functions | |
void | eraseLog () |
Erases al values int the log. | |
short | getLastLog () const |
Returns loged value. | |
short | getLog (const int pos) const |
Returns loged value. | |
void | resetLog () |
Sets loggin position to start value. | |
void | setLog (const short value) |
Sets whole Log to one value. | |
void | setSize (const int size) |
Sets Size of the Log. | |
void | showLog () |
Prints logged data on terminal. | |
void | writeLog (const short value) |
Write value into log. | |
ZLog (const int logsize) | |
Constructor with Size. | |
ZLog () | |
Constructor. | |
~ZLog () | |
Destructor. | |
Protected Attributes | |
int | ActPos |
short * | Log |
int | LogSize |
This class provides a small Object for logging data of type unsigned short, which provides enough storage for the force values form the hand.
ZLog::ZLog | ( | ) |
Constructor.
ZLog::ZLog | ( | const int | logsize | ) |
Constructor with Size.
logsize | Number of data to be logged |
ZLog::~ZLog | ( | ) |
Destructor.
void ZLog::eraseLog | ( | ) | [inline] |
Erases al values int the log.
E.g. sets all values to zero
short ZLog::getLastLog | ( | ) | const [inline] |
Returns loged value.
short ZLog::getLog | ( | const int | pos | ) | const [inline] |
Returns loged value.
pos | returnes |
void ZLog::resetLog | ( | ) | [inline] |
Sets loggin position to start value.
The values alerady stored int the log are NOT deleted
void ZLog::setLog | ( | const short | value | ) | [inline] |
Sets whole Log to one value.
This function can bes used to initialize the whole log to one value
value | Value of the log |
void ZLog::setSize | ( | const int | size | ) |
Sets Size of the Log.
Resizes log and sets all values to 0.
void ZLog::showLog | ( | ) | [inline] |
Prints logged data on terminal.
The data is printed in reverse order of logging.
void ZLog::writeLog | ( | const short | value | ) | [inline] |
Write value into log.
The oldest log value is overwirtten by input.
value | Value to insert into log. |
int ZLog::ActPos [protected] |
The actual position in thze log. E.g. the last written value
short* ZLog::Log [protected] |
The Log itself
int ZLog::LogSize [protected] |
The size of the log.
![]() |
Generated Wed Aug 16 15:01:33 2006 by
![]() |