Rebel Fork Framework
Urho3D::PrefabReader Class Referenceabstract

#include <Urho3D/Scene/PrefabReader.h>

Inheritance diagram for Urho3D::PrefabReader:
Urho3D::NonCopyable Urho3D::PrefabReaderFromArchive Urho3D::PrefabReaderFromMemory

Public Member Functions

virtual const SerializablePrefabReadNode ()=0
 
virtual unsigned ReadNumComponents ()=0
 
virtual const SerializablePrefabReadComponent ()=0
 
virtual unsigned ReadNumChildren ()=0
 
virtual void BeginChild ()=0
 
virtual void EndChild ()=0
 
virtual bool IsEOF () const =0
 

Additional Inherited Members

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

Detailed Description

Interface of a class that provides prefab data. Useful for writing generic code in Node and Scene serialization. Call order:

  • ReadNode() should be called first exactly once.
  • ReadNumComponents() should be called after ReadNode() exactly once.
  • ReadComponent() should be called after ReadNumComponents() the exact number of times.
  • ReadNumChildren() should be called after all calls to ReadComponent() exactly once.
  • BeginChild() and then EndChild() should be called after ReadNumChildren() the exact number of times.
  • The sequence above should be recursively repeated between BeginChild() and EndChild().
  • Previously returned pointers should not be used after the call to ReadNode() or ReadComponent().

The documentation for this class was generated from the following file: