C# Класс TagTool.Definitions.Definition

Показать файл Открыть проект

Открытые методы

Метод Описание
Compare ( DefinitionSet lhs, DefinitionSet rhs ) : int

Compares two version numbers.

Detect ( TagCache cache, DefinitionSet &closestGuess ) : DefinitionSet

Detects the engine that a tags.dat was built for.

DetectFromTimestamp ( long timestamp, DefinitionSet &closestGuess ) : DefinitionSet

Detects the engine that a tags.dat was built for based on its timestamp.

GetTimestamp ( DefinitionSet version ) : long

Gets the timestamp for a version.

GetVersionString ( DefinitionSet version ) : string

Gets the version string corresponding to an DefinitionSet value.

IsBetween ( DefinitionSet compare, DefinitionSet min, DefinitionSet max ) : bool

Determines whether a version number is between two other version numbers (inclusive).

Описание методов

Compare() публичный статический Метод

Compares two version numbers.
public static Compare ( DefinitionSet lhs, DefinitionSet rhs ) : int
lhs DefinitionSet The left-hand version number.
rhs DefinitionSet The right-hand version number.
Результат int

Detect() публичный статический Метод

Detects the engine that a tags.dat was built for.
public static Detect ( TagCache cache, DefinitionSet &closestGuess ) : DefinitionSet
cache TagTool.Cache.TagCache The cache file.
closestGuess DefinitionSet On return, the closest guess for the engine's version.
Результат DefinitionSet

DetectFromTimestamp() публичный статический Метод

Detects the engine that a tags.dat was built for based on its timestamp.
public static DetectFromTimestamp ( long timestamp, DefinitionSet &closestGuess ) : DefinitionSet
timestamp long The timestamp.
closestGuess DefinitionSet On return, the closest guess for the engine's version.
Результат DefinitionSet

GetTimestamp() публичный статический Метод

Gets the timestamp for a version.
public static GetTimestamp ( DefinitionSet version ) : long
version DefinitionSet The version.
Результат long

GetVersionString() публичный статический Метод

Gets the version string corresponding to an DefinitionSet value.
public static GetVersionString ( DefinitionSet version ) : string
version DefinitionSet The version.
Результат string

IsBetween() публичный статический Метод

Determines whether a version number is between two other version numbers (inclusive).
public static IsBetween ( DefinitionSet compare, DefinitionSet min, DefinitionSet max ) : bool
compare DefinitionSet The version number to compare. If this is , this function will always return true.
min DefinitionSet The minimum version number. If this is , then the lower bound will be ignored.
max DefinitionSet The maximum version number. If this is , then the upper bound will be ignored.
Результат bool