This commit is contained in:
seb
2026-07-13 07:34:17 +02:00
parent d471f2411d
commit b7b76c9d39
46 changed files with 39025 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
#pragma once
#include <cstdio>
#include <string>
#include <mutex>
class OrderLog {
public:
void open(const std::string& path);
void close();
int log_order(const std::string& order_json);
std::string get_max_external_id() const;
private:
FILE* fp_ = nullptr;
std::mutex mutex_;
int sequence_ = 0;
int max_external_id_ = 0;
};