X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d602f1d8b65680306feff33241f1f9eced643826..f4e325b3df3d4c0b3ca21d4d1781acab6a488e4c:/include/wx/objstrm.h?ds=inline diff --git a/include/wx/objstrm.h b/include/wx/objstrm.h index a2fe96082c..f7e7f58d6f 100644 --- a/include/wx/objstrm.h +++ b/include/wx/objstrm.h @@ -23,9 +23,9 @@ class wxObjectStreamInfo : public wxObject { public: wxString object_name; - int n_children; + int n_children, children_removed; wxList children; - wxObject *parent; + wxObjectStreamInfo *parent; wxObject *object; }; @@ -33,7 +33,7 @@ class wxObjectOutputStream : public wxFilterOutputStream { public: wxObjectOutputStream(wxOutputStream& s); - void AddChildren(wxObject *obj); + void AddChild(wxObject *obj); bool SaveObject(wxObject& obj); bool FirstStage() const { return m_stage == 0; } @@ -56,7 +56,9 @@ class wxObjectInputStream : public wxFilterInputStream { wxObjectInputStream(wxInputStream& s); wxObject *GetChild(int no) const; - wxObject *GetParent() const { return m_current_info->parent; } + int NumberOfChildren() const { return m_current_info->n_children; } + void RemoveChildren(int nb); + wxObject *GetParent() const; wxObject *LoadObject(); wxObject *SolveName(const wxString& objName) const;