using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RainmeterStudio.Model;
namespace RainmeterStudio.Documents
{
public interface IDocumentStorage
{
///
/// Reads a document from file
///
/// Path to file
/// Read document
IDocument Read(string path);
///
/// Writes a document to a file
///
/// Path to file
/// Document to write
void Write(string path, IDocument document);
///
/// Tests if the file can be read by this storage
///
/// Path to file
/// True if file can be read
bool CanRead(string path);
///
/// Tests if the document can be written by this storage
///
/// Document type
/// True if the document can be written
bool CanWrite(Type documentType);
}
}