5#ifndef DCPP_I_ATTRIBUTE_EXCHANGING_OBJECT_HPP_INCLUDED
6#define DCPP_I_ATTRIBUTE_EXCHANGING_OBJECT_HPP_INCLUDED
8#include <duckcpp/core/engine/IReferenceCounted.hpp>
Base class of most objects of the Duckcpp Engine.
Definition IReferenceCounted.hpp:46
An object which is able to serialize and deserialize its attributes into an attributes object.
Definition IAttributeExchangingObject.hpp:54
virtual void serializeAttributes(dcpp::io::IAttributes *out, dcpp::io::SAttributeReadWriteOptions *options=0) const
Writes attributes of the object.
Definition IAttributeExchangingObject.hpp:60
virtual void deserializeAttributes(dcpp::io::IAttributes *in, dcpp::io::SAttributeReadWriteOptions *options=0)
Reads attributes of the object.
Definition IAttributeExchangingObject.hpp:65
Provides a generic interface for attributes and their values and the possibility to serialize them.
Definition IAttributes.hpp:42
class holding data describing options
Definition IAttributeExchangingObject.hpp:35
SAttributeReadWriteOptions()
Constructor.
Definition IAttributeExchangingObject.hpp:38
const fschar_kt * Filename
Optional filename.
Definition IAttributeExchangingObject.hpp:48
dcpp::int32_kt Flags
Combination of E_ATTRIBUTE_READ_WRITE_FLAGS or other, custom ones.
Definition IAttributeExchangingObject.hpp:45
E_ATTRIBUTE_READ_WRITE_FLAGS
Enumeration flags passed through SAttributeReadWriteOptions to the IAttributeExchangingObject object.
Definition IAttributeExchangingObject.hpp:21
@ EARWF_USE_RELATIVE_PATHS
When writing filenames, relative paths should be used.
Definition IAttributeExchangingObject.hpp:29
@ EARWF_FOR_FILE
Serialization/deserialization is done for an xml file.
Definition IAttributeExchangingObject.hpp:23
@ EARWF_FOR_EDITOR
Serialization/deserialization is done for an editor property box.
Definition IAttributeExchangingObject.hpp:26
As of Duckcpp 1.6, position2d is a synonym for vector2d.
Definition shared_device.hpp:34
char fschar_kt
Type name for character type used by the filesystem.
Definition irrTypes.hpp:137
signed int int32_kt
32 bit signed variable.
Definition irrTypes.hpp:72