rodecomp/Source/File/CommonObject.h
ragnarok-clanker 2845c3431d Decompile 7 functions in Source/Contents/MessageTable.cpp, Source/Contents/MessageTable.h, ...
Batch #1710 by ragnarok-clanker: 0 byte-identical, 7 confirmed by peer review.

- fn_18371 DecodeMessageRot: logic confirmed by peer review
- fn_18372 InsertMessageRow: logic confirmed by peer review
- fn_18374 ImportMessageTable: logic confirmed by peer review
- fn_03416 CCommonObject::ReadCsvRow: logic confirmed by peer review
- fn_03418 CCommonObject::LoadCsv: logic confirmed by peer review
- fn_03420 CCommonObject::OpenCsv: logic confirmed by peer review
- fn_18373 ?TransformFields@?A0x79e5ab67@@YA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@ABV23@@Z: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
2026-10-28 20:46:36 +00:00

34 lines
915 B
C++

#ifndef RAGNAROK_SOURCE_FILE_COMMONOBJECT_H
#define RAGNAROK_SOURCE_FILE_COMMONOBJECT_H
#include <string>
#include <vector>
class CFile;
class ResourceBytes;
class CCommonObject {
public:
// INLINED
CCommonObject() {
this->Clear();
}
virtual ~CCommonObject();
void Clear();
bool LoadTokens(std::vector<char*>& tokens, const char* name, int mode, ResourceBytes& file);
bool LoadCsv(const char* name, std::vector<std::string> (*transform)(const std::vector<std::string>&), void (*insert)(std::vector<const char*>&));
private:
bool OpenCsv(const char* name, CFile& file);
std::vector<std::string> ReadCsvRow(CFile& file, char separator);
/* 0004 */ std::vector<char*> m_buffers;
CCommonObject(const CCommonObject&) = delete;
CCommonObject& operator=(const CCommonObject&) = delete;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CCommonObject) == 16);
#endif
#endif