blob: 6aa2b1538f70d1016e1238aa784cfed1fc35da5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <queue>
#include <token.hpp>
class TokenPool {
private:
TokenPool() = default;
TokenPool(const TokenPool &) = delete;
TokenPool(TokenPool &&) = delete;
TokenPool &operator=(const TokenPool &) = delete;
TokenPool &operator=(TokenPool &&) = delete;
static std::queue<Token> mTokenContainer;
public:
static void fillTokenSource(const std::string &iJsonPath);
static std::optional<std::string> unusedToken();
};
|