Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IAttributeExchangingObject.hpp
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_ATTRIBUTE_EXCHANGING_OBJECT_HPP_INCLUDED
6#define NIRT_I_ATTRIBUTE_EXCHANGING_OBJECT_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
9
10
11namespace nirt
12{
13
14namespace io
15{
16
17class IAttributes;
18
21{
23 EARWF_FOR_FILE = 0x00000001,
24
26 EARWF_FOR_EDITOR = 0x00000002,
27
29 EARWF_USE_RELATIVE_PATHS = 0x00000004
30};
31
32
35{
36public:
39 : Flags(0), Filename(0)
40 {
41 }
42
43public:
46
49};
50
51
54{
55public:
56
58
61
63
66
67};
68
69} // end namespace io
70} // end namespace nirt
71
72#endif
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

Nirtcpp    @cppfx.xyz

Esvcpp    esv::print