Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __CS_CSUTIL_CSEVENTFLATTENER_H__
00022 #define __CS_CSUTIL_CSEVENTFLATTENER_H__
00023
00024 #include "csextern.h"
00025
00030 struct iEvent;
00031
00035 enum csEventFlattenerError
00036 {
00038 csEventFlattenerErrorNone,
00042 csEventFlattenerErroriBaseEncountered,
00044 csEventFlattenerErrorAttributeRetrieval,
00046 csEventFlattenerErrorWrongFormat
00047 };
00048
00054 class CS_CRYSTALSPACE_EXPORT csEventFlattener
00055 {
00056 public:
00058 static csEventFlattenerError FlattenSize (iObjectRegistry*, iEvent* event,
00059 size_t& size);
00065 static csEventFlattenerError Flatten (iObjectRegistry*, iEvent* event,
00066 char *buffer);
00068 static csEventFlattenerError Unflatten (iObjectRegistry*, iEvent* event,
00069 const char *buffer, size_t length);
00070 };
00071
00072 #endif // __CS_CSUTIL_CSEVENTFLATTENER_H__