VR-Forces 4.1.1 Class Documentation
List of all members | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrf::DtVrfDataInterraceResourceRequestor Class Reference

The DtVrfDataInterraceResourceRequestor class will request resources and add them to an internal structure, signaling when the structure is up to date. More...

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

Public Types

typedef std::map< std::string,
DtResource
ResourceMap

Public Member Functions

 DtVrfDataInterraceResourceRequestor (makVrv::DtDe &)
virtual ~DtVrfDataInterraceResourceRequestor ()
const ResourceMapresources () const
virtual void clearResources ()
 Clears out and frees resource memory.
- Public Member Functions inherited from makVrf::DtVrfResourceRequestor
 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.

Public Attributes

boost::signal< void()> signal_resourcesChanged
 Signal sent when resources have changed.

Protected Member Functions

virtual void resourcesChanged ()
 Called when resources received has changed.
virtual void resourceCheckingDisabled ()
 Called when this item can not longer set resources.
virtual void addResource (const DtResource &)
 Called to add a new resource.
virtual void resourceCheckComplete ()
 Called when resource checking is complete. Will signal that resources have changed.
virtual void resourceUpdated (const DtResource &)
 Called when a particular resource has been updated.
- Protected Member Functions inherited from makVrf::DtVrfResourceRequestor
virtual void slot_resourceResponse (const DtIfServerRequestResponse &)

Protected Attributes

ResourceMap myResources
- Protected Attributes inherited from makVrf::DtVrfResourceRequestor
makVrv::DtDemyDe
std::vector< std::string > myResourceRequests
bool myCanSetResources
DtEntityResourceList myResources

Detailed Description

The DtVrfDataInterraceResourceRequestor class will request resources and add them to an internal structure, signaling when the structure is up to date.

Member Typedef Documentation

Constructor & Destructor Documentation

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

Member Function Documentation

const ResourceMap& makVrf::DtVrfDataInterraceResourceRequestor::resources ( ) const
virtual void makVrf::DtVrfDataInterraceResourceRequestor::clearResources ( )
virtual

Clears out and frees resource memory.

virtual void makVrf::DtVrfDataInterraceResourceRequestor::resourcesChanged ( )
protectedvirtual

Called when resources received has changed.

Implements makVrf::DtVrfResourceRequestor.

virtual void makVrf::DtVrfDataInterraceResourceRequestor::resourceCheckingDisabled ( )
protectedvirtual

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

Implements makVrf::DtVrfResourceRequestor.

virtual void makVrf::DtVrfDataInterraceResourceRequestor::addResource ( const DtResource )
protectedvirtual

Called to add a new resource.

Implements makVrf::DtVrfResourceRequestor.

virtual void makVrf::DtVrfDataInterraceResourceRequestor::resourceCheckComplete ( )
protectedvirtual

Called when resource checking is complete. Will signal that resources have changed.

Implements makVrf::DtVrfResourceRequestor.

virtual void makVrf::DtVrfDataInterraceResourceRequestor::resourceUpdated ( const DtResource )
protectedvirtual

Called when a particular resource has been updated.

Implements makVrf::DtVrfResourceRequestor.

Member Data Documentation

boost::signal<void ()> makVrf::DtVrfDataInterraceResourceRequestor::signal_resourcesChanged

Signal sent when resources have changed.

ResourceMap makVrf::DtVrfDataInterraceResourceRequestor::myResources
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)