#ifndef OFFSETS_H #define OFFSETS_H #include #include #include class OffsetCalculator { public: OffsetCalculator(const std::filesystem::path& offsetsFile, int baseOffset_); void addAsset(int start, const std::string& symbol); [[nodiscard]] int getLastEnd() const { return lastEnd; } void setLastEnd(int lastEnd_) { this->lastEnd = lastEnd_; } private: std::ofstream output; int baseOffset; // Store the end of the previously added asset int lastEnd; }; #endif