blob: ba741ff4ecb3939910b5ae5147a3b338ea4142f9 (
plain)
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
29
30
|
#pragma once
#include "chatManager.hpp"
#include "format.hpp"
#include <optional>
class CIOManager {
public:
CIOManager();
~CIOManager();
struct SLog {
eFormatType type;
std::string log;
};
struct SIO {
// cannot have both at once
std::optional<CChatManager::SMessage> msg;
std::optional<SLog> log;
};
const std::vector<SIO> &getIO() const;
void addLog(const SLog &log);
private:
std::vector<SIO> m_vIO;
friend class CChatManager;
};
inline std::unique_ptr<CIOManager> g_pIOManager;
|