Castor3D
..
|
Binary data chunk writer/reader base class. More...
Public Member Functions | |
C3D_API | BinaryParser (Castor::Path const &p_path) |
Constructor. More... | |
virtual C3D_API bool | Fill (TParsed const &p_obj, Castor::BinaryFile &p_file) const |
To chunk writer function. More... | |
virtual C3D_API bool | Parse (TParsed &p_obj, Castor::BinaryFile &p_file) const |
From file reader function. More... | |
virtual C3D_API bool | Fill (TParsed const &p_obj, BinaryChunk &p_chunk) const =0 |
To chunk writer function. More... | |
virtual C3D_API bool | Parse (TParsed &p_obj, BinaryChunk &p_chunk) const =0 |
From chunk reader function. More... | |
Protected Member Functions | |
template<typename T > | |
bool | DoParseChunk (T *p_pValues, uint32_t p_count, BinaryChunk &p_chunk) const |
Retrieves a value array from a chunk. More... | |
template<typename T , uint32_t Count> | |
bool | DoParseChunk (T(&p_value)[Count], BinaryChunk &p_chunk) const |
Retrieves a value array from a chunk. More... | |
template<typename T > | |
bool | DoParseChunk (T &p_value, BinaryChunk &p_chunk) const |
Retrieves a value from a chunk. More... | |
template<typename T > | |
bool | DoFillChunk (T const *p_values, uint32_t p_count, eCHUNK_TYPE p_chunkType, BinaryChunk &p_chunk) const |
Writes a subchunk value into a chunk. More... | |
template<typename T , uint32_t Count> | |
bool | DoFillChunk (T const(&p_value)[Count], eCHUNK_TYPE p_chunkType, BinaryChunk &p_chunk) const |
Writes a subchunk value into a chunk. More... | |
template<typename T > | |
bool | DoFillChunk (T const &p_value, eCHUNK_TYPE p_chunkType, BinaryChunk &p_chunk) const |
Writes a subchunk value into a chunk. More... | |
Protected Attributes | |
Castor::Path | m_path |
The current folder path. More... | |
Binary data chunk writer/reader base class.
|
inline |
Constructor.
[in] | p_path | The current folder path |
|
inlineprotected |
Writes a subchunk value into a chunk.
[in] | p_values | The values |
[in] | p_count | The values count |
[in] | p_chunkType | The subchunk type |
[in] | p_chunk | The chunk |
false
if any error occured
|
inlineprotected |
Writes a subchunk value into a chunk.
[in] | p_value | The values |
[in] | p_chunkType | The subchunk type |
[in] | p_chunk | The chunk |
false
if any error occured
|
inlineprotected |
Writes a subchunk value into a chunk.
[in] | p_value | The value |
[in] | p_chunkType | The subchunk type |
[in] | p_chunk | The chunk |
false
if any error occured
|
inlineprotected |
Retrieves a value array from a chunk.
[out] | p_pValues | Receives the parsed values |
[out] | p_count | The values count |
[in] | p_chunk | The chunk containing the values |
false
if any error occured
|
inlineprotected |
Retrieves a value array from a chunk.
[out] | p_value | Receives the parsed values |
[in] | p_chunk | The chunk containing the values |
false
if any error occured
|
inlineprotected |
Retrieves a value from a chunk.
[out] | p_value | Receives the parsed value |
[in] | p_chunk | The chunk containing the value |
false
if any error occured
|
inlinevirtual |
To chunk writer function.
[in] | p_obj | The object to write |
[in] | p_file | The file |
false
if any error occured Referenced by Castor3D::BinaryParser< RenderTarget >::Fill().
|
pure virtual |
To chunk writer function.
[in] | p_obj | The object to write |
[in] | p_chunk | The chunk |
false
if any error occured Implemented in Castor3D::Scene::BinaryParser, Castor3D::OverlayCategory::BinaryParser, Castor3D::SceneNode::BinaryParser, Castor3D::RenderTarget::BinaryParser, Castor3D::Submesh::BinaryParser, Castor3D::Material::BinaryParser, Castor3D::Overlay::BinaryParser, Castor3D::Mesh::BinaryParser, Castor3D::ShaderProgram::BinaryParser, Castor3D::Viewport::BinaryParser, Castor3D::Pass::BinaryParser, Castor3D::RenderWindow::BinaryParser, Castor3D::MovableObject::BinaryParser, Castor3D::Sampler::BinaryParser, Castor3D::TextureUnit::BinaryParser, Castor3D::ShaderObject::BinaryParser, Castor3D::Face::BinaryParser, Castor3D::LightCategory::BinaryParser, Castor3D::Animation::BinaryParser, Castor3D::AnimationObject::BinaryParser, Castor3D::SkeletonAnimationNode::BinaryParser, Castor3D::KeyFrame::BinaryParser, Castor3D::SkeletonAnimationBone::BinaryParser, Castor3D::SkeletonAnimationObject::BinaryParser, and Castor3D::Animable::BinaryParser.
|
inlinevirtual |
From file reader function.
[out] | p_obj | The object to read |
[in] | p_file | The file containing the chunk |
false
if any error occured Referenced by Castor3D::BinaryParser< RenderTarget >::Parse().
|
pure virtual |
From chunk reader function.
[out] | p_obj | The object to read |
[in] | p_chunk | The chunk |
false
if any error occured Implemented in Castor3D::Scene::BinaryParser, Castor3D::OverlayCategory::BinaryParser, Castor3D::SceneNode::BinaryParser, Castor3D::RenderTarget::BinaryParser, Castor3D::Submesh::BinaryParser, Castor3D::Material::BinaryParser, Castor3D::Overlay::BinaryParser, Castor3D::Mesh::BinaryParser, Castor3D::ShaderProgram::BinaryParser, Castor3D::Viewport::BinaryParser, Castor3D::Pass::BinaryParser, Castor3D::RenderWindow::BinaryParser, Castor3D::MovableObject::BinaryParser, Castor3D::Sampler::BinaryParser, Castor3D::TextureUnit::BinaryParser, Castor3D::ShaderObject::BinaryParser, Castor3D::Face::BinaryParser, Castor3D::LightCategory::BinaryParser, Castor3D::Animation::BinaryParser, Castor3D::AnimationObject::BinaryParser, Castor3D::SkeletonAnimationNode::BinaryParser, Castor3D::KeyFrame::BinaryParser, Castor3D::SkeletonAnimationBone::BinaryParser, Castor3D::SkeletonAnimationObject::BinaryParser, and Castor3D::Animable::BinaryParser.
|
protected |
The current folder path.