![]() |
VR-Forces 5.0.1 Developer's Guide
|
The DtScriptedTaskTask will encapsulate the variables defined by a scripted task in the variable bindings object. The variable bindings will contain the variable name, the type of object and the variables value. This class will also contain the script id of the script that should be run with these values.
Minimal set of items a scripted task (or set) must implement to be considered a scripted task/set

Classes | |
| struct | identity |
| class | ScriptedTaskFormatter |
Public Member Functions | |
| DtScriptedTask () | |
| virtual | ~DtScriptedTask () |
| virtual bool | init ()=0 |
| virtual const DtString & | scriptId () const =0 |
| virtual void | setScriptId (const DtString &)=0 |
| virtual DtRwVariableBindings & | variables ()=0 |
| virtual const DtRwVariableBindings & | variables () const =0 |
| virtual DtRwVariableBindings & | variableDataTypes ()=0 |
| virtual const DtRwVariableBindings & | variableDataTypes () const =0 |
| virtual DtString | allVariablesStringRep (const DtString &scriptName="") const =0 |
| virtual void | setValue (const DtString &variableName, bool, const char *type=DtScriptedTaskCheckBoxVariable) |
| virtual void | setValue (const DtString &variableName, int, const char *type=DtScriptedTaskIntegerVariable) |
| virtual void | setValue (const DtString &variableName, double, const char *type=DtScriptedTaskDoubleVariable) |
| virtual void | setValue (const DtString &variableName, const std::string &, const char *type=DtScriptedTaskStringVariable) |
| virtual void | setValue (const DtString &variableName, const DtString &, const char *type=DtScriptedTaskStringVariable) |
| virtual void | setValue (const DtString &variableName, const char *, const char *type=DtScriptedTaskStringVariable) |
| virtual void | setValue (const DtString &variableName, const DtUUID &, const char *type=DtScriptedTaskSimulationObjectVariable) |
| virtual void | setValue (const DtString &variableName, const DtVector &, const char *type=DtScriptedTaskLocationVariable) |
| virtual void | setValue (const DtString &variableName, const DtEntityType &, const char *type=DtScriptedTaskEntityTypeVariable) |
| virtual void | setValue (const DtString &variableName, const DtTaitBryan &, const char *type=DtScriptedTaskOrientationVariable) |
| virtual void | setValue (const DtString &variableName, const DtRwOffsetVectorList &) |
| virtual void | setValue (const DtString &variableName, const DtRwVectorList &) |
| virtual void | setValue (const DtString &variableName, const std::vector< DtUUID > &) |
| virtual void | setValue (const DtString &variableName, const std::vector< DtVector > &) |
| virtual void | setValue (const DtString &variableName, const std::map< DtString, int > &) |
| virtual void | setValue (const DtString &variableName, const std::map< DtString, double > &) |
| virtual void | setValue (const DtString &variableName, const std::map< DtString, DtString > &) |
| virtual void | setLocation (const DtString &variableName, const DtVector &) |
| virtual void | setLocationWithoutAltitude (const DtString &variableName, const DtVector &) |
| virtual void | setOffset (const DtString &variableName, const DtRwOffsetVector &) |
| virtual void | setTime (const DtString &variableName, double) |
| virtual void | setDateTime (const DtString &variableName, double) |
| virtual void | setRange (const DtString &variableName, double) |
| virtual void | setAltitude (const DtString &variableName, double) |
| virtual void | setHeading (const DtString &variableName, double) |
| virtual void | setPitch (const DtString &variableName, double) |
| virtual void | setValue (const DtString &variableName, const DtReaderWriter &, const char *scriptedTaskType) |
| template<typename RWValue , typename AssignType > | |
| void | setValue (const DtString &variableName, AssignType value, const char *type) |
| template<typename T > | |
| boost::optional< T > | getValue (const DtString &variableName) const |
| virtual const DtReaderWriter * | getValueRW (const DtString &name) const |
| virtual DtReaderWriter * | getValueRW (const DtString &name) |
| virtual int | netRepSize () const =0 |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize)=0 |
| virtual char * | setToNet (char *)=0 |
Static Public Member Functions | |
| static void | setScriptedTaskFormatter (ScriptedTaskFormatter *) |
| static ScriptedTaskFormatter * | scriptedTaskFormatter () |
Static Protected Attributes | |
| static ScriptedTaskFormatter * | theScriptedTaskFormatter |
Private Member Functions | |
| template<typename RWValue , typename AssignType > | |
| void | setValue (const DtString &variableName, AssignType value, const char *type, identity< RWValue >, identity< AssignType >) |
| void | setValue (const DtString &variableName, std::map< DtString, DtString > value, const char *type, identity< DtRwStringAttributeList >, identity< std::map< DtString, DtString > >) |
|
inline |
|
inlinevirtual |
|
pure virtual |
Initializer.
Implemented in DtScriptedTaskTemplate< T >, DtScriptedTaskTemplate< DtSimTask >, and DtScriptedTaskTemplate< DtSetDataRequest >.
|
pure virtual |
Script id.
Implemented in DtScriptedTaskTemplate< T >, DtScriptedTaskTemplate< DtSimTask >, and DtScriptedTaskTemplate< DtSetDataRequest >.
|
pure virtual |
|
pure virtual |
Access to variables.
Implemented in DtScriptedTaskTemplate< T >, DtScriptedTaskTemplate< DtSimTask >, and DtScriptedTaskTemplate< DtSetDataRequest >.
|
pure virtual |
|
pure virtual |
Access to the data types that represent the variables. This is the internal scripted task data type separate from the rw type.
Implemented in DtScriptedTaskTemplate< T >, DtScriptedTaskTemplate< DtSimTask >, and DtScriptedTaskTemplate< DtSetDataRequest >.
|
pure virtual |
|
pure virtual |
Network transfer.
Returns the size of the full network representation (control object name included) padded to an 8-byte boundary.
Implemented in DtScriptedTaskTemplate< T >, DtScriptedTaskTemplate< DtSimTask >, and DtScriptedTaskTemplate< DtSetDataRequest >.
|
pure virtual |
Fills in the task from the network buffer.
Implemented in DtScriptedTaskTemplate< T >, DtScriptedTaskTemplate< DtSimTask >, and DtScriptedTaskTemplate< DtSetDataRequest >.
Network transfer.
Returns the size of the full network representation (control object name included) padded to an 8-byte boundary.
Implemented in DtScriptedTaskTemplate< T >, DtScriptedTaskTemplate< DtSimTask >, and DtScriptedTaskTemplate< DtSetDataRequest >.
|
static |
|
static |
|
virtual |
{@ Convenience methods that will allow for the adding and retrieving values that are valid for this scripted task
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Since there are multiple types that take a vector, overload with different types that will be set.
|
virtual |
|
virtual |
|
virtual |
The reader/writer value will be cloned and added to the variables with the given variable name and the scripted task variable type (see vrfScriptedTaskConstants.h)
|
inline |
General template assignment that will create a new instance of a reader/writer and assign a value to it.
|
inlineprivate |
Linux does not allow specialization of member functions within the same class, so to overcome this setValue calls a private version of the function with arguments set to the template types in order to specialize the function. See: https://stackoverflow.com/questions/3052579/explicit-specialization-in-non-namespace-scope.
|
inlineprivate |
References DtRwStringAttributeList::setFromMap().
|
inline |
|
virtual |
Returns the base reader/writer value.
|
virtual |
|
staticprotected |