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

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

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

Inheritance diagram for dcpp::io::IAttributeExchangingObject:
Inheritance graph
Collaboration diagram for dcpp::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 dcpp::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.
 
i32 getReferenceCount () const
 Get the reference count.
 
const c8getDebugName () const
 Returns the debug name of the object.
 

Additional Inherited Members

- Protected Member Functions inherited from dcpp::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 dcpp::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 dcpp::scene::IParticleSystemSceneNode, dcpp::scene::ICameraSceneNode, dcpp::gui::IGUIElement, dcpp::scene::ISceneNode, and dcpp::scene::ISceneNodeAnimator.

◆ serializeAttributes()

virtual void dcpp::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 dcpp::scene::IParticleSystemSceneNode, dcpp::scene::ICameraSceneNode, dcpp::gui::IGUIElement, dcpp::scene::ISceneNode, and dcpp::scene::ISceneNodeAnimator.


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

Duckcpp    @cppfx.xyz