class wxObjectStreamInfo : public wxObject {
public:
wxString object_name;
- int n_children;
+ int n_children, children_removed;
wxList children;
- wxObject *parent;
+ wxObjectStreamInfo *parent;
wxObject *object;
};
public:
wxObjectOutputStream(wxOutputStream& s);
- void AddChildren(wxObject *obj);
+ void AddChild(wxObject *obj);
bool SaveObject(wxObject& obj);
bool FirstStage() const { return m_stage == 0; }
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;