blob: f8a6256dd8f7382055c4a94b8bd104a29d1d3d80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <tokenPool.hpp>
std::optional<std::string> TokenPool::unusedToken() {
if (mTokenContainer.empty()) {
return std::nullopt;
}
Token aOutputToken{mTokenContainer.front()};
mTokenContainer.pop();
return aOutputToken.text();
}
void TokenPool::fillTokenSource(const std::string &iJsonPath) { // mTokenContainer.emplace(Token(iJsonPath));
}
|