mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-06 20:03:51 +00:00
27 lines
521 B
C++
27 lines
521 B
C++
#pragma once
|
|
#include <string>
|
|
using std::string;
|
|
|
|
class OperationCount {
|
|
private:
|
|
string name;
|
|
|
|
public:
|
|
OperationCount(const string& name);
|
|
static OperationCount create(const string& name);
|
|
static bool exists(const string& name);
|
|
bool remove();
|
|
operator bool() {
|
|
return exists(name);
|
|
}
|
|
|
|
bool done();
|
|
inline bool finish() {
|
|
return done();
|
|
}
|
|
|
|
int get();
|
|
bool hasReachCount(int count);
|
|
bool hasReachMaxEngineCount();
|
|
bool hasReachMaxBackendCount();
|
|
}; |