bool Rect::Serialize(const char* filePath) { XMLSerializer* serializer = new XMLSerializer(filePath); if (false == Serialize(serializer)) return serializer->Close(); serializer->Save(); return serializer->Close(); }
bool Rect::Deserialize(const char* filePath) { XMLSerializer* serializer = XMLSerializer::Load(filePath); if (serializer == nullptr) return false; this->Deserialize(serializer); return serializer->Close(); }