arsa  2.7
ISceneUserDataSerializer.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_SCENE_USER_DATA_SERIALIZER_H_INCLUDED__
6 #define __I_SCENE_USER_DATA_SERIALIZER_H_INCLUDED__
7 
8 #include "IReferenceCounted.h"
9 
10 namespace irr
11 {
12 namespace io
13 {
14  class IAttributes;
15 } // end namespace io
16 namespace scene
17 {
18  class ISceneNode;
19 
21 
25 {
26 public:
27 
29 
31  virtual void OnCreateNode(ISceneNode* node) = 0;
32 
34 
36  virtual void OnReadUserData(ISceneNode* forSceneNode, io::IAttributes* userData) = 0;
37 
39 
44  virtual io::IAttributes* createUserData(ISceneNode* forSceneNode) = 0;
45 };
46 
47 } // end namespace scene
48 } // end namespace irr
49 
50 #endif
51 
virtual void OnCreateNode(ISceneNode *node)=0
Called when the scene manager create a scene node while loading a file.
Provides a generic interface for attributes and their values and the possibility to serialize them.
Definition: IAttributes.h:41
virtual void OnReadUserData(ISceneNode *forSceneNode, io::IAttributes *userData)=0
Called when the scene manager read a scene node while loading a file.
Scene node interface.
Definition: ISceneNode.h:40
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6
virtual io::IAttributes * createUserData(ISceneNode *forSceneNode)=0
Called when the scene manager is writing a scene node to an xml file for example.
Interface to read and write user data to and from .irr files.