namespace RainmeterStudio.Model
{
    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);
    }
}