![]() |
VR-Forces 4.3 Class Documentation
|

Classes | |
| struct | TaskInformation |
Public Types | |
| typedef DtBoost::shared_ptr < DtSimTask > | DtSimTaskSharedPtr |
| typedef std::vector < DtSimTaskMessageType > | Conflicting |
| typedef std::vector < TaskInformation > | EntityTaskInformation |
| typedef boost::function< void(std::string, const EntityTaskInformation &)> | DtRequestTaskCallbackFcn |
| Request current tasks. | |
Public Member Functions | |
| DtVrfCurrentTaskManager (makVrv::DtDe &) | |
| virtual | ~DtVrfCurrentTaskManager () |
| virtual void | subscribeForTaskInformation (const makVrv::DtUniqueID &simId) |
| virtual void | unsubscribeForTaskInformation (const makVrv::DtUniqueID &simId, bool all=false) |
| virtual void | requestCurrentTasksFor (const makVrv::DtUniqueID &simId, DtRequestTaskCallbackFcn) |
| virtual void | requestCurrentTasksFor (const std::vector< makVrv::DtUniqueID > &simIds) |
| Will send off the allRequestsReceived when all currenttask messages are received. | |
| virtual void | requestCurrentTasksFor (const std::vector< makVrv::DtSimEntry * > &) |
| virtual void | defaultReceivedTaskCallback (std::string, const EntityTaskInformation &) |
| Callback used when requesting tasks for multiple objects. | |
| virtual const EntityTaskInformation * | tasksFor (const makVrv::DtUniqueID &simId) const |
| Returns the current tasks assigned to the entity. | |
Public Member Functions inherited from makVrv::DtVirtualBaseClass | |
| DtVirtualBaseClass () | |
| Do nothing constructor. | |
| virtual | ~DtVirtualBaseClass () |
| Virtual do nothing destructor. | |
Static Public Member Functions | |
| static DtVrfCurrentTaskManager & | instance (makVrv::DtDe &de) |
| Returns instance of the DtVrfResourceManager. | |
Public Attributes | |
| boost::signal< void(const std::string &entityName)> | signal_currentTaskChanged |
| boost::signal< void()> | signal_allRequestsReceived |
| When all immediately requested tasks are received (via the requestCurrentTasksFor) this signal is sent out. | |
Protected Types | |
| typedef std::pair < EntityTaskInformation, int > | EntityTasks |
| typedef std::map < makVrv::DtUniqueID, EntityTasks > | DtEntityTaskMap |
| typedef std::vector < DtRequestTaskCallbackFcn > | DtRequestCallbackVector |
| typedef std::map < makVrv::DtUniqueID, DtRequestCallbackVector > | DtRequestCallbackMap |
Protected Member Functions | |
| virtual void | slot_simObjectEntryAboutToBeRemoved (makVrv::DtSimObjectEntry &entry) |
| virtual void | processEntityCurrentTaskCallback (const DtVrfObjectMessage *msg) |
| virtual makVrv::DtUniqueID | isMonitoring (const std::string &e) const |
| virtual makVrv::DtUniqueID | isRequesting (const std::string &e) const |
| virtual void | convertTaskList (const DtCurrentTasksAdminContent::DtTaskList &, EntityTaskInformation &) const |
| Converts task list to internal data representation. | |
| virtual TaskInformation | convertDataToTaskInformation (const DtCurrentTaskData &data) const |
| Converts data from the network to internal task information srtucture. | |
| virtual void | convertMessageToInformation (const DtCurrentTasksAdminContent *, EntityTaskInformation &) const |
| Converts the sim task message to the information structure. | |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| DtEntityTaskMap | myTasks |
| DtRequestCallbackMap | myTaskRequestCallbacks |
| typedef DtBoost::shared_ptr<DtSimTask> makVrf::DtVrfCurrentTaskManager::DtSimTaskSharedPtr |
| typedef std::vector<DtSimTaskMessageType> makVrf::DtVrfCurrentTaskManager::Conflicting |
| typedef std::vector<TaskInformation> makVrf::DtVrfCurrentTaskManager::EntityTaskInformation |
| typedef boost::function<void (std::string, const EntityTaskInformation&)> makVrf::DtVrfCurrentTaskManager::DtRequestTaskCallbackFcn |
Request current tasks.
Will return a structure, that, when released will also free memory for tasks, so, if you wish to keep a copy of the tasks, clone the tasks that come back
|
protected |
|
protected |
|
protected |
|
protected |
| makVrf::DtVrfCurrentTaskManager::DtVrfCurrentTaskManager | ( | makVrv::DtDe & | ) |
|
virtual |
|
static |
Returns instance of the DtVrfResourceManager.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Will send off the allRequestsReceived when all currenttask messages are received.
|
virtual |
|
virtual |
Callback used when requesting tasks for multiple objects.
|
virtual |
Returns the current tasks assigned to the entity.
Do not free information in list as it is maintained by this class
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Converts task list to internal data representation.
|
protectedvirtual |
Converts data from the network to internal task information srtucture.
|
protectedvirtual |
Converts the sim task message to the information structure.
| boost::signal<void (const std::string& entityName)> makVrf::DtVrfCurrentTaskManager::signal_currentTaskChanged |
| boost::signal<void ()> makVrf::DtVrfCurrentTaskManager::signal_allRequestsReceived |
When all immediately requested tasks are received (via the requestCurrentTasksFor) this signal is sent out.
|
protected |
|
protected |
|
protected |