summaryrefslogtreecommitdiff
path: root/src/IOManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/IOManager.hpp')
-rw-r--r--src/IOManager.hpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/IOManager.hpp b/src/IOManager.hpp
deleted file mode 100644
index 670e597..0000000
--- a/src/IOManager.hpp
+++ /dev/null
@@ -1,33 +0,0 @@
-#pragma once
-
-#include "chatManager.hpp"
-#include "format.hpp"
-#include <optional>
-
-class CIOManager {
- public:
- CIOManager();
- ~CIOManager();
-
- struct SLog {
- eFormatType type;
- std::string log;
- };
- struct SIO {
- // once a time
- std::optional<CChatManager::SMessage> msg = std::nullopt;
- std::optional<SLog> log = std::nullopt;
- std::optional<std::pair<std::string, std::string>> custom = std::nullopt;
- };
-
- const std::vector<SIO> &getIO() const;
- void addLog(const SLog &log);
- void addMessage(const CChatManager::SMessage &msg);
- void addCustom(const std::pair<std::string, std::string> &custom);
-
- private:
- std::vector<SIO> m_vIO;
-
- friend class CChatManager;
-};
-inline std::unique_ptr<CIOManager> g_pIOManager;