summaryrefslogtreecommitdiff
path: root/src/IOManager.hpp
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-06-12 21:41:41 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-06-13 20:22:51 +0800
commit6f7b994684032060f0a2d7af82f4f3572293b8d6 (patch)
tree793d328cbcd6761365267550b55db45aee9b21fc /src/IOManager.hpp
parent6a51ab4525c59e9fe2bdbd92493019b0a98c6b94 (diff)
internal!: organized internal structure, using cmake now
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;