blob: 7f7a65adfdabd03db43711d26187ad446c6f4f61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include "search/search_quality/sample.hpp"
#include <string>
#include <vector>
class Model;
class View
{
public:
virtual ~View() = default;
void SetModel(Model & model) { m_model = &model; }
virtual void SetSamples(std::vector<search::Sample> const & samples) = 0;
virtual void ShowSample(search::Sample const & sample) = 0;
virtual void ShowError(std::string const & msg) = 0;
protected:
Model * m_model = nullptr;
};
|