Filter.cpp
Go to the documentation of this file.
1#include "Filter.h"
2
4{
5 void
6 MemoryFilter::configure(const nlohmann::json& json)
7 {
8 }
9
10 void
11 SnapshotFilter::configure(const nlohmann::json& json)
12 {
13 }
14
17 {
18 std::lock_guard<std::mutex> lock(filterMutex_);
19 return stats;
20 }
21
22 std::string
24 {
25 return "Base_Filter";
26 }
27
28 void
30 {
31 std::lock_guard<std::mutex> lock(filterMutex_);
32 stats.accepted = 0;
33 stats.rejected = 0;
34 stats.additional_time = std::chrono::duration<double>::zero();
35 }
36
37
38} // namespace armarx::armem::server::ltm::processor
virtual void configure(const nlohmann::json &json)
Definition Filter.cpp:6
struct armarx::armem::server::ltm::processor::SnapshotFilter::FilterStatistics stats
virtual void configure(const nlohmann::json &json)
Definition Filter.cpp:11
std::mutex filterMutex_
Mutex for thread-safe access to filter state (stats and derived class state) Derived classes should l...
Definition Filter.h:61
void resetStatisticsForNewEpisode()
resetStatisticsForNewEpisode resets the parts of the statistics that are unique to one recording cycl...
Definition Filter.cpp:29