VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
makVrf::DtVrfScriptedTaskManager Class Reference

The Master DtVrfScriptedTaskManager. More...

Inheritance diagram for makVrf::DtVrfScriptedTaskManager:
Inheritance graph
[legend]

Classes

struct  PreservedScript
struct  ScenarioSystemPair
struct  ScriptedTaskDialogInformation

Public Types

typedef std::map< int,
makVrv::DtUnicode
ScriptedTaskTypeNames
typedef std::map< bool,
std::string > 
IconType
typedef std::map< int,
std::string > 
DoctrinesByForce
typedef std::map< int,
ScriptedTaskDialogInformation
ScriptedTaskTypeInformation
typedef std::map< std::string,
ScenarioSystemPair
ScriptedTasks
typedef std::pair< std::string,
bool
ActionCategory
typedef std::set< std::string > Doctrines
typedef std::map< std::string,
ActionCategory
ActionCategories
typedef std::map< std::string,
PreservedScript
PreservedScripts

Public Member Functions

 DtVrfScriptedTaskManager (makVrv::DtDe &)
virtual ~DtVrfScriptedTaskManager ()
virtual void clear (bool andSetting=true, bool reset=true, bool signal=true)
 Clears out scripted tasks.
virtual void removeScriptedTaskMetaData (const std::string &scriptedTaskId, bool signal=true)
 Removes a scripted task.
virtual DtScriptedTaskMetaData scriptedTaskMetaData (const std::string &scriptId, bool system) const
 Returns the scripted task meta data given the unique id.
virtual DtScriptedTaskMetaData scriptedTaskMetaData (const std::string &scriptId) const
 Return scenario script first, if exists, and, if not, system.
virtual void addScriptedTaskMetaDataToScenario (const DtScriptedTaskMetaData &, bool addScript=false)
 Adds a scripted task meta data.
virtual void duplicateScriptedTaskMetaDataToScenario (const DtScriptedTaskMetaData &, const std::string &sourceId)
 Adds the scripted task meta data to the scenario scripts and copied the script of the source id to the newly created scripts.
virtual void updateScriptedTaskMetaDataToScenario (const DtScriptedTaskMetaData &, const std::string &originalId="")
 Requests to update the scripted task data on the server.
virtual void deleteScriptedTaskMetaData (const std::string &)
 Requests to remove the scripted task data on the server.
virtual void addScriptedTaskMetaData (const DtScriptedTaskMetaData &, bool signal=true)
 Adds a scripted task meta data locally. If signal is true signal that addition.
virtual void requestScriptedTasks ()
 Requests the currently available scripted task meta data.
virtual bool isSystemScript (const std::string &) const
 Returns true if the id is a system script.
virtual bool appearsOnMenu (const std::string &) const
 Returns true if script appears on a menu.
virtual bool appearsOnToolbar (const std::string &) const
 Returns true if script appears on a toolbar.
virtual bool systemScriptAvailable (const std::string &) const
 Returns true if system script is available for task menu.
virtual void setSystemScriptAvailable (const std::string &id, bool)
 Set whether or not system script is available. Will emit signal if value changes.
virtual void removeSystemScript (const std::string &id, bool signal=true)
 Removes script.
virtual const ScriptedTasksscriptedTaskMetaData () const
 Returns all scripted tasks.
virtual bool hasScriptedTaskMetaData (const std::string &) const
 Returns true if the scripted task is present in the system.
virtual bool hasScenarioScriptedTaskMetaData (const std::string &) const
virtual bool hasSystemScriptedTaskMetaData (const std::string &) const
virtual bool hasDoctrine (const std::string &) const
 Returns true if the doctrine is present.
virtual std::string uniqueScriptIdFrom (const std::string &, std::set< std::string > additionalToCheck=std::set< std::string >()) const
 Returns a unique script id with the supplied script id as a base.
virtual void makeSystemScript (const std::string &)
 Tells the back-ends to make the provided script a system script.
virtual void assignScriptError (const std::string &scriptId, const std::string &error)
 Assigns error to script and signals that a script error has occured.
virtual void clearScriptError (const std::string &scriptId)
 Clears out that there is a script error and signals the all clear.
virtual bool scriptHasError (const std::string &scriptId, std::string *error=0) const
 Returns true if the script has an error.
virtual bool scriptIsModified (const std::string &scriptId) const
 Sets the fact that the script has been modified and not yet saved to the scenario.
virtual void setScriptModified (const std::string &scriptId, bool)
 Sets the fact that the script is modified.
virtual void clearModifiedScripts ()
 Clears out all modified statuses.
virtual void setScript (const std::string &scriptId, const std::string &script, bool setAsModified=true)
 Sets the script in case users decide to update modified scripts to a rewound scenario.
virtual bool hasModifiedScripts () const
 Returns true if there are any modified scripts.
virtual void preserveModifiedScripts ()
 Preserves scripts for possible restore. The restored script list will be cleared when complete.
virtual void restorePreservedScripts ()
 If any scripts are preserved restores them and then class clearModifiedScripts()
virtual int mapScriptIdToAction (const std::string &scriptId)
 Returns a script id to menu id mapping. If mapping does not exist creates one and puts it in the map.
virtual void unmapScriptId (const std::string &)
 Unmaps a script id to action id.
virtual void setMonitorFrameRates (const std::string &scriptId, bool monitor)
 Sets whether or not to monitor frame rates. If script id is blank will apply to all scripts.
virtual const ActionCategoriesactionCategories () const
 Returns the currently supported action categories.
virtual const Doctrinesdoctrines () const
 Returns the currently supported doctrines.
virtual void requestScriptsIfNeeded ()
 Requests scripted tasks if not already requested for this session/scenario load.
virtual std::vector< std::string > scriptedTasksValidFor (const DtEntityType &, int force=-1) const
 Returns a list of all scripted task ids that are valid for the given entity type.
virtual std::vector< std::string > reactiveTasksValidFor (const DtEntityType &, int force=-1) const
 Returns a list of all reactive task ids that are valid for the given entity type.
virtual std::vector< std::string > backgroundProcessesValidFor (const DtEntityType &, int force=-1) const
 Returns a list of all background process ids that are valid for the given entity type.
virtual std::vector< std::string > scriptedTasksValidFor (makVrv::DtUniqueID) const
 Returns a list of all scripted task ids that are valid for the given entity type.
virtual std::vector< std::string > reactiveTasksValidFor (makVrv::DtUniqueID) const
 Returns a list of all reactive task ids that are valid for the given entity type.
virtual std::vector< std::string > backgroundProcessesValidFor (makVrv::DtUniqueID) const
 Returns a list of all background process ids that are valid for the given entity type.
virtual std::vector< std::string > scriptsValidFor (const DtEntityType &, int scriptType, int force=-1) const
 Returns a list of all task ids that are valid for the given entity type and script type.
virtual std::vector< std::string > scriptsThatSupportDoctrine (const std::string &) const
 Returns a list of all scripts that support the given doctrine.
virtual int scriptedTaskTypeFor (const makVrv::DtUnicode &) const
 Returns the script type based on the script type string.
const DoctrinesByForcedoctrinesByForce () const
 Returns the list of doctrines by force.
virtual std::string doctrineForForce (int) const
 Returns the current doctrine for the specified force, or blank if no doctrine is assigned.
virtual void setResponseTimeout (int)
 Set response timeout (in seconds). Default is 10.
virtual int responseTimeout () const
virtual void addScriptedTaskType (int, const makVrv::DtUnicode &name)
virtual void addScriptedTaskTypeIcon (int, bool isSystemIcon, const std::string &)
virtual makVrv::DtUnicode getScriptedTaskTypeName (int) const
virtual std::string getScriptedTaskTypeIcon (int, bool isSystemScrript) const
virtual ScriptedTaskTypeNames getScriptedTaskTypes () const
virtual void removeScriptedTaskType (int)
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

static DtVrfScriptedTaskManagerinstance (makVrv::DtDe &de)
 Returns instance of the messager.
static void registerInstance (makVrv::DtDe &, DtVrfScriptedTaskManager *)

Public Attributes

boost::signal< void()> signal_aboutToClearScriptedTasks
boost::signal< void(std::string)> signal_scriptedTaskAboutToBeRemoved
boost::signal< void(std::string)> signal_scriptedTaskAdded
boost::signal< void()> signal_receivedScriptedTasks
boost::signal< void(int)> signal_scriptedTaskTypeAdded
boost::signal< void(int)> signal_scriptedTaskTypeRemoved
boost::signal< void()> signal_doctrinesReceived
boost::signal< void(std::string,
bool, std::string)> 
signal_scriptErrorChange
 Signals a script error.
boost::signal< void(std::string,
bool)> 
signal_scriptModified
 Signals that a script has been modified.
boost::signal< void()> signal_scriptModifiedCleared
 Signals that modified statuses have been cleared.
boost::signal< void(int,
std::string)> 
signal_scriptRemovedFromTaskMenu
 Signal sent when a scripted task menu item is removed. Sends menu id and script id.
boost::signal< void(int,
std::string)> 
signal_scriptAddedToTaskMenu
 Signal sent when a scripted task menu item is added. Sends menu id and script id.
boost::signal< void(int,
std::string)> 
signal_assignedDoctrineChanged
 Signal sent when assigned doctrines change.

Protected Types

typedef std::map< std::string,
int
ScriptIdToActionIdMap

Protected Member Functions

virtual std::string language () const
 Returns the language to use for scripted task translations.
virtual void receiveScriptedTaskList (DtSimMessage *msg)
 Called when scripted tasks are received. Will clear out existing tasks before replacing.
virtual void receiveActionCategories (DtSimMessage *msg)
 Called when action categories are received.
virtual void receiveDoctrines (DtSimMessage *msg)
 Called when doctrines are received.
virtual void processDoctrinesOperation (DtSimMessage *msg)
 Called to check to see if a doctrine has been assigned to a force.
virtual void receivedScriptedTaskUpdateMessage (DtSimMessage *msg)
 Called when a scripted task request/add/update/remove message is received.
virtual void slot_backendRemoved (const DtVrfBackendState &)
 Called when a backend is removed, if this is the monitoring backend restart on another.
virtual void responseTick ()
 Tick called when waiting for a response and possible timeout on receipt.

Protected Attributes

makVrv::DtDemyDe
makVrv::DtSignalConnectionManager myConnectionManager
ScriptedTasks myScriptedTasks
PreservedScripts myPreservedScripts
unsigned int myRequestId
ScriptIdToActionIdMap myScriptIdToActionIdMap
DtSimulationAddress myScriptMonitorAddress
std::map< std::string, intmyMonitoring
ActionCategories myActionCategories
Doctrines myDoctrines
bool myRequestScriptsIfNeeded
ScriptedTaskTypeInformation myScriptedTaskTypeInformation
DoctrinesByForce myDoctrinesByForce
time_t mySendTime
int myResponseTimeout

Detailed Description

The Master DtVrfScriptedTaskManager.

The scripted task manager will be responsible for maintaining the list of currently available scripted tasks.

Member Typedef Documentation

typedef std::map<bool, std::string> makVrf::DtVrfScriptedTaskManager::IconType
typedef std::pair<std::string, bool> makVrf::DtVrfScriptedTaskManager::ActionCategory
typedef std::set<std::string> makVrf::DtVrfScriptedTaskManager::Doctrines
typedef std::map<std::string, int> makVrf::DtVrfScriptedTaskManager::ScriptIdToActionIdMap
protected

Constructor & Destructor Documentation

makVrf::DtVrfScriptedTaskManager::DtVrfScriptedTaskManager ( makVrv::DtDe )
virtual makVrf::DtVrfScriptedTaskManager::~DtVrfScriptedTaskManager ( )
virtual

Member Function Documentation

static DtVrfScriptedTaskManager& makVrf::DtVrfScriptedTaskManager::instance ( makVrv::DtDe de)
static

Returns instance of the messager.

static void makVrf::DtVrfScriptedTaskManager::registerInstance ( makVrv::DtDe ,
DtVrfScriptedTaskManager  
)
static
virtual void makVrf::DtVrfScriptedTaskManager::clear ( bool  andSetting = true,
bool  reset = true,
bool  signal = true 
)
virtual

Clears out scripted tasks.

Before cleaing will emit a signal that the manager is about to be cleared. If andSettings is true, also clear which scripts are available in the scenario

virtual void makVrf::DtVrfScriptedTaskManager::removeScriptedTaskMetaData ( const std::string &  scriptedTaskId,
bool  signal = true 
)
virtual

Removes a scripted task.

Emits a signal before removal that it is about to be removed

Reimplemented in makVrf::DtQtVrfScriptedTaskManager.

virtual DtScriptedTaskMetaData makVrf::DtVrfScriptedTaskManager::scriptedTaskMetaData ( const std::string &  scriptId,
bool  system 
) const
virtual

Returns the scripted task meta data given the unique id.

virtual DtScriptedTaskMetaData makVrf::DtVrfScriptedTaskManager::scriptedTaskMetaData ( const std::string &  scriptId) const
virtual

Return scenario script first, if exists, and, if not, system.

virtual void makVrf::DtVrfScriptedTaskManager::addScriptedTaskMetaDataToScenario ( const DtScriptedTaskMetaData ,
bool  addScript = false 
)
virtual

Adds a scripted task meta data.

Will signal that the task has been added. If addScript is true will also set the script supplied with the scripted task

virtual void makVrf::DtVrfScriptedTaskManager::duplicateScriptedTaskMetaDataToScenario ( const DtScriptedTaskMetaData ,
const std::string &  sourceId 
)
virtual

Adds the scripted task meta data to the scenario scripts and copied the script of the source id to the newly created scripts.

virtual void makVrf::DtVrfScriptedTaskManager::updateScriptedTaskMetaDataToScenario ( const DtScriptedTaskMetaData ,
const std::string &  originalId = "" 
)
virtual

Requests to update the scripted task data on the server.

The original id is provided in the case that the id needs to be check in order to see if the id has changed and needs to be modified on the server. Note that if the id is changed in the meta data and the original id is not provided, the script modification will act as if this is a new script being added

virtual void makVrf::DtVrfScriptedTaskManager::deleteScriptedTaskMetaData ( const std::string &  )
virtual

Requests to remove the scripted task data on the server.

virtual void makVrf::DtVrfScriptedTaskManager::addScriptedTaskMetaData ( const DtScriptedTaskMetaData ,
bool  signal = true 
)
virtual

Adds a scripted task meta data locally. If signal is true signal that addition.

Reimplemented in makVrf::DtQtVrfScriptedTaskManager.

virtual void makVrf::DtVrfScriptedTaskManager::requestScriptedTasks ( )
virtual

Requests the currently available scripted task meta data.

Once received will emit a signal that there is new content.

virtual bool makVrf::DtVrfScriptedTaskManager::isSystemScript ( const std::string &  ) const
virtual

Returns true if the id is a system script.

virtual bool makVrf::DtVrfScriptedTaskManager::appearsOnMenu ( const std::string &  ) const
virtual

Returns true if script appears on a menu.

virtual bool makVrf::DtVrfScriptedTaskManager::appearsOnToolbar ( const std::string &  ) const
virtual

Returns true if script appears on a toolbar.

virtual bool makVrf::DtVrfScriptedTaskManager::systemScriptAvailable ( const std::string &  ) const
virtual

Returns true if system script is available for task menu.

virtual void makVrf::DtVrfScriptedTaskManager::setSystemScriptAvailable ( const std::string &  id,
bool   
)
virtual

Set whether or not system script is available. Will emit signal if value changes.

virtual void makVrf::DtVrfScriptedTaskManager::removeSystemScript ( const std::string &  id,
bool  signal = true 
)
virtual

Removes script.

virtual const ScriptedTasks& makVrf::DtVrfScriptedTaskManager::scriptedTaskMetaData ( ) const
virtual

Returns all scripted tasks.

virtual bool makVrf::DtVrfScriptedTaskManager::hasScriptedTaskMetaData ( const std::string &  ) const
virtual

Returns true if the scripted task is present in the system.

virtual bool makVrf::DtVrfScriptedTaskManager::hasScenarioScriptedTaskMetaData ( const std::string &  ) const
virtual
virtual bool makVrf::DtVrfScriptedTaskManager::hasSystemScriptedTaskMetaData ( const std::string &  ) const
virtual
virtual bool makVrf::DtVrfScriptedTaskManager::hasDoctrine ( const std::string &  ) const
virtual

Returns true if the doctrine is present.

virtual std::string makVrf::DtVrfScriptedTaskManager::uniqueScriptIdFrom ( const std::string &  ,
std::set< std::string >  additionalToCheck = std::set< std::string >() 
) const
virtual

Returns a unique script id with the supplied script id as a base.

If the script id itself is unique will return that. If additionalToCheck is specified will also check that additional list against uniqueness of ids. This is to provide ids that are going to be added but might not have been reflected from the network

virtual void makVrf::DtVrfScriptedTaskManager::makeSystemScript ( const std::string &  )
virtual

Tells the back-ends to make the provided script a system script.

This will remove it from the scenario but make it available to all scenarios. Note that if the user does not save the scenario it will still be present in the scenario scripts when they load the scenario again, however it will not change the system script.

virtual void makVrf::DtVrfScriptedTaskManager::assignScriptError ( const std::string &  scriptId,
const std::string &  error 
)
virtual

Assigns error to script and signals that a script error has occured.

virtual void makVrf::DtVrfScriptedTaskManager::clearScriptError ( const std::string &  scriptId)
virtual

Clears out that there is a script error and signals the all clear.

virtual bool makVrf::DtVrfScriptedTaskManager::scriptHasError ( const std::string &  scriptId,
std::string *  error = 0 
) const
virtual

Returns true if the script has an error.

If it has an error the supplied error string will be the last error reported

virtual bool makVrf::DtVrfScriptedTaskManager::scriptIsModified ( const std::string &  scriptId) const
virtual

Sets the fact that the script has been modified and not yet saved to the scenario.

virtual void makVrf::DtVrfScriptedTaskManager::setScriptModified ( const std::string &  scriptId,
bool   
)
virtual

Sets the fact that the script is modified.

virtual void makVrf::DtVrfScriptedTaskManager::clearModifiedScripts ( )
virtual

Clears out all modified statuses.

virtual void makVrf::DtVrfScriptedTaskManager::setScript ( const std::string &  scriptId,
const std::string &  script,
bool  setAsModified = true 
)
virtual

Sets the script in case users decide to update modified scripts to a rewound scenario.

When modified is cleared, or, script is set to not modified, the script will be removed. Sends message to notify of script modification. If setAsModified is true will also set the script as modified

virtual bool makVrf::DtVrfScriptedTaskManager::hasModifiedScripts ( ) const
virtual

Returns true if there are any modified scripts.

virtual void makVrf::DtVrfScriptedTaskManager::preserveModifiedScripts ( )
virtual

Preserves scripts for possible restore. The restored script list will be cleared when complete.

virtual void makVrf::DtVrfScriptedTaskManager::restorePreservedScripts ( )
virtual

If any scripts are preserved restores them and then class clearModifiedScripts()

virtual int makVrf::DtVrfScriptedTaskManager::mapScriptIdToAction ( const std::string &  scriptId)
virtual

Returns a script id to menu id mapping. If mapping does not exist creates one and puts it in the map.

virtual void makVrf::DtVrfScriptedTaskManager::unmapScriptId ( const std::string &  )
virtual

Unmaps a script id to action id.

virtual void makVrf::DtVrfScriptedTaskManager::setMonitorFrameRates ( const std::string &  scriptId,
bool  monitor 
)
virtual

Sets whether or not to monitor frame rates. If script id is blank will apply to all scripts.

virtual const ActionCategories& makVrf::DtVrfScriptedTaskManager::actionCategories ( ) const
virtual

Returns the currently supported action categories.

virtual const Doctrines& makVrf::DtVrfScriptedTaskManager::doctrines ( ) const
virtual

Returns the currently supported doctrines.

virtual void makVrf::DtVrfScriptedTaskManager::requestScriptsIfNeeded ( )
virtual

Requests scripted tasks if not already requested for this session/scenario load.

virtual void makVrf::DtVrfScriptedTaskManager::addScriptedTaskType ( int  ,
const makVrv::DtUnicode name 
)
virtual

Routines for aiding in the extension of the meta data dialog. Tied to types of scripts available and routines to modify the dialog if that script type is selected

virtual void makVrf::DtVrfScriptedTaskManager::addScriptedTaskTypeIcon ( int  ,
bool  isSystemIcon,
const std::string &   
)
virtual

Routines for aiding in the extension of the meta data dialog. Tied to types of scripts available and routines to modify the dialog if that script type is selected

virtual makVrv::DtUnicode makVrf::DtVrfScriptedTaskManager::getScriptedTaskTypeName ( int  ) const
virtual

Routines for aiding in the extension of the meta data dialog. Tied to types of scripts available and routines to modify the dialog if that script type is selected

virtual std::string makVrf::DtVrfScriptedTaskManager::getScriptedTaskTypeIcon ( int  ,
bool  isSystemScrript 
) const
virtual

Routines for aiding in the extension of the meta data dialog. Tied to types of scripts available and routines to modify the dialog if that script type is selected

virtual ScriptedTaskTypeNames makVrf::DtVrfScriptedTaskManager::getScriptedTaskTypes ( ) const
virtual

Routines for aiding in the extension of the meta data dialog. Tied to types of scripts available and routines to modify the dialog if that script type is selected

virtual void makVrf::DtVrfScriptedTaskManager::removeScriptedTaskType ( int  )
virtual

Routines for aiding in the extension of the meta data dialog. Tied to types of scripts available and routines to modify the dialog if that script type is selected

virtual std::vector<std::string> makVrf::DtVrfScriptedTaskManager::scriptedTasksValidFor ( const DtEntityType &  ,
int  force = -1 
) const
virtual

Returns a list of all scripted task ids that are valid for the given entity type.

virtual std::vector<std::string> makVrf::DtVrfScriptedTaskManager::reactiveTasksValidFor ( const DtEntityType &  ,
int  force = -1 
) const
virtual

Returns a list of all reactive task ids that are valid for the given entity type.

virtual std::vector<std::string> makVrf::DtVrfScriptedTaskManager::backgroundProcessesValidFor ( const DtEntityType &  ,
int  force = -1 
) const
virtual

Returns a list of all background process ids that are valid for the given entity type.

virtual std::vector<std::string> makVrf::DtVrfScriptedTaskManager::scriptedTasksValidFor ( makVrv::DtUniqueID  ) const
virtual

Returns a list of all scripted task ids that are valid for the given entity type.

virtual std::vector<std::string> makVrf::DtVrfScriptedTaskManager::reactiveTasksValidFor ( makVrv::DtUniqueID  ) const
virtual

Returns a list of all reactive task ids that are valid for the given entity type.

virtual std::vector<std::string> makVrf::DtVrfScriptedTaskManager::backgroundProcessesValidFor ( makVrv::DtUniqueID  ) const
virtual

Returns a list of all background process ids that are valid for the given entity type.

virtual std::vector<std::string> makVrf::DtVrfScriptedTaskManager::scriptsValidFor ( const DtEntityType &  ,
int  scriptType,
int  force = -1 
) const
virtual

Returns a list of all task ids that are valid for the given entity type and script type.

virtual std::vector<std::string> makVrf::DtVrfScriptedTaskManager::scriptsThatSupportDoctrine ( const std::string &  ) const
virtual

Returns a list of all scripts that support the given doctrine.

virtual int makVrf::DtVrfScriptedTaskManager::scriptedTaskTypeFor ( const makVrv::DtUnicode ) const
virtual

Returns the script type based on the script type string.

const DoctrinesByForce& makVrf::DtVrfScriptedTaskManager::doctrinesByForce ( ) const
inline

Returns the list of doctrines by force.

virtual std::string makVrf::DtVrfScriptedTaskManager::doctrineForForce ( int  ) const
virtual

Returns the current doctrine for the specified force, or blank if no doctrine is assigned.

virtual void makVrf::DtVrfScriptedTaskManager::setResponseTimeout ( int  )
virtual

Set response timeout (in seconds). Default is 10.

virtual int makVrf::DtVrfScriptedTaskManager::responseTimeout ( ) const
virtual
virtual std::string makVrf::DtVrfScriptedTaskManager::language ( ) const
protectedvirtual

Returns the language to use for scripted task translations.

Reimplemented in makVrf::DtQtVrfScriptedTaskManager.

virtual void makVrf::DtVrfScriptedTaskManager::receiveScriptedTaskList ( DtSimMessage msg)
protectedvirtual

Called when scripted tasks are received. Will clear out existing tasks before replacing.

virtual void makVrf::DtVrfScriptedTaskManager::receiveActionCategories ( DtSimMessage msg)
protectedvirtual

Called when action categories are received.

virtual void makVrf::DtVrfScriptedTaskManager::receiveDoctrines ( DtSimMessage msg)
protectedvirtual

Called when doctrines are received.

virtual void makVrf::DtVrfScriptedTaskManager::processDoctrinesOperation ( DtSimMessage msg)
protectedvirtual

Called to check to see if a doctrine has been assigned to a force.

If so clear out all current task information for any entity that has that force

virtual void makVrf::DtVrfScriptedTaskManager::receivedScriptedTaskUpdateMessage ( DtSimMessage msg)
protectedvirtual

Called when a scripted task request/add/update/remove message is received.

virtual void makVrf::DtVrfScriptedTaskManager::slot_backendRemoved ( const DtVrfBackendState )
protectedvirtual

Called when a backend is removed, if this is the monitoring backend restart on another.

virtual void makVrf::DtVrfScriptedTaskManager::responseTick ( )
protectedvirtual

Tick called when waiting for a response and possible timeout on receipt.

Member Data Documentation

boost::signal<void ()> makVrf::DtVrfScriptedTaskManager::signal_aboutToClearScriptedTasks
boost::signal<void (std::string)> makVrf::DtVrfScriptedTaskManager::signal_scriptedTaskAboutToBeRemoved
boost::signal<void (std::string)> makVrf::DtVrfScriptedTaskManager::signal_scriptedTaskAdded
boost::signal<void ()> makVrf::DtVrfScriptedTaskManager::signal_receivedScriptedTasks
boost::signal<void (int)> makVrf::DtVrfScriptedTaskManager::signal_scriptedTaskTypeAdded
boost::signal<void (int)> makVrf::DtVrfScriptedTaskManager::signal_scriptedTaskTypeRemoved
boost::signal<void ()> makVrf::DtVrfScriptedTaskManager::signal_doctrinesReceived
boost::signal<void (std::string, bool, std::string)> makVrf::DtVrfScriptedTaskManager::signal_scriptErrorChange

Signals a script error.

First parameter is the id, second is true/false that there is an error third is error string if there is an error

boost::signal<void (std::string, bool)> makVrf::DtVrfScriptedTaskManager::signal_scriptModified

Signals that a script has been modified.

boost::signal<void ()> makVrf::DtVrfScriptedTaskManager::signal_scriptModifiedCleared

Signals that modified statuses have been cleared.

boost::signal<void (int, std::string)> makVrf::DtVrfScriptedTaskManager::signal_scriptRemovedFromTaskMenu

Signal sent when a scripted task menu item is removed. Sends menu id and script id.

boost::signal<void (int, std::string)> makVrf::DtVrfScriptedTaskManager::signal_scriptAddedToTaskMenu

Signal sent when a scripted task menu item is added. Sends menu id and script id.

boost::signal<void (int, std::string)> makVrf::DtVrfScriptedTaskManager::signal_assignedDoctrineChanged

Signal sent when assigned doctrines change.

makVrv::DtDe& makVrf::DtVrfScriptedTaskManager::myDe
protected
makVrv::DtSignalConnectionManager makVrf::DtVrfScriptedTaskManager::myConnectionManager
protected
ScriptedTasks makVrf::DtVrfScriptedTaskManager::myScriptedTasks
protected
PreservedScripts makVrf::DtVrfScriptedTaskManager::myPreservedScripts
protected
unsigned int makVrf::DtVrfScriptedTaskManager::myRequestId
protected
ScriptIdToActionIdMap makVrf::DtVrfScriptedTaskManager::myScriptIdToActionIdMap
protected
DtSimulationAddress makVrf::DtVrfScriptedTaskManager::myScriptMonitorAddress
protected
std::map<std::string, int> makVrf::DtVrfScriptedTaskManager::myMonitoring
protected
ActionCategories makVrf::DtVrfScriptedTaskManager::myActionCategories
protected
Doctrines makVrf::DtVrfScriptedTaskManager::myDoctrines
protected
bool makVrf::DtVrfScriptedTaskManager::myRequestScriptsIfNeeded
protected
ScriptedTaskTypeInformation makVrf::DtVrfScriptedTaskManager::myScriptedTaskTypeInformation
protected
DoctrinesByForce makVrf::DtVrfScriptedTaskManager::myDoctrinesByForce
protected
time_t makVrf::DtVrfScriptedTaskManager::mySendTime
protected
int makVrf::DtVrfScriptedTaskManager::myResponseTimeout
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)