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

#ifndef DWASEARCH_MATCHMANAGER_H
#define DWASEARCH_MATCHMANAGER_H

#include <map>
#include "Match.h"
#include "MatchResult.h"

namespace Mika {

    class MatchManager {
    private:
Q
qq_36105691 已提交
16 17
        static std::unordered_map<std::string, std::vector<MatchResult>> matchResultsByNames;
        static std::unordered_map<std::string, std::vector<MatchResultDetail>> 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
qq_36105691 已提交
28
        static const std::vector<MatchResultDetail> &getMatchDetailsByName(const std::string &name);
Q
qq_36105691 已提交
29

Q
qq_36105691 已提交
30
        static const std::vector<MatchResult> &getMatchResultsByName(const std::string &name);
Q
qq_36105691 已提交
31 32 33 34 35
    };

} // Mika

#endif //DWASEARCH_MATCHMANAGER_H