VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCore
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
>
14
#include <
vrvUtil/DtVirtualBaseClass.h
>
15
16
#include <boost/signals.hpp>
17
#include <boost/unordered_map.hpp>
18
19
namespace
makVrv
20
{
21
class
DtPerformanceStatsManagerSignaler;
22
28
class
DT_DLL_VRVCORE
DtPerformanceStatsManager
:
public
DtVirtualBaseClass
29
{
30
public
:
32
static
DtPerformanceStatsManager
& instance(
DtDe
& de);
33
35
virtual
~
DtPerformanceStatsManager
();
36
42
virtual
void
add(
const
std::string& group,
const
std::string& name);
43
47
virtual
void
remove
(
const
std::string& group,
const
std::string& name);
48
50
typedef
std::vector<std::string>
NameList
;
51
53
NameList
groups()
const
;
54
56
NameList
names(
const
std::string& group)
const
;
57
58
protected
:
60
DtPerformanceStatsManager
(
DtDe
& de);
61
62
protected
:
63
DtDe
&
myDe
;
64
DtPerformanceStatsManagerSignaler
&
mySignaler
;
65
DtStatsSet
*
myActiveStatsSet
;
66
67
typedef
std::map<std::string, NameList*>
GroupNameList
;
68
GroupNameList
myGroupNameList
;
69
};
70
73
class
DT_DLL_VRVCORE
DtPerformanceStatsManagerSignaler
:
public
DtVirtualBaseClass
74
{
75
public
:
77
static
DtPerformanceStatsManagerSignaler
& instance(
DtDe
& de);
78
80
virtual
~
DtPerformanceStatsManagerSignaler
();
81
83
boost::signal<void (const std::string&, const std::string&)>
signal_statAdded
;
84
86
boost::signal<void (const std::string&, const std::string&)>
signal_statAboutToBeRemoved
;
87
88
protected
:
90
DtPerformanceStatsManagerSignaler
();
91
92
};
93
}
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)