VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
embarkationSlotInformationCommandSpecParam.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  ******************************************************************************/
5 
6 #pragma once
7 
8 #include "commandSpecJob.h"
9 #include <atomic>
10 #include <json/json.h>
11 #include <boost/signals2/connection.hpp>
13 
14 class DtScenarioManager;
15 
26 {
27 public:
28  explicit DtEmbarkationSlotInformationCommandSpecParamBuilder(const Json::Value& staticParams, const std::string& entityName, DtScenarioManager& scnMgr, const Json::Value& typeModifiers);
30 
31 protected:
34  bool addChoiceOptions();
35 
36  void requestData();
37 
38  virtual bool isReady() const override { return myReady; }
39  virtual Json::Value result() const override { return myResult; }
40 
41 private:
44  std::atomic<bool> myReady;
46  boost::signals2::connection myConnection;
48 };
UUID is a unique ID wrapper class.
Definition: uuid.h:59
Definition: scenarioManager.h:40
boost::signals2::connection myConnection
Definition: embarkationSlotInformationCommandSpecParam.h:46
virtual Json::Value result() const override
Returns the fully populated JSON descriptor for this parameter. Only valid after isReady() returns tr...
Definition: embarkationSlotInformationCommandSpecParam.h:39
DtEmbarkationSlotInformationCommandSpecParamBuilder.
Definition: embarkationSlotInformationCommandSpecParam.h:25
Awaitable result handle for asynchronous command spec building.
The class that is the interface between the remote controller and the back-end.
Definition: remoteControlEmbarkationSlotInformationRequestor.h:30
IMGUI_API void Value(const char *prefix, bool b)
Json::Value myResult
Definition: embarkationSlotInformationCommandSpecParam.h:42
Abstract base for a single-parameter command spec builder.
Definition: commandSpecParamBuilder.h:25
std::atomic< bool > myReady
Definition: embarkationSlotInformationCommandSpecParam.h:44
bool addChoiceOptions()
If the requestor has options for this entity, add them to the result. Returns true if choices were po...
DtRemoteControlEmbarkationSlotInformationRequestor & myEmbarkationRequestor
Definition: embarkationSlotInformationCommandSpecParam.h:45
Json::Value myTypeModifiers
Definition: embarkationSlotInformationCommandSpecParam.h:47
DtEmbarkationSlotInformationCommandSpecParamBuilder(const Json::Value &staticParams, const std::string &entityName, DtScenarioManager &scnMgr, const Json::Value &typeModifiers)
virtual bool isReady() const override
Returns true once result() can be safely called.
Definition: embarkationSlotInformationCommandSpecParam.h:38
DtUUID myEntityUuid
Definition: embarkationSlotInformationCommandSpecParam.h:43

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)