Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
nirt::io::IAttributeExchangingObject Class Reference

An object which is able to serialize and deserialize its attributes into an attributes object. More...

#include <nirtcpp/core/engine/IAttributeExchangingObject.hpp>

Inheritance diagram for nirt::io::IAttributeExchangingObject:
Inheritance graph
Collaboration diagram for nirt::io::IAttributeExchangingObject:
Collaboration graph

Public Member Functions

virtual void serializeAttributes (io::IAttributes *out, io::SAttributeReadWriteOptions *options=0) const
 Writes attributes of the object.
 
virtual void deserializeAttributes (io::IAttributes *in, io::SAttributeReadWriteOptions *options=0)
 Reads attributes of the object.
 
- Public Member Functions inherited from nirt::IReferenceCounted
 IReferenceCounted ()
 Constructor.
 
virtual ~IReferenceCounted ()
 Destructor.
 
void grab () const
 Grabs the object. Increments the reference counter by one.
 
bool drop () const
 Drops the object. Decrements the reference counter by one.
 
s32 getReferenceCount () const
 Get the reference count.
 
const c8getDebugName () const
 Returns the debug name of the object.
 

Additional Inherited Members

- Protected Member Functions inherited from nirt::IReferenceCounted
void setDebugName (const c8 *newName)
 Sets the debug name of the object.
 

Detailed Description

An object which is able to serialize and deserialize its attributes into an attributes object.

Member Function Documentation

◆ deserializeAttributes()

virtual void nirt::io::IAttributeExchangingObject::deserializeAttributes ( io::IAttributes in,
io::SAttributeReadWriteOptions options = 0 
)
inlinevirtual

Reads attributes of the object.

Implement this to set the attributes of your scene node animator for scripting languages, editors, debuggers or xml deserialization purposes.

Reimplemented in nirt::scene::IParticleSystemSceneNode, nirt::scene::ICameraSceneNode, nirt::gui::IGUIElement, nirt::scene::ISceneNode, and nirt::scene::ISceneNodeAnimator.

◆ serializeAttributes()

virtual void nirt::io::IAttributeExchangingObject::serializeAttributes ( io::IAttributes out,
io::SAttributeReadWriteOptions options = 0 
) const
inlinevirtual

Writes attributes of the object.

Implement this to expose the attributes of your scene node animator for scripting languages, editors, debuggers or xml serialization purposes.

Reimplemented in nirt::scene::IParticleSystemSceneNode, nirt::scene::ICameraSceneNode, nirt::gui::IGUIElement, nirt::scene::ISceneNode, and nirt::scene::ISceneNodeAnimator.


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

Nirtcpp    @cppfx.xyz

Utxcpp    utx::print