Rebel Fork Framework
Urho3D::PrefabWriterToArchive Class Reference

Utility class to write prefab data to Archive. More...

#include <Urho3D/Scene/PrefabWriter.h>

Inheritance diagram for Urho3D::PrefabWriterToArchive:
Urho3D::PrefabWriter Urho3D::NonCopyable

Public Member Functions

 PrefabWriterToArchive (Archive &archive, const char *blockName, PrefabSaveFlags saveFlags={}, PrefabArchiveFlags archiveFlags={})
void WriteNode (unsigned id, const Serializable *node) override
void WriteNumComponents (unsigned numComponents) override
void WriteComponent (unsigned id, const Serializable *component) override
void WriteNumChildren (unsigned numChildren) override
void BeginChild () override
void EndChild () override
bool IsEOF () const override
PrefabSaveFlags GetFlags () const override

Private Member Functions

void NextSerializable ()
void CheckEOF ()

Private Attributes

Archive & archive_
const PrefabArchiveFlags nodeFlags_
const PrefabArchiveFlags componentFlags_
const PrefabSaveFlags saveFlags_
SerializablePrefab buffer_
bool hasRootBlock_ {}
ea::vector< ea::pair< ArchiveBlock, unsigned > > stack_
bool eof_ {}

Additional Inherited Members

Protected Member Functions inherited from Urho3D::NonCopyable
 NonCopyable (const NonCopyable &other)=delete
 NonCopyable (NonCopyable &&other)=delete
NonCopyable & operator= (const NonCopyable &other)=delete
NonCopyable & operator= (NonCopyable &&other)=delete

Detailed Description

Utility class to write prefab data to Archive.

Member Function Documentation

◆ BeginChild()

void Urho3D::PrefabWriterToArchive::BeginChild ( )
overridevirtual

Implements Urho3D::PrefabWriter.

◆ EndChild()

void Urho3D::PrefabWriterToArchive::EndChild ( )
overridevirtual

Implements Urho3D::PrefabWriter.

◆ GetFlags()

PrefabSaveFlags Urho3D::PrefabWriterToArchive::GetFlags ( ) const
inlineoverridevirtual

Implements Urho3D::PrefabWriter.

◆ IsEOF()

bool Urho3D::PrefabWriterToArchive::IsEOF ( ) const
inlineoverridevirtual

Implements Urho3D::PrefabWriter.

◆ WriteComponent()

void Urho3D::PrefabWriterToArchive::WriteComponent ( unsigned id,
const Serializable * component )
overridevirtual

Implements Urho3D::PrefabWriter.

◆ WriteNode()

void Urho3D::PrefabWriterToArchive::WriteNode ( unsigned id,
const Serializable * node )
overridevirtual

Implements Urho3D::PrefabWriter.

◆ WriteNumChildren()

void Urho3D::PrefabWriterToArchive::WriteNumChildren ( unsigned numChildren)
overridevirtual

Implements Urho3D::PrefabWriter.

◆ WriteNumComponents()

void Urho3D::PrefabWriterToArchive::WriteNumComponents ( unsigned numComponents)
overridevirtual

Implements Urho3D::PrefabWriter.


The documentation for this class was generated from the following files:
  • Urho3D/Scene/PrefabWriter.h
  • Urho3D/Scene/PrefabWriter.cpp