![]() |
VR-Forces 4.1.1 Class Documentation
|
A class for keeping track of meta data for scripted tasks. More...
Public Member Functions | |
| DtScriptedTaskMetaData () | |
| default constructor | |
| virtual | ~DtScriptedTaskMetaData () |
| destructor | |
| DtScriptedTaskMetaData (const DtScriptedTaskMetaData &orig) | |
| copy constructor | |
| DtScriptedTaskMetaData & | operator= (const DtScriptedTaskMetaData &orig) |
| assignment operator | |
| virtual bool | load (const DtFilename &) |
| Load data from specified file. | |
| virtual bool | load (const std::string &) |
| Loads the object from the given xml string buffer. | |
| virtual bool | load (std::istream &) |
| Loads the object from the given stream. | |
| virtual bool | save (const DtFilename &) const |
| Save file to given location. | |
| virtual bool | save (std::string &) const |
| Saves the value to the given string buffer. | |
| virtual bool | save (std::ostream &) const |
| Saves the object to the given stream. | |
| virtual bool | save () const |
| Saves to the last loaded filename. If not loaded will not save. | |
| virtual const DtFilename & | filename () const |
| File where this was loaded from. | |
| virtual const std::string & | scriptId () const |
| Accessor for script id. | |
| virtual void | setScriptId (const std::string &) |
| Sets the script id. Use with care as this could effect related referencing items. | |
| virtual void | assignNewScriptId () |
| Assigns a new unique id to this meta data. | |
| virtual bool | supports (const DtEntityType &) const |
| Returns true if this script supports the specific entity type. | |
| bool | operator== (const DtScriptedTaskMetaData &) const |
| Equality operators. | |
| bool | operator!= (const DtScriptedTaskMetaData &rhs) const |
| virtual bool | encrypt (const std::string &source, std::string &dest) const |
| Return true if buffer was encrypted. | |
| virtual bool | encryptScript () |
| If there is an encryption routine, encrypt the script back into the myScript member. | |
| virtual bool | encryptSize (const std::string &source, int &size) const |
| Return the size of the encrypted buffer'. | |
| virtual bool | decrypt (const std::string &source, std::string &dest) const |
| Returns true if buffer successfully decrypted. | |
| virtual bool | decryptScript () |
| If the script is encrypted, decrypt into myScript. | |
| virtual void | setMenuText (const std::string &) |
| virtual const std::string & | menuText () const |
| virtual void | setToolTip (const std::string &) |
| virtual const std::string & | toolTip () const |
| virtual void | setMenuIcon (const std::string &) |
| virtual const std::string & | menuIcon () const |
| virtual void | setVersion (double) |
| virtual double | version () const |
| virtual void | setScriptEngine (const std::string &) |
| virtual const std::string & | scriptEngine () const |
| virtual void | setComments (const std::string &) |
| virtual const std::string & | comments () const |
| virtual void | setDescription (const std::string &) |
| virtual const std::string & | description () const |
| virtual void | setScriptLocation (const std::string &) |
| virtual const std::string & | scriptLocation () const |
| virtual void | setMenuLocations (const std::vector< std::string > &) |
| virtual void | addMenuLocation (const std::string &) |
| virtual void | removeMenuLocation (const std::string &) |
| virtual void | removeMenuLocation (int) |
| virtual const std::vector < std::string > & | menuLocations () const |
| virtual void | setShowInMenu (bool) |
| virtual bool | showInMenu () const |
| virtual void | setEntityTypes (const std::vector< DtEntityType > &) |
| virtual void | addEntityType (const DtEntityType &) |
| virtual void | removeEntityType (const DtEntityType &) |
| virtual void | removeEntityType (int) |
| virtual std::vector< DtEntityType > | entityTypes () const |
| virtual void | setVariables (const std::vector< DtScriptedTaskVariable > &) |
| virtual void | addVariable (const DtScriptedTaskVariable &) |
| virtual void | insertVariableBefore (const DtScriptedTaskVariable &, const std::string &variable) |
| virtual void | insertVariableBefore (const DtScriptedTaskVariable &, int i) |
| virtual void | removeVariable (const std::string &) |
| virtual void | removeVariable (int) |
| virtual std::vector < DtScriptedTaskVariable > | variables () const |
| virtual void | setScript (const std::string &) |
| virtual const std::string & | script () const |
| virtual bool | loadScript () |
| Loads the script from the location of this meta data file or from the file defined in scriptLocation. | |
| virtual bool | loadScript (const std::string &) |
| Loads the script from the specified file and replaces the existing script with it. | |
| virtual void | setIsSystemScript (bool) |
| virtual bool | isSystemScript () const |
| virtual void | setActionCategories (const std::set< std::string > &) |
| virtual void | addActionCategory (const std::string &) |
| virtual void | removeActionCategory (const std::string &) |
| virtual bool | hasActionCategory (const std::string &) const |
| virtual const std::set < std::string > & | actionCategories () const |
| virtual void | setDirectoryPath (const std::string &) |
| virtual const std::string & | directoryPath () const |
| virtual void | setEncrypted (bool) |
| virtual bool | encrypted () const |
Static Public Member Functions | |
| static void | setEncryptDecryptFunction (DtEncryptDecryptFcn, void *usr) |
| Sets encrypt/decrypt function. | |
| static void | getEncryptDecryptFunction (DtEncryptDecryptFcn &, void *&usr) |
Public Attributes | |
| std::string | myScriptId |
| std::string | myMenuText |
| std::string | myToolTip |
| std::string | myMenuIcon |
| std::string | myScriptEngine |
| std::string | myComments |
| std::string | myDescription |
| std::string | myScriptLocation |
| std::string | myScript |
| std::string | myDirectoryPath |
| std::vector< std::string > | myMenuLocations |
| std::vector< std::string > | myEntityTypes |
| std::vector< std::string > | myVariables |
| std::string | myActionCategories |
| bool | myShowInMenu |
| std::set< std::string > | myActionCategoriesSet |
| double | myVersion |
| DtFilename | myFile |
| bool | myIsSystemScript |
| bool | myEncrypted |
Static Public Attributes | |
| static DtEncryptDecryptFcn | theEncryptDecryptFunction |
| static void * | theEncryptDecryptUserData |
Protected Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
| When the class Archive corresponds to an output archive, the & operator is defined similar to <<. | |
Friends | |
| class | boost::serialization::access |
| Serialization/Deserialization //. | |
A class for keeping track of meta data for scripted tasks.
The information is currently stored in an XML format
| DtScriptedTaskMetaData::DtScriptedTaskMetaData | ( | ) |
default constructor
|
virtual |
destructor
| DtScriptedTaskMetaData::DtScriptedTaskMetaData | ( | const DtScriptedTaskMetaData & | orig | ) |
copy constructor
| DtScriptedTaskMetaData& DtScriptedTaskMetaData::operator= | ( | const DtScriptedTaskMetaData & | orig | ) |
assignment operator
|
virtual |
Load data from specified file.
|
virtual |
Loads the object from the given xml string buffer.
|
virtual |
Loads the object from the given stream.
|
virtual |
Save file to given location.
If no previously loaded filename will set filename to the supplied name
|
virtual |
Saves the value to the given string buffer.
|
virtual |
Saves the object to the given stream.
|
virtual |
Saves to the last loaded filename. If not loaded will not save.
|
virtual |
File where this was loaded from.
If saved to a different file will not change the location
|
virtual |
Accessor for script id.
Set as part of the constructor and assigned in the copy/equivalence operator
|
virtual |
Sets the script id. Use with care as this could effect related referencing items.
|
virtual |
Accessor for menu text. This is the name that will appear on menus
|
virtual |
Accessor for menu text. This is the name that will appear on menus
|
virtual |
Accessors for menu tool-tip
|
virtual |
Accessors for menu tool-tip
|
virtual |
Accessors for menu icon
|
virtual |
Accessors for menu icon
|
virtual |
Accessors for version. When the task is sent to the back-end for processing, the version will be packaged as part of the variables available for the task
|
virtual |
Accessors for version. When the task is sent to the back-end for processing, the version will be packaged as part of the variables available for the task
|
virtual |
Accessor for script engine to use when evaluating script. Default is LUA
|
virtual |
Accessor for script engine to use when evaluating script. Default is LUA
|
virtual |
Accessor for comments that can be used to describe this task. Will not be displayed to the user
|
virtual |
Accessor for comments that can be used to describe this task. Will not be displayed to the user
|
virtual |
Accessor for comments that can be used to describe this task. Will be displayed to the user on the task data entry form
|
virtual |
Accessor for comments that can be used to describe this task. Will be displayed to the user on the task data entry form
|
virtual |
Location where to find the script file to execute. If blank (default) assumes same location as meta-data file
|
virtual |
Location where to find the script file to execute. If blank (default) assumes same location as meta-data file
|
virtual |
Accessor for locations where on the task menu this script should show up. Currently assumed to only be on task menu
|
virtual |
Accessor for locations where on the task menu this script should show up. Currently assumed to only be on task menu
|
virtual |
Accessor for locations where on the task menu this script should show up. Currently assumed to only be on task menu
|
virtual |
Accessor for locations where on the task menu this script should show up. Currently assumed to only be on task menu
|
virtual |
Accessor for locations where on the task menu this script should show up. Currently assumed to only be on task menu
|
virtual |
Accessor for locations where on the task menu this script should show up. Currently assumed to only be on task menu
|
virtual |
Accessor for locations where on the task menu this script should show up. Currently assumed to only be on task menu
|
virtual |
Accessor for entity types that this task is valid for. An empty list will make the assumption it is valid for all entity types (default)
|
virtual |
Accessor for entity types that this task is valid for. An empty list will make the assumption it is valid for all entity types (default)
|
virtual |
Accessor for entity types that this task is valid for. An empty list will make the assumption it is valid for all entity types (default)
|
virtual |
Accessor for entity types that this task is valid for. An empty list will make the assumption it is valid for all entity types (default)
|
virtual |
Accessor for entity types that this task is valid for. An empty list will make the assumption it is valid for all entity types (default)
|
virtual |
Accessor for the variables that are part of this scripted task. The variables will be referenced by their bound name. The order in which they appear in the UI will be the order in which they appear in the variables list
|
virtual |
Accessor for the variables that are part of this scripted task. The variables will be referenced by their bound name. The order in which they appear in the UI will be the order in which they appear in the variables list
|
virtual |
Accessor for the variables that are part of this scripted task. The variables will be referenced by their bound name. The order in which they appear in the UI will be the order in which they appear in the variables list
|
virtual |
Accessor for the variables that are part of this scripted task. The variables will be referenced by their bound name. The order in which they appear in the UI will be the order in which they appear in the variables list
|
virtual |
Accessor for the variables that are part of this scripted task. The variables will be referenced by their bound name. The order in which they appear in the UI will be the order in which they appear in the variables list
|
virtual |
Accessor for the variables that are part of this scripted task. The variables will be referenced by their bound name. The order in which they appear in the UI will be the order in which they appear in the variables list
|
virtual |
Accessor for the variables that are part of this scripted task. The variables will be referenced by their bound name. The order in which they appear in the UI will be the order in which they appear in the variables list
|
virtual |
The actual script code loaded from disk or saved with the meta data
|
virtual |
The actual script code loaded from disk or saved with the meta data
|
virtual |
Loads the script from the location of this meta data file or from the file defined in scriptLocation.
|
virtual |
Loads the script from the specified file and replaces the existing script with it.
|
virtual |
Accessor for whether or not this is a system vs. scenario level script
|
virtual |
The actual script code loaded from disk or saved with the meta data
|
virtual |
Keeps list of action categories that this script is part of
|
virtual |
Keeps list of action categories that this script is part of
|
virtual |
Keeps list of action categories that this script is part of
|
virtual |
Keeps list of action categories that this script is part of
|
virtual |
Keeps list of action categories that this script is part of
|
virtual |
Accessor for the directory location. The directory location is a path separated by the / marker. A blank directory path means this script is a top-level script.
|
virtual |
Accessor for the directory location. The directory location is a path separated by the / marker. A blank directory path means this script is a top-level script.
|
virtual |
Assigns a new unique id to this meta data.
|
virtual |
Returns true if this script supports the specific entity type.
| bool DtScriptedTaskMetaData::operator== | ( | const DtScriptedTaskMetaData & | ) | const |
Equality operators.
|
inline |
|
static |
Sets encrypt/decrypt function.
|
static |
|
virtual |
Return true if buffer was encrypted.
|
virtual |
If there is an encryption routine, encrypt the script back into the myScript member.
|
virtual |
Return the size of the encrypted buffer'.
|
virtual |
Returns true if buffer successfully decrypted.
|
virtual |
If the script is encrypted, decrypt into myScript.
Note that calling decryptScript on a script that is already decrypted will have unexpected results
|
virtual |
Sets/gets whether or not buffer should be encrypted/decrypted. If there is an encrypt/decrypt function set that will be used when saving the scripted task to a scenario to determine if the buffer should be encrypted. If a system script, set as to whether or not the file on disk is encrypted
|
virtual |
Sets/gets whether or not buffer should be encrypted/decrypted. If there is an encrypt/decrypt function set that will be used when saving the scripted task to a scenario to determine if the buffer should be encrypted. If a system script, set as to whether or not the file on disk is encrypted
|
inlineprotected |
When the class Archive corresponds to an output archive, the & operator is defined similar to <<.
Likewise, when the class Archive is a type of input archive the & operator is defined similar to >>.
|
friend |
Serialization/Deserialization //.
| std::string DtScriptedTaskMetaData::myScriptId |
| std::string DtScriptedTaskMetaData::myMenuText |
| std::string DtScriptedTaskMetaData::myToolTip |
| std::string DtScriptedTaskMetaData::myMenuIcon |
| std::string DtScriptedTaskMetaData::myScriptEngine |
| std::string DtScriptedTaskMetaData::myComments |
| std::string DtScriptedTaskMetaData::myDescription |
| std::string DtScriptedTaskMetaData::myScriptLocation |
|
mutable |
| std::string DtScriptedTaskMetaData::myDirectoryPath |
| std::vector<std::string> DtScriptedTaskMetaData::myMenuLocations |
| std::vector<std::string> DtScriptedTaskMetaData::myEntityTypes |
| std::vector<std::string> DtScriptedTaskMetaData::myVariables |
| std::string DtScriptedTaskMetaData::myActionCategories |
| bool DtScriptedTaskMetaData::myShowInMenu |
|
mutable |
| double DtScriptedTaskMetaData::myVersion |
|
mutable |
| bool DtScriptedTaskMetaData::myIsSystemScript |
|
mutable |
|
static |
|
static |