82 template<
typename AttributeStruct >
87 template<
typename AttributeStruct >
98 template<
typename AttributeStruct >
bool Load(DataPtr data, Size size)
Definition: HCF.cpp:34
bool OpenFile(const filesystem::Path &filePath, WriteMode mode)
Opens file for writing. This functions allows to use WriteMode::DirectToFile. If you use Indirect mod...
Definition: HCF.cpp:48
sw::AttributeType GetAttributeTypeID()
Override this funtion for your attribute atructure.
uint64 AttributeType
Definition: AttributeTypes.h:12
Chunk CreateRootChunk()
Definition: HCF.cpp:62
HCF()
Definition: HCF.cpp:22
Definition: DirectInputModule.cpp:11
static const Size UserDefinedAttributes
Definition: HCF.h:47
bool WriteFile(const filesystem::Path &filePath)
Saves content to file.
Definition: HCF.cpp:41
Represents memory chunk in file.
Definition: Chunk.h:24
Main class for loading and writing HCF files.
Definition: HCF.h:34
DataUnderlayingType * DataPtr
Definition: AttributeTypes.h:14
Chunk GetRootChunk()
Definition: HCF.cpp:55
Plik zawiera definicje podstawowych typów zmiennych.
ImplHCF m_impl
Definition: HCF.h:50
size_t Size
Definition: TypesDefinitions.h:35
uint8_t uint8
Definition: TypesDefinitions.h:27
static const bool READ_WRITE
Definition: HCF.h:46
Definition: Attribute.h:21
bool LoadFile(const filesystem::Path &filePath, bool readOnly)
Definition: HCF.cpp:27
static const bool READ_ONLY
Definition: HCF.h:45
Attribute AddAttribute(AttributeType type, const DataPtr data, Size dataSize)
Adds attribute and fills it with data.
Definition: HCF.cpp:69