X-Plane Remote Access Plugin and Client Library
|
#include <MultiTaskRequest.h>
Public Member Functions | |
virtual | ~MultiTaskRequest () |
void | addTask (Task *task) |
size_t | getNumTasks () const |
Task * | getTask (size_t index) const |
Public Member Functions inherited from xplra::Request | |
Request () | |
virtual | ~Request () |
Protected Member Functions | |
virtual void | execute () |
Private Types | |
typedef std::vector< Task * > | tasks_t |
Private Attributes | |
tasks_t | tasks |
A request containing several tasks which it performs one-by-one when executing the request. It owns the tasks, which get deleted when the request object is deleted.
Definition at line 54 of file MultiTaskRequest.h.
|
private |
Type for the vector of the tasks.
Definition at line 60 of file MultiTaskRequest.h.
|
virtual |
Destroy the request by deleting the tasks.
Definition at line 45 of file MultiTaskRequest.cc.
|
inline |
Add a task to the request.
Definition at line 121 of file MultiTaskRequest.h.
|
protectedvirtual |
Perform the tasks one-by-one.
Implements xplra::Request.
Definition at line 54 of file MultiTaskRequest.cc.
|
inline |
Get the number of tasks.
Definition at line 128 of file MultiTaskRequest.h.
|
inline |
Get the task at the given index.
Definition at line 135 of file MultiTaskRequest.h.
|
private |
The tasks.
Definition at line 65 of file MultiTaskRequest.h.