VR-Forces 4.1.1 Class Documentation
DtPerformanceStatsManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 #include <vrvCore/DtDe.h>
15 
16 #include <boost/signals.hpp>
17 #include <boost/unordered_map.hpp>
18 
19 namespace makVrv
20 {
21  class DtPerformanceStatsManagerSignaler;
22 
29  {
30  public:
32  static DtPerformanceStatsManager& instance(DtDe& de);
33 
35  virtual ~DtPerformanceStatsManager();
36 
42  virtual void add(const std::string& statsSetName, DtStatsSet* statsSet);
43 
47  virtual void remove(const std::string& statsSetName);
48 
52  virtual DtStatsSet* find(const std::string& statsSetName);
53 
59  virtual void setActive(const std::string& statsSetName);
60 
64  virtual DtStatsSet* activeSet();
65 
69  virtual void tickStats(double tickTime);
70 
72  typedef std::vector<std::string> NameList;
73 
75  NameList names() const;
76 
77  protected:
80 
81  protected:
85 
86  typedef boost::unordered_map<std::string, DtStatsSet*> PerformanceStatsMap;
88  };
89 
93  {
94  public:
96  static DtPerformanceStatsManagerSignaler& instance(DtDe& de);
97 
100 
102  boost::signal<void (DtStatsSet*)> signal_setAdded;
103 
105  boost::signal<void (DtStatsSet*)> signal_setAboutToBeRemoved;
106 
110  boost::signal<void (DtStatsSet*)> signal_activeSetChanged;
111 
112  protected:
115 
116  };
117 }

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)