Public Member Functions | |
virtual void | cleanupHook () |
virtual bool | configureHook () |
virtual bool | startHook () |
TestFileDescriptor (std::string name) | |
virtual void | updateHook () |
virtual | ~TestFileDescriptor () |
Public Attributes | |
int | countError |
int | countRead |
int | countTimeout |
int | countUpdate |
int | fd [2] |
Definition at line 39 of file taskthread_fd_test.cpp.
TestFileDescriptor::TestFileDescriptor | ( | std::string | name | ) | [inline] |
Definition at line 42 of file taskthread_fd_test.cpp.
virtual TestFileDescriptor::~TestFileDescriptor | ( | ) | [inline, virtual] |
Definition at line 52 of file taskthread_fd_test.cpp.
virtual void TestFileDescriptor::cleanupHook | ( | ) | [inline, virtual] |
Implement this method such that it contains the code which will be executed when cleanup() is called. The default implementation is an empty function.
Reimplemented from RTT::base::TaskCore.
Definition at line 112 of file taskthread_fd_test.cpp.
virtual bool TestFileDescriptor::configureHook | ( | ) | [inline, virtual] |
Implement this method such that it contains the code which will be executed when configure() is called. The default implementation is an empty function which returns true.
true | to indicate that configuration succeeded and the Stopped state may be entered. |
false | to indicate that configuration failed and the Preoperational state is entered. |
Reimplemented from RTT::base::TaskCore.
Definition at line 56 of file taskthread_fd_test.cpp.
virtual bool TestFileDescriptor::startHook | ( | ) | [inline, virtual] |
Implement this method such that it contains the code which will be executed when start() is called. The default implementation is an empty function which returns true.
true | to indicate that the component may run and the Running state may be entered. |
false | to indicate that the component may not run and the Stopped state is entered. |
Reimplemented from RTT::base::TaskCore.
Definition at line 72 of file taskthread_fd_test.cpp.
virtual void TestFileDescriptor::updateHook | ( | ) | [inline, virtual] |
Function where the user must insert his 'application' code. When the ExecutionEngine's Activity is a periodic, this function is called by the ExecutionEngine in each periodic step after all messages are processed. When it is executed by a non periodic activity, this function is called after a message is received and executed. It should not loop forever, since no commands or events are processed when this function executes. The default implementation is an empty function.
Reimplemented from RTT::base::TaskCore.
Definition at line 81 of file taskthread_fd_test.cpp.
Definition at line 119 of file taskthread_fd_test.cpp.
Definition at line 121 of file taskthread_fd_test.cpp.
Definition at line 120 of file taskthread_fd_test.cpp.
Definition at line 122 of file taskthread_fd_test.cpp.
int TestFileDescriptor::fd[2] |
Definition at line 123 of file taskthread_fd_test.cpp.