mirror of
https://github.com/jakcron/nstool
synced 2024-11-23 05:59:29 +00:00
46 lines
No EOL
844 B
C++
46 lines
No EOL
844 B
C++
#pragma once
|
|
#include <string>
|
|
#include <fnd/List.h>
|
|
#include <fnd/IByteModel.h>
|
|
#include <nn/hac/define/ini.h>
|
|
|
|
namespace nn
|
|
{
|
|
namespace hac
|
|
{
|
|
class IniHeader :
|
|
public fnd::IByteModel
|
|
{
|
|
public:
|
|
IniHeader();
|
|
IniHeader(const IniHeader& other);
|
|
|
|
void operator=(const IniHeader& other);
|
|
bool operator==(const IniHeader& other) const;
|
|
bool operator!=(const IniHeader& other) const;
|
|
|
|
// IByteModel
|
|
void toBytes();
|
|
void fromBytes(const byte_t* data, size_t len);
|
|
const fnd::Vec<byte_t>& getBytes() const;
|
|
|
|
// variables
|
|
void clear();
|
|
|
|
uint32_t getSize() const;
|
|
void setSize(uint32_t size);
|
|
|
|
uint32_t getKipNum() const;
|
|
void setKipNum(uint32_t num);
|
|
private:
|
|
const std::string kModuleName = "INI_HEADER";
|
|
|
|
// raw binary
|
|
fnd::Vec<byte_t> mRawBinary;
|
|
|
|
// variables
|
|
uint32_t mSize;
|
|
uint32_t mKipNum;
|
|
};
|
|
}
|
|
} |