Skip to content

Commit

Permalink
Changed field references to IFileReference. Issue fo-dicom#69
Browse files Browse the repository at this point in the history
  • Loading branch information
anders9ustafsson committed Aug 31, 2015
1 parent f074c5c commit 7e9e387
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DICOM/DicomFile.cs
Expand Up @@ -27,7 +27,7 @@ public DicomFile(DicomDataset dataset)
Format = DicomFileFormat.DICOM3;
}

public FileReference File { get; protected set; }
public IFileReference File { get; protected set; }

public DicomFileFormat Format { get; protected set; }

Expand Down
4 changes: 2 additions & 2 deletions DICOM/IO/Buffer/FileByteBuffer.cs
Expand Up @@ -5,7 +5,7 @@ namespace Dicom.IO.Buffer
{
public sealed class FileByteBuffer : IByteBuffer
{
public FileByteBuffer(FileReference file, long Position, uint Length)
public FileByteBuffer(IFileReference file, long Position, uint Length)
{
this.File = file;
this.Position = Position;
Expand All @@ -20,7 +20,7 @@ public bool IsMemory
}
}

public FileReference File { get; private set; }
public IFileReference File { get; private set; }

public long Position { get; private set; }

Expand Down
4 changes: 2 additions & 2 deletions DICOM/IO/FileByteSource.cs
Expand Up @@ -11,7 +11,7 @@ namespace Dicom.IO
{
public class FileByteSource : IByteSource, IDisposable
{
private FileReference _file;
private IFileReference _file;

private Stream _stream;

Expand All @@ -27,7 +27,7 @@ public class FileByteSource : IByteSource, IDisposable

private object _lock;

public FileByteSource(FileReference file)
public FileByteSource(IFileReference file)
{
_file = file;
_stream = _file.OpenRead();
Expand Down
4 changes: 2 additions & 2 deletions DICOM/IO/FileByteTarget.cs
Expand Up @@ -8,7 +8,7 @@ namespace Dicom.IO
{
public class FileByteTarget : IDisposable, IByteTarget
{
private FileReference _file;
private IFileReference _file;

private Stream _stream;

Expand All @@ -18,7 +18,7 @@ public class FileByteTarget : IDisposable, IByteTarget

private object _lock;

public FileByteTarget(FileReference file)
public FileByteTarget(IFileReference file)
{
_file = file;
_stream = _file.OpenWrite();
Expand Down

0 comments on commit 7e9e387

Please sign in to comment.