arsa  2.7
IAttributeExchangingObject.h
Go to the documentation of this file.
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 irrlicht.h
4 
5 #ifndef __I_ATTRIBUTE_EXCHANGING_OBJECT_H_INCLUDED__
6 #define __I_ATTRIBUTE_EXCHANGING_OBJECT_H_INCLUDED__
7 
8 #include "IReferenceCounted.h"
9 
10 
11 namespace irr
12 {
13 
14 namespace io
15 {
16 
17 class IAttributes;
18 
21 {
23  EARWF_FOR_FILE = 0x00000001,
24 
26  EARWF_FOR_EDITOR = 0x00000002,
27 
30 };
31 
32 
35 {
38  : Flags(0), Filename(0)
39  {
40  }
41 
44 
47 };
48 
49 
52 {
53 public:
54 
56 
58  virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const {}
59 
61 
64 
65 };
66 
67 } // end namespace io
68 } // end namespace irr
69 
70 #endif
71 
E_ATTRIBUTE_READ_WRITE_FLAGS
Enumeration flags passed through SAttributeReadWriteOptions to the IAttributeExchangingObject object.
An object which is able to serialize and deserialize its attributes into an attributes object.
Provides a generic interface for attributes and their values and the possibility to serialize them.
Definition: IAttributes.h:41
s32 Flags
Combination of E_ATTRIBUTE_READ_WRITE_FLAGS or other, custom ones.
struct holding data describing options
Serialization/Deserializion is done for an editor property box.
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6
signed int s32
32 bit signed variable.
Definition: irrTypes.h:70
const fschar_t * Filename
Optional filename.
virtual void serializeAttributes(io::IAttributes *out, io::SAttributeReadWriteOptions *options=0) const
Writes attributes of the object.
Serialization/Deserializion is done for an xml file.
Base class of most objects of the Irrlicht Engine.
When writing filenames, relative paths should be used.
virtual void deserializeAttributes(io::IAttributes *in, io::SAttributeReadWriteOptions *options=0)
Reads attributes of the object.
GLuint in
char fschar_t
Type name for character type used by the file system.
Definition: irrTypes.h:165