示例#1
0
	bool Rect::Serialize(const char* filePath)
	{
		XMLSerializer* serializer = new XMLSerializer(filePath);

		if (false == Serialize(serializer))
			return serializer->Close();

		serializer->Save();

		return serializer->Close();
	}
示例#2
0
	bool Rect::Deserialize(const char* filePath)
	{
		XMLSerializer* serializer = XMLSerializer::Load(filePath);
		if (serializer == nullptr)
			return false;

		this->Deserialize(serializer);

		return serializer->Close();
	}