C# Class Bamboo.Prevalence.Implementation.NumberedFileBase

Base class for the file naming strategies.
Datei anzeigen Open project: bamboo/Bamboo.Prevalence

Protected Properties

Property Type Description
_nextNumber long
_prevalenceBase System.IO.DirectoryInfo

Protected Methods

Method Description
FormatFileInfo ( string format, long number ) : FileInfo

Formats a file name and returns the corresponding FileInfo object relative to _prevalenceBase.

NextFileInfo ( string format ) : FileInfo

Formats a FileInfo with the current value of _nextNumber and increments it.

NumberFromFileInfo ( FileInfo info ) : long

Returns the file logical number from its name.

NumberedFileBase ( DirectoryInfo prevalenceBase, long nextNumber ) : System

Method Details

FormatFileInfo() protected method

Formats a file name and returns the corresponding FileInfo object relative to _prevalenceBase.
protected FormatFileInfo ( string format, long number ) : FileInfo
format string
number long
return System.IO.FileInfo

NextFileInfo() protected method

Formats a FileInfo with the current value of _nextNumber and increments it.
protected NextFileInfo ( string format ) : FileInfo
format string
return System.IO.FileInfo

NumberFromFileInfo() protected static method

Returns the file logical number from its name.
protected static NumberFromFileInfo ( FileInfo info ) : long
info System.IO.FileInfo
return long

NumberedFileBase() protected method

protected NumberedFileBase ( DirectoryInfo prevalenceBase, long nextNumber ) : System
prevalenceBase System.IO.DirectoryInfo
nextNumber long
return System

Property Details

_nextNumber protected_oe property

Next logical file number.
protected long _nextNumber
return long

_prevalenceBase protected_oe property

Directory where the files are stored.
protected DirectoryInfo,System.IO _prevalenceBase
return System.IO.DirectoryInfo