VR-Forces 4.2 Class Documentation
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrf::DtVrfResourceRequestor Class Reference

The class that is the interface between the GUI and the back-end. More...

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

Public Member Functions

 DtVrfResourceRequestor (makVrv::DtDe &)
virtual ~DtVrfResourceRequestor ()
virtual void requestResourcesFor (const std::vector< makVrv::DtSimEntry * > &data, bool entitiesOnly=true)
 Requests resources for all items in the vector.
virtual void startMonitoring (const std::string &, int rate=-1)
 Start monitoring for this entity.
virtual void stopMonitoring (const std::string &)
 Stop monitoring for the specified entity.
virtual void setUpdateRate (const std::string &entity, int)
 Sets the update rate for entity being monitored.

Protected Member Functions

virtual void slot_resourceResponse (const DtIfServerRequestResponse &)
virtual void resourcesChanged ()=0
 Virtual overrides to complete class.
virtual void resourceCheckingDisabled ()=0
 Called when this item can not longer set resources.
virtual void addResource (const DtResource &)=0
 Called to add a new resource.
virtual void resourceCheckComplete ()=0
 Called when resource checking is complete.
virtual void resourceUpdated (const DtResource &)=0
 Called when a particular resource has been updated.

Protected Attributes

makVrv::DtDe & myDe
std::vector< std::string > myResourceRequests
bool myCanSetResources
DtEntityResourceList myResources

Detailed Description

The class that is the interface between the GUI and the back-end.

Constructor & Destructor Documentation

makVrf::DtVrfResourceRequestor::DtVrfResourceRequestor ( makVrv::DtDe &  )
virtual makVrf::DtVrfResourceRequestor::~DtVrfResourceRequestor ( )
virtual

Member Function Documentation

virtual void makVrf::DtVrfResourceRequestor::requestResourcesFor ( const std::vector< makVrv::DtSimEntry * > &  data,
bool  entitiesOnly = true 
)
virtual

Requests resources for all items in the vector.

If entitiesOnly is true will only request resources for those items that are of entity type, else will request resources for all types (environmentals, aggregates, entities)

virtual void makVrf::DtVrfResourceRequestor::startMonitoring ( const std::string &  ,
int  rate = -1 
)
virtual

Start monitoring for this entity.

Use the refresh rate specified, unless it is -1, in which case use the value found in the resource manager

virtual void makVrf::DtVrfResourceRequestor::stopMonitoring ( const std::string &  )
virtual

Stop monitoring for the specified entity.

virtual void makVrf::DtVrfResourceRequestor::setUpdateRate ( const std::string &  entity,
int   
)
virtual

Sets the update rate for entity being monitored.

virtual void makVrf::DtVrfResourceRequestor::slot_resourceResponse ( const DtIfServerRequestResponse )
protectedvirtual
virtual void makVrf::DtVrfResourceRequestor::resourcesChanged ( )
protectedpure virtual
virtual void makVrf::DtVrfResourceRequestor::resourceCheckingDisabled ( )
protectedpure virtual

Called when this item can not longer set resources.

This will happen when multiple requests are made through this class and there are no common resources

Implemented in makVrf::DtReleaseBombTaskDialog, makVrf::DtLaunchCounterMeasuresTaskDialog, makVrf::DtResourceConditionalLogic, makVrf::DtResourceSelectionEntryWidget, makVrf::DtSetResourcesDialog, makVrf::DtVrfDataInterraceResourceRequestor, and makVrf::makVrfGuiObjectInformationQt::DtResourcePageRequestor.

virtual void makVrf::DtVrfResourceRequestor::addResource ( const DtResource )
protectedpure virtual
virtual void makVrf::DtVrfResourceRequestor::resourceCheckComplete ( )
protectedpure virtual
virtual void makVrf::DtVrfResourceRequestor::resourceUpdated ( const DtResource )
protectedpure virtual

Member Data Documentation

makVrv::DtDe& makVrf::DtVrfResourceRequestor::myDe
protected
std::vector<std::string> makVrf::DtVrfResourceRequestor::myResourceRequests
protected
bool makVrf::DtVrfResourceRequestor::myCanSetResources
protected
DtEntityResourceList makVrf::DtVrfResourceRequestor::myResources
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)