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