FileLogAccessor Class Reference

This class accesses a log message from a given file name and is able to extract the last X bytes of the message. More...

#include <FileLogAccessor.h>

Inheritance diagram for FileLogAccessor:
[legend]
Collaboration diagram for FileLogAccessor:
[legend]

List of all members.

Public Member Functions

 FileLogAccessor (const StringBuffer &filePath, int numLastBytesToRead)
 Constructor.
StringBuffer getLog ()
 Return the log data.
 ~FileLogAccessor ()
 Destructor.

Private Attributes

StringBuffer filePath
int bytesToRead


Detailed Description

This class accesses a log message from a given file name and is able to extract the last X bytes of the message.

Constructor & Destructor Documentation

FileLogAccessor::FileLogAccessor ( const StringBuffer &  filePath,
int  numLastBytesToRead 
)

Constructor.

Parameters:
filePath The full path of the file.
numLastBytesToRead The number of bytes to read from the end.


Member Function Documentation

StringBuffer FileLogAccessor::getLog (  )  [virtual]

Return the log data.

Returns:
the log data as string

Implements LogAccessor.


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

Generated on Tue Dec 21 15:16:20 2010 for Funambol Outlook Plug-in Library by  doxygen 1.5.7.1