Main class for loading and writing HCF files.
More...
#include <HCF.h>
|
enum | WriteMode : uint8 { DirectToFile,
Indirect
} |
|
|
Chunk | GetRootChunk () |
|
Chunk | CreateRootChunk () |
|
|
bool | LoadFile (const filesystem::Path &filePath, bool readOnly) |
|
bool | Load (DataPtr data, Size size) |
|
bool | WriteFile (const filesystem::Path &filePath) |
| Saves content to file. More...
|
|
bool | OpenFile (const filesystem::Path &filePath, WriteMode mode) |
| Opens file for writing. This functions allows to use WriteMode::DirectToFile. If you use Indirect mode, there's no need to call this function.
|
|
|
Attribute | AddAttribute (AttributeType type, const DataPtr data, Size dataSize) |
| Adds attribute and fills it with data.
|
|
template<typename AttributeStruct > |
Attribute | AddAttribute (AttributeType type, const AttributeStruct &content) |
| Adds attribute and creates content from POD structure. More...
|
|
template<typename AttributeStruct > |
Attribute | AddAttribute (const AttributeStruct &content) |
| Adds attribute and creates content from POD structure. Attribute type will be taken from struct. Specialize GetAttributeTypeID template.
|
|
|
static const bool | READ_ONLY = true |
|
static const bool | READ_WRITE = false |
|
static const Size | UserDefinedAttributes = 0xFFFFFFFFFFFF0000 |
|
|
| FRIEND_CLASS_TESTER (HCF) |
|
Main class for loading and writing HCF files.
template<typename AttributeStruct >
Attribute sw::HCF::AddAttribute |
( |
AttributeType |
type, |
|
|
const AttributeStruct & |
content |
|
) |
| |
|
inline |
Adds attribute and creates content from POD structure.
- Parameters
-
[in] | type | You must provide type of attribute by yourself. Use second spetialization if struct defines attribute type getter. |
The documentation for this class was generated from the following files:
- HierarchicalChunkedFormat/HCF.h
- HierarchicalChunkedFormat/HCF.cpp
- HierarchicalChunkedFormat/HCF.inl