Пример #1
0
	IFile* open(const DeviceList& device_list, const Path& file, Mode mode) override
	{
		IFile* prev = createFile(device_list);

		if (prev)
		{
			if (prev->open(file, mode))
			{
				return prev;
			}
			else
			{
				prev->release();
				return nullptr;
			}
		}
		return nullptr;
	}
Пример #2
0
	void close(IFile& file) override
	{
		file.close();
		file.release();
	}