VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtCommandSpecJob Class Reference

Awaitable result handle for an in-progress or completed command spec.

The HTTP thread receives a DtCommandSpecJobHandle via DtCommandSpecBuilder::buildCommandSpec(), then calls waitFor() to block until the spec is fully assembled.

A job that required no async data is returned already-complete so that waitFor() returns immediately.

Inheritance diagram for DtCommandSpecJob:
Inheritance graph
[legend]

Public Member Functions

 DtCommandSpecJob ()=default
 
virtual ~DtCommandSpecJob ()=default
 
 DtCommandSpecJob (const DtCommandSpecJob &)=delete
 
DtCommandSpecJob & operator= (const DtCommandSpecJob &)=delete
 
bool isComplete () const
 
bool waitFor (std::chrono::milliseconds timeout)
 
Json::Value result () const
 

Protected Attributes

std::mutex myMutex
 
std::condition_variable myCV
 
bool myReady = false
 
Json::Value myResult
 

Constructor & Destructor Documentation

DtCommandSpecJob::DtCommandSpecJob ( )
default
virtual DtCommandSpecJob::~DtCommandSpecJob ( )
virtualdefault
DtCommandSpecJob::DtCommandSpecJob ( const DtCommandSpecJob &  )
delete

Member Function Documentation

DtCommandSpecJob& DtCommandSpecJob::operator= ( const DtCommandSpecJob &  )
delete
bool DtCommandSpecJob::isComplete ( ) const

Returns true if the job has been resolved via DtCommandSpecJobBuilder::complete().

bool DtCommandSpecJob::waitFor ( std::chrono::milliseconds  timeout)

Blocks the calling thread until the job completes or timeout elapses.

Returns
true if the job completed within the timeout; false on timeout.
Json::Value DtCommandSpecJob::result ( ) const

Returns the resolved command spec JSON object. Only valid after isComplete() returns true.

Member Data Documentation

std::mutex DtCommandSpecJob::myMutex
mutableprotected
std::condition_variable DtCommandSpecJob::myCV
protected
bool DtCommandSpecJob::myReady = false
protected
Json::Value DtCommandSpecJob::myResult
protected

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

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)