![]() |
VR-Forces Developer's Guide
|
DtEmbarkationSlotInformationCommandSpecParamBuilder.
NOTE: stub only - this will require an async callback to the parent dropdown, which is currently not supported. This is dependent on the external entity, not itself!
Asynchronous DtCommandSpecParamBuilder that populates the Choices array for a embarkation parameter. It requests embarkation system data from the DtRemoteControlEmbarkationSlotInformationRequestor and signals readiness once the data has been received (or immediately when it is already cached). Provides slot info, type and status

Public Member Functions | |
| DtEmbarkationSlotInformationCommandSpecParamBuilder (const Json::Value &staticParams, const std::string &entityName, DtScenarioManager &scnMgr, const Json::Value &typeModifiers) | |
| ~DtEmbarkationSlotInformationCommandSpecParamBuilder () | |
Public Member Functions inherited from DtCommandSpecParamBuilder | |
| DtCommandSpecParamBuilder ()=default | |
| virtual | ~DtCommandSpecParamBuilder ()=default |
| virtual bool | isEntitySpecific () const |
Protected Member Functions | |
| bool | addChoiceOptions () |
| void | requestData () |
| virtual bool | isReady () const override |
| virtual Json::Value | result () const override |
Private Attributes | |
| Json::Value | myResult |
| DtUUID | myEntityUuid |
| std::atomic< bool > | myReady |
| DtRemoteControlEmbarkationSlotInformationRequestor & | myEmbarkationRequestor |
| boost::signals2::connection | myConnection |
| Json::Value | myTypeModifiers |
|
explicit |
| DtEmbarkationSlotInformationCommandSpecParamBuilder::~DtEmbarkationSlotInformationCommandSpecParamBuilder | ( | ) |
|
protected |
If the requestor has options for this entity, add them to the result. Returns true if choices were populated, false if data was not yet available.
|
protected |
|
inlineoverrideprotectedvirtual |
Returns true once result() can be safely called.
Implements DtCommandSpecParamBuilder.
References myReady.
|
inlineoverrideprotectedvirtual |
Returns the fully populated JSON descriptor for this parameter. Only valid after isReady() returns true.
Implements DtCommandSpecParamBuilder.
References myResult.
|
private |
Referenced by result().
|
private |
|
private |
Referenced by isReady().
|
private |
|
private |
|
private |