VR-Forces 4.1.1 Class Documentation
DtVrfResourceManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtVrfResourceManager.h,v $ $Revision: 1.2 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
16 #include <vrfGuiCore/vrfGuiCore.h>
17 
19 
20 #include <boost/signal.hpp>
21 
22 namespace makVrv
23 {
24  class DtDe;
25 }
26 
28 class DtSimMessage;
29 
30 namespace makVrf
31 {
33  {
34  public:
36  virtual ~DtVrfResourceManager();
37 
39  static DtVrfResourceManager& instance(makVrv::DtDe& de);
40 
41  public:
43  virtual void requestResourcesFor(const std::vector<std::string>& names);
44  boost::signal<void (const DtIfServerRequestResponse&)> signal_resourceResponse;
45 
47  virtual void startMonitoring(const std::string&, int period);
48 
51  virtual bool stopMonitoring(const std::string&);
52 
54  virtual int updateRateFor(const std::string&);
55 
58  virtual void setUpdateRate(const std::string&, int);
59 
61  bool monitoring(const std::string& n) const
62  {
63  return (myMonitoring.find(n) != myMonitoring.end());
64  }
65 
66  protected:
67  virtual void processResourceResponse(DtSimMessage*);
68 
69  protected:
71  std::map<std::string, int> myUpdateRates;
72 
73  typedef std::map<std::string, int> DtMonitoringMap;
75  };
76 }

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)