31 lines
689 B
C#
31 lines
689 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace Lucidiot.Raima {
|
|
public abstract class ReadOnlyDatabaseStorage : IDatabaseStorage {
|
|
#region IDatabaseStorage Members
|
|
|
|
public bool CanRead {
|
|
get { return true; }
|
|
}
|
|
|
|
public bool CanWrite {
|
|
get { return false; }
|
|
}
|
|
|
|
public abstract bool Exists(string fileName);
|
|
|
|
public abstract BinaryReader GetReader(string fileName);
|
|
|
|
public BinaryWriter GetWriter(string fileName) {
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
public void Delete(string fileName) {
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|