Wiselib
Public Member Functions
RoombaStatistics Class Reference

#include <roomba_statistics.h>

List of all members.

Public Member Functions

 RoombaStatistics (std::string statistics_filename="output.txt")
virtual ~RoombaStatistics ()
void print_statistics (int time, int buffer_size, int action)
 prints statistics data to statistics file
void print_statistics_comment (std::string comment)
 print comment to statistics file
void close_statistics ()
 Closes the stream.
void set_statistics_filename (std::string statistics_filename)
std::string statistics_filename ()

Constructor & Destructor Documentation

RoombaStatistics::RoombaStatistics ( std::string  statistics_filename = "output.txt") [inline]
virtual RoombaStatistics::~RoombaStatistics ( ) [inline, virtual]

Member Function Documentation

void RoombaStatistics::close_statistics ( ) [inline]

Closes the stream.

void RoombaStatistics::print_statistics ( int  time,
int  buffer_size,
int  action 
) [inline]

prints statistics data to statistics file

Parameters:
inttime is the time point the event occurs, by local time
intbuffer_size is the current size of the buffer
intaction how the number of messages changed (+1,0,-1)
Returns:
void
void RoombaStatistics::print_statistics_comment ( std::string  comment) [inline]

print comment to statistics file

Parameters:
commentis the to be printed comment
Returns:
void
void RoombaStatistics::set_statistics_filename ( std::string  statistics_filename) [inline]
std::string RoombaStatistics::statistics_filename ( ) [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines