VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
makVrf::DtVrfResourceManager Class Reference
Inheritance diagram for makVrf::DtVrfResourceManager:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtVrfResourceManager (makVrv::DtDe &)
virtual ~DtVrfResourceManager ()
virtual void requestResourcesFor (const std::vector< std::string > &names)
 Calls to DtGuiThreadVrfRemoteController to request resource information for the given object.
virtual void startMonitoring (const std::string &, int period)
 Calls to DtVrfSimMessage to request monitoring of the resources for the specified entity.
virtual bool stopMonitoring (const std::string &)
 Requests to stop monitoring for the specified entity.
virtual int updateRateFor (const std::string &)
 Returns the current update rate for specified entity.
virtual void setUpdateRate (const std::string &, int)
 Sets update rate for specified entity.
bool monitoring (const std::string &n) const
 Returns true if monitoring item.

Static Public Member Functions

static DtVrfResourceManagerinstance (makVrv::DtDe &de)
 Returns instance of the DtVrfResourceManager.

Public Attributes

boost::signal< void(const
DtIfServerRequestResponse &)> 
signal_resourceResponse

Protected Types

typedef std::map< std::string,
int > 
DtMonitoringMap

Protected Member Functions

virtual void processResourceResponse (DtSimMessage *)

Protected Attributes

makVrv::DtDemyDe
std::map< std::string, int > myUpdateRates
DtMonitoringMap myMonitoring

Member Typedef Documentation

typedef std::map<std::string, int> makVrf::DtVrfResourceManager::DtMonitoringMap [protected]

Constructor & Destructor Documentation


Member Function Documentation

Returns instance of the DtVrfResourceManager.

virtual void makVrf::DtVrfResourceManager::requestResourcesFor ( const std::vector< std::string > &  names) [virtual]

Calls to DtGuiThreadVrfRemoteController to request resource information for the given object.

virtual void makVrf::DtVrfResourceManager::startMonitoring ( const std::string &  ,
int  period 
) [virtual]

Calls to DtVrfSimMessage to request monitoring of the resources for the specified entity.

virtual bool makVrf::DtVrfResourceManager::stopMonitoring ( const std::string &  ) [virtual]

Requests to stop monitoring for the specified entity.

Returns true if no other items are monitoring this entity

virtual int makVrf::DtVrfResourceManager::updateRateFor ( const std::string &  ) [virtual]

Returns the current update rate for specified entity.

virtual void makVrf::DtVrfResourceManager::setUpdateRate ( const std::string &  ,
int   
) [virtual]

Sets update rate for specified entity.

If entity is being monitored, sends message to update rate frequency.

bool makVrf::DtVrfResourceManager::monitoring ( const std::string &  n) const [inline]

Returns true if monitoring item.

virtual void makVrf::DtVrfResourceManager::processResourceResponse ( DtSimMessage ) [protected, virtual]

Member Data Documentation

std::map<std::string, int> makVrf::DtVrfResourceManager::myUpdateRates [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)