X-Plane Remote Access Plugin and Client Library
Public Member Functions | Private Attributes | List of all members
xplra::TaskRequest Class Reference

#include <TaskRequest.h>

Inheritance diagram for xplra::TaskRequest:
xplra::Request

Public Member Functions

 TaskRequest (Task *task)
 
virtual ~TaskRequest ()
 
virtual void execute ()
 
- Public Member Functions inherited from xplra::Request
 Request ()
 
virtual ~Request ()
 

Private Attributes

Tasktask
 

Additional Inherited Members

Detailed Description

A request the performs a task.

Definition at line 46 of file TaskRequest.h.

Constructor & Destructor Documentation

◆ TaskRequest()

xplra::TaskRequest::TaskRequest ( Task task)
inline

Construct the request for the given task. The task will become owned by the request, so it will be deleted when the task is deleted.

Definition at line 78 of file TaskRequest.h.

◆ ~TaskRequest()

xplra::TaskRequest::~TaskRequest ( )
inlinevirtual

Destroy the task request.

Definition at line 85 of file TaskRequest.h.

Member Function Documentation

◆ execute()

void TaskRequest::execute ( )
virtual

Execute the request by performing the task.

Implements xplra::Request.

Definition at line 39 of file TaskRequest.cc.

Member Data Documentation

◆ task

Task* xplra::TaskRequest::task
private

The task belonging to the request. It is owned by the request, i.e. deleted when the request is deleted.

Definition at line 53 of file TaskRequest.h.


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