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

#include <MessageRequest.h>

Inheritance diagram for xplra::MessageRequest:
xplra::Request

Public Member Functions

 MessageRequest (MessageWindow &messageWindow, const std::string &message, float duration)
 
- Public Member Functions inherited from xplra::Request
 Request ()
 
virtual ~Request ()
 

Protected Member Functions

virtual void execute ()
 

Private Attributes

MessageWindowmessageWindow
 
std::string message
 
float duration
 

Detailed Description

A request that sets up a new message to be displayed in the message window.

Definition at line 50 of file MessageRequest.h.

Constructor & Destructor Documentation

◆ MessageRequest()

xplra::MessageRequest::MessageRequest ( MessageWindow messageWindow,
const std::string &  message,
float  duration 
)
inline

Construct the request.

Definition at line 86 of file MessageRequest.h.

Member Function Documentation

◆ execute()

void MessageRequest::execute ( )
protectedvirtual

Execute the request by

Implements xplra::Request.

Definition at line 41 of file MessageRequest.cc.

Member Data Documentation

◆ duration

float xplra::MessageRequest::duration
private

The duration.

Definition at line 66 of file MessageRequest.h.

◆ message

std::string xplra::MessageRequest::message
private

The message.

Definition at line 61 of file MessageRequest.h.

◆ messageWindow

MessageWindow& xplra::MessageRequest::messageWindow
private

The message window to use.

Definition at line 56 of file MessageRequest.h.


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