SpamFilterData.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <IceUtil/Time.h>
4 
5 #include <unordered_map>
6 #include <memory>
7 #include <string>
8 #include <mutex>
9 
10 namespace armarx
11 {
12  using SpamFilterMap = std::unordered_map<std::string, std::unordered_map<std::string, IceUtil::Time> >;
13  using SpamFilterMapPtr = std::shared_ptr<SpamFilterMap>;
14 
16  {
18  std::shared_ptr<std::mutex> mutex{new std::mutex()};
19  std::string identifier;
20  float durationSec = 10.0f;
21  };
22 }
armarx::SpamFilterData::identifier
std::string identifier
Definition: SpamFilterData.h:19
armarx::SpamFilterData::mutex
std::shared_ptr< std::mutex > mutex
Definition: SpamFilterData.h:18
armarx::SpamFilterData
Definition: SpamFilterData.h:15
armarx::SpamFilterMap
std::unordered_map< std::string, std::unordered_map< std::string, IceUtil::Time > > SpamFilterMap
Definition: SpamFilterData.h:12
armarx::SpamFilterData::durationSec
float durationSec
Definition: SpamFilterData.h:20
armarx::SpamFilterData::filterMap
SpamFilterMapPtr filterMap
Definition: SpamFilterData.h:17
armarx::SpamFilterMapPtr
std::shared_ptr< SpamFilterMap > SpamFilterMapPtr
Definition: SpamFilterData.h:13
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28