C# 클래스 Bamboo.Prevalence.Implementation.NumberedFileBase

Base class for the file naming strategies.
파일 보기 프로젝트 열기: bamboo/Bamboo.Prevalence

보호된 프로퍼티들

프로퍼티 타입 설명
_nextNumber long
_prevalenceBase System.IO.DirectoryInfo

보호된 메소드들

메소드 설명
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

메소드 상세

FormatFileInfo() 보호된 메소드

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

NextFileInfo() 보호된 메소드

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

NumberFromFileInfo() 보호된 정적인 메소드

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

NumberedFileBase() 보호된 메소드

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

프로퍼티 상세

_nextNumber 보호되어 있는 프로퍼티

Next logical file number.
protected long _nextNumber
리턴 long

_prevalenceBase 보호되어 있는 프로퍼티

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