9 #include "swCommonLib/System/Path.h"
36 FRIEND_CLASS_TESTER(
HCF );
39 enum WriteMode : uint8
45 const static bool READ_ONLY =
true;
46 const static bool READ_WRITE =
false;
47 const static Size UserDefinedAttributes = 0xFFFFFFFFFFFF0000;
60 bool Load ( DataPtr data, Size size );
71 Chunk GetRootChunk ();
72 Chunk CreateRootChunk ();
82 template<
typename AttributeStruct >
87 template<
typename AttributeStruct >
98 template<
typename AttributeStruct >
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.
Definition: Exception.h:11
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
Plik zawiera definicje podstawowych typów zmiennych.
Definition: Attribute.h:21
Attribute AddAttribute(AttributeType type, const DataPtr data, Size dataSize)
Adds attribute and fills it with data.
Definition: HCF.cpp:69