- wxReader *Reader;
-public:
- virtual void NotifyReader(wxReader *_Reader)
- {
- Reader = _Reader;
- }
- virtual void AllocateObject(int ObjectID, wxClassInfo *ClassInfo);
- virtual void CreateObject(int ObjectID, wxClassInfo *ClassInfo, int ParamCount, wxxVariant *VariantValues);
- virtual void SetProperty(int ObjectID, wxClassInfo *ClassInfo, const wxPropertyInfo* PropertyInfo, const wxxVariant &VariantValue);
- virtual void SetConnect(int EventSourceObjectID,
- wxClassInfo *EventSourceClassInfo,
- int eventType ,
- const wxString &handlerName ,
- int EventSinkObjectID ) ;
+ struct wxRuntimeDepersisterInternal ;
+ wxRuntimeDepersisterInternal * m_data ;
+public :
+ wxRuntimeDepersister() ;
+ ~wxRuntimeDepersister() ;
+
+ // returns the object having the corresponding ID fully constructed
+ wxObject *GetObject(int objectID) ;
+
+ // allocate the new object on the heap, that object will have the passed in ID
+ virtual void AllocateObject(int objectID, wxClassInfo *classInfo) ;
+
+ // initialize the already allocated object having the ID ObjectID with the Create method
+ // creation parameters which are objects are having their Ids passed in objectIDValues
+ // having objectId <> wxInvalidObjectID
+
+ virtual void CreateObject(int ObjectID,
+ const wxClassInfo *ClassInfo,
+ int ParamCount,
+ wxxVariant *VariantValues ,
+ int *objectIDValues,
+ const wxClassInfo **objectClassInfos
+ ) ;
+
+ // destroy the heap-allocated object having the ID ObjectID, this may be used if an object
+ // is embedded in another object and set via value semantics, so the intermediate
+ // object can be destroyed after safely
+ virtual void DestroyObject(int objectID, wxClassInfo *classInfo) ;
+
+ // set the corresponding property
+ virtual void SetProperty(int objectID,
+ const wxClassInfo *classInfo,
+ const wxPropertyInfo* propertyInfo ,
+ const wxxVariant &variantValue);
+
+ // sets the corresponding property (value is an object)
+ virtual void SetPropertyAsObject(int objectId,
+ const wxClassInfo *classInfo,
+ const wxPropertyInfo* propertyInfo ,
+ int valueObjectId) ;
+
+
+ // sets the corresponding event handler
+ virtual void SetConnect(int eventSourceObjectID,
+ const wxClassInfo *eventSourceClassInfo,
+ const wxDelegateTypeInfo *delegateInfo ,
+ const wxClassInfo *eventSinkClassInfo ,
+ const wxHandlerInfo* handlerInfo ,
+ int eventSinkObjectID ) ;