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 (dcpp::io::IAttributes *out, dcpp::io::SAttributeReadWriteOptions *options=0) const
 Writes attributes of the object.
 
virtual void deserializeAttributes (dcpp::io::IAttributes *in, dcpp::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.
 
dcpp::int32_kt getReferenceCount () const
 Get the reference count.
 
const dcpp::char_ktgetDebugName () const
 Returns the debug name of the object.
 

Additional Inherited Members

- Protected Member Functions inherited from dcpp::IReferenceCounted
void setDebugName (const dcpp::char_kt *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 ( dcpp::io::IAttributes in,
dcpp::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 ( dcpp::io::IAttributes out,
dcpp::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