blob: 2864a5f16d39d58746f5e63d45c12f458b54ddac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// SPDX-License-Identifier: GPL-2.0
#include "statsmanager.h"
StatsManager::StatsManager() : view(nullptr)
{
// Test: show some random data. Let's see what happens.
state.var1Changed(2);
state.var2Changed(3);
state.binner2Changed(2);
}
StatsManager::~StatsManager()
{
}
void StatsManager::init(StatsView *v)
{
if (!v)
fprintf(stderr, "StatsManager::init(): no StatsView - statistics will not work.\n");
view = v;
}
void StatsManager::doit()
{
if (!view)
return;
view->plot(state);
}
|