ChimeraTK-DeviceAccess-DoocsBackend
01.09.02
EventIdMapper.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <eq_fct.h>
4
5
#include <ChimeraTK/VersionNumber.h>
6
7
#include <map>
8
#include <mutex>
9
10
class
EventIdMapper
{
11
public
:
12
static
EventIdMapper
&
getInstance
() {
13
static
EventIdMapper
instance;
14
return
instance;
15
}
16
17
ChimeraTK::VersionNumber
getVersionForEventId
(
const
doocs::EventId& eventId);
18
19
private
:
20
EventIdMapper
() =
default
;
21
~
EventIdMapper
() =
default
;
22
EventIdMapper
(
const
EventIdMapper
&) =
delete
;
23
EventIdMapper
& operator=(
const
EventIdMapper
&) =
delete
;
24
25
std::mutex _mapMutex;
26
std::map<doocs::EventId, ChimeraTK::VersionNumber> _eventIdToVersionMap{};
27
28
constexpr
static
size_t
maxSizeEventIdMap = 2000;
29
};
EventIdMapper
Definition:
EventIdMapper.h:10
EventIdMapper::getVersionForEventId
ChimeraTK::VersionNumber getVersionForEventId(const doocs::EventId &eventId)
Definition:
EventIdMapper.cc:7
EventIdMapper::getInstance
static EventIdMapper & getInstance()
Definition:
EventIdMapper.h:12
sources
ChimeraTK-DeviceAccess-DoocsBackend
include
EventIdMapper.h
Generated by
1.8.17