5#ifndef NIRT_I_ATTRIBUTE_EXCHANGING_OBJECT_HPP_INCLUDED
6#define NIRT_I_ATTRIBUTE_EXCHANGING_OBJECT_HPP_INCLUDED
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
Base class of most objects of the Nirtcpp 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 deserializeAttributes(io::IAttributes *in, io::SAttributeReadWriteOptions *options=0)
Reads attributes of the object.
Definition IAttributeExchangingObject.hpp:65
virtual void serializeAttributes(io::IAttributes *out, io::SAttributeReadWriteOptions *options=0) const
Writes attributes of the object.
Definition IAttributeExchangingObject.hpp:60
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_t * Filename
Optional filename.
Definition IAttributeExchangingObject.hpp:48
s32 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_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
@ EARWF_USE_RELATIVE_PATHS
When writing filenames, relative paths should be used.
Definition IAttributeExchangingObject.hpp:29
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
char fschar_t
Type name for character type used by the filesystem.
Definition irrTypes.hpp:168
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72