mermaid::support::io::CloseTask Class Reference

CloseTask class. More...

#include <CloseTask.hpp>

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

List of all members.

Public Member Functions

void cancelRepeat ()
 CloseTask (IOThread *ioThread, int fileDescriptor, bool writeEnabled, bool readEnabled)
 Constructor.
Time getScheduledTime ()
 Scheduled time getter.
bool hasRepeatScheduling ()
void incrementScheduledTimeForRepeat ()
bool isOkToRun ()
virtual void run ()
 Run the task.
virtual ~CloseTask ()
 Destructor.

Detailed Description

CloseTask class.

This is the task which closes a file descriptor

Author:
Joao Carreira

Definition at line 46 of file CloseTask.hpp.


Constructor & Destructor Documentation

CloseTask::CloseTask ( IOThread ioThread,
int  fileDescriptor,
bool  writeEnabled,
bool  readEnabled 
)

Constructor.

Parameters:
ioThread The IOThread instance which runs the tasks and holds the StreamHandler
fileDescriptor The file descriptor to be closed
writeEnabled Tells if there is a streamWriter to be erased
readEnabled Tells if there is a streamReader to be erased
Author:
Joao Carreira

Definition at line 35 of file CloseTask.cpp.

CloseTask::~CloseTask (  )  [virtual]

Destructor.

Author:
Joao Carreira

Definition at line 30 of file CloseTask.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 CloseTask::run (  )  [virtual]

Run the task.

Close the file descriptor

Author:
Joao Carreira

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

Definition at line 39 of file CloseTask.cpp.

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