|
VR-Engage
2.2
|
DtPlayerStationStateArgs provides a mechanism to pass information from one state to another during state transitions. It includes the source state name and an optional message containing additional data.
#include <playerStationState.h>
Public Member Functions | |
| DtPlayerStationStateArgs (const std::string &fromStateType, DtVreMessage *message=NULL) | |
| DtPlayerStationStateArgs (const std::string &fromStateType, std::shared_ptr< DtVreMessage > message) | |
| const std::string & | fromState () const |
| const DtVreMessage * | message () const |
| std::shared_ptr< DtVreMessage > | message_ptr () const |
Private Attributes | |
| std::string | myFromState |
| std::shared_ptr< DtVreMessage > | myMessage |
| makVre::DtPlayerStationStateArgs::DtPlayerStationStateArgs | ( | const std::string & | fromStateType, |
| DtVreMessage * | message = NULL ) |
Constructor with raw message pointer.
| fromStateType | Name of the source state |
| message | Optional pointer to a message with additional data |
Creates a state arguments object, taking ownership of the message if provided
References message().
| makVre::DtPlayerStationStateArgs::DtPlayerStationStateArgs | ( | const std::string & | fromStateType, |
| std::shared_ptr< DtVreMessage > | message ) |
Constructor with shared pointer to message.
| fromStateType | Name of the source state |
| message | Shared pointer to a message with additional data |
References message().
| const std::string & makVre::DtPlayerStationStateArgs::fromState | ( | ) | const |
Gets the name of the source state.
| const DtVreMessage * makVre::DtPlayerStationStateArgs::message | ( | ) | const |
Gets the message as a raw pointer.
Referenced by DtPlayerStationStateArgs(), and DtPlayerStationStateArgs().
| std::shared_ptr< DtVreMessage > makVre::DtPlayerStationStateArgs::message_ptr | ( | ) | const |
Gets the message as a shared pointer.
|
private |
Name of the source state.
|
private |
Shared pointer to the optional message.