![]() |
VR-Forces Developer's Guide
|
Extends DtCommandSpecJob with the ability to resolve the job.
DtCommandSpecBuilder creates instances of this subclass, calls complete() to resolve them (possibly from the VRF tick thread), and returns the result as a DtCommandSpecJobHandle so callers see only the read-only interface.

Public Member Functions | |
| DtCommandSpecJobBuilder (Json::Value initialResult) | |
| DtCommandSpecJobBuilder (Json::Value initialResult, std::list< std::unique_ptr< DtCommandSpecParamBuilder >> paramBuilders) | |
| DtCommandSpecJobBuilder ()=default | |
| virtual | ~DtCommandSpecJobBuilder () override=default |
| DtCommandSpecJobBuilder (const DtCommandSpecJobBuilder &)=delete | |
| DtCommandSpecJobBuilder & | operator= (const DtCommandSpecJobBuilder &)=delete |
| void | complete () |
| void | update () |
Public Member Functions inherited from DtCommandSpecJob | |
| 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::list< std::unique_ptr < DtCommandSpecParamBuilder > > | myParamBuilders |
Protected Attributes inherited from DtCommandSpecJob | |
| std::mutex | myMutex |
| std::condition_variable | myCV |
| bool | myReady = false |
| Json::Value | myResult |
| DtCommandSpecJobBuilder::DtCommandSpecJobBuilder | ( | Json::Value | initialResult | ) |
| DtCommandSpecJobBuilder::DtCommandSpecJobBuilder | ( | Json::Value | initialResult, |
| std::list< std::unique_ptr< DtCommandSpecParamBuilder >> | paramBuilders | ||
| ) |
|
default |
|
overridevirtualdefault |
|
delete |
|
delete |
| void DtCommandSpecJobBuilder::complete | ( | ) |
Resolves the job with the completed spec and wakes all waiters. Safe to call from any thread.
| void DtCommandSpecJobBuilder::update | ( | ) |
|
protected |