MatchManager.h 812 字节
Newer Older
Q
qq_36105691 已提交
1 2 3 4 5 6 7 8 9 10
//
// Created by Adarion on 2024/2/19.
//

#ifndef DWASEARCH_MATCHMANAGER_H
#define DWASEARCH_MATCHMANAGER_H

#include <map>
#include "Match.h"
#include "MatchResult.h"
Q
fix  
qq_36105691 已提交
11
#include "ByteStream.h"
Q
qq_36105691 已提交
12 13 14 15

namespace Mika {
    class MatchManager {
    private:
Q
fix  
qq_36105691 已提交
16 17
        static std::unordered_map<std::string, ByteStream> matchResultsByNames;
        static std::unordered_map<std::string, ByteStream> matchDetailsByNames;
Q
qq_36105691 已提交
18 19 20 21 22 23 24 25 26 27

    public:
        MatchManager() = delete;

        ~MatchManager() = delete;

        MatchManager(const MatchManager &) = delete;

        MatchManager &operator=(const MatchManager &) = delete;

Q
fix  
qq_36105691 已提交
28
        static ByteStream getMatchDetailsByName(const std::string &name);
Q
qq_36105691 已提交
29

Q
fix  
qq_36105691 已提交
30
        static ByteStream getMatchResultsByName(const std::string &name);
Q
qq_36105691 已提交
31 32 33 34 35
    };

} // Mika

#endif //DWASEARCH_MATCHMANAGER_H