FlowArithmeticCalculator 1.0.0
Flow Arithmetic Calculator
Loading...
Searching...
No Matches
InputChoiceInteraction.h
Go to the documentation of this file.
1#ifndef BUSINESS_LOGIC_INPUT_INPUT_CHOICE_INTERACTION_H
2#define BUSINESS_LOGIC_INPUT_INPUT_CHOICE_INTERACTION_H
3
4#include <functional>
5#include <vector>
6
7#include "InputChoice.h"
8
9namespace business_logic::input {
13 template <typename T>
15 public:
19 std::vector<InputChoice<T>> choices;
20
24 std::function<void(const T&)> callback;
25 };
26} // namespace business_logic::input
27
28#endif // BUSINESS_LOGIC_INPUT_INPUT_CHOICE_INTERACTION_H
Input primitives, either for GUI (models of components) or interaction with elements.
std::function< void(const T &)> callback
The callback to call when an input choice is made.
std::vector< InputChoice< T > > choices
The input choices.