-wxOutputStream &DoodleSegment::SaveObject(wxOutputStream& stream)
-{
- wxTextOutputStream text_stream( stream );
-
- wxInt32 n = lines.Number();
- text_stream << n << '\n';
-
- wxNode *node = lines.First();
- while (node)
- {
- DoodleLine *line = (DoodleLine *)node->Data();
- text_stream << line->x1 << " " <<
- line->y1 << " " <<
- line->x2 << " " <<
- line->y2 << "\n";
- node = node->Next();
- }
-
- return stream;
-}