mermaid::support::io::WriteTask Class Reference

WriteTask class. More...

#include <WriteTask.hpp>

Inheritance diagram for mermaid::support::io::WriteTask:
Inheritance graph
[legend]
Collaboration diagram for mermaid::support::io::WriteTask:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void cancelRepeat ()
Time getScheduledTime ()
 Scheduled time getter.
bool hasRepeatScheduling ()
void incrementScheduledTimeForRepeat ()
bool isOkToRun ()
virtual void run ()
 Run the task.
 WriteTask (IOThread *ioThread, int fileDescriptor, size_t bytesToWrite, const char *const data, shared_ptr< StreamOperationHandlerMethodBase > streamOperationHandlerWrite)
 Constructor.
virtual ~WriteTask ()
 Destructor.

Detailed Description

WriteTask class.

This is the task which does a write operation in a specific StreamWriter

Author:
Joao Carreira

Definition at line 46 of file WriteTask.hpp.


Constructor & Destructor Documentation

WriteTask::WriteTask ( IOThread ioThread,
int  fileDescriptor,
size_t  bytesToWrite,
const char *const  data,
shared_ptr< StreamOperationHandlerMethodBase streamOperationHandlerWrite 
)

Constructor.

Parameters:
ioThread The IOThread instance which runs the tasks and holds the StreamHandler
fileDescriptor The file descriptor on which the write will be done
bytesToWrite The number of bytes to write
data The data which will be written
Author:
Joao Carreira

Definition at line 37 of file WriteTask.cpp.

WriteTask::~WriteTask (  )  [virtual]

Destructor.

Author:
Joao Carreira

Definition at line 32 of file WriteTask.cpp.


Member Function Documentation

Time Task::getScheduledTime (  )  [inherited]

Scheduled time getter.

Returns:
Time that Task is scheduled to run
Author:
Marco Barbosa + Nelson Ramos

Definition at line 67 of file Task.cpp.

void WriteTask::run (  )  [virtual]

Run the task.

Writes data to a file descriptor

Author:
Joao Carreira

Reimplemented from mermaid::support::activeobject::Task.

Definition at line 43 of file WriteTask.cpp.

Generated on Fri Mar 4 22:15:48 2011 for MeRMaID::support by  doxygen 1.6.3