ZLog Class Reference

class for logging force values of BarrettHand. More...

#include <zlog.h>

Collaboration diagram for ZLog:

Collaboration graph
[legend]

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

Detailed Description

class for logging force values of BarrettHand.

This class provides a small Object for logging data of type unsigned short, which provides enough storage for the force values form the hand.


Constructor & Destructor Documentation

ZLog::ZLog (  ) 

Constructor.

ZLog::ZLog ( const int  logsize  ) 

Constructor with Size.

Parameters:
logsize Number of data to be logged

ZLog::~ZLog (  ) 

Destructor.


Member Function Documentation

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.

Parameters:
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

Parameters:
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.

Parameters:
value Value to insert into log.


Field Documentation

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.


The documentation for this class was generated from the following files:

tams Tim Baier bhandlib v0.25
Generated Wed Aug 16 15:01:33 2006 by doxygen 1.4.7