C# Class TagTool.Definitions.Definition

Afficher le fichier Open project: TheGuardians/TagTool

Méthodes publiques

Méthode Description
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).

Method Details

Compare() public static méthode

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.
Résultat int

Detect() public static méthode

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.
Résultat DefinitionSet

DetectFromTimestamp() public static méthode

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.
Résultat DefinitionSet

GetTimestamp() public static méthode

Gets the timestamp for a version.
public static GetTimestamp ( DefinitionSet version ) : long
version DefinitionSet The version.
Résultat long

GetVersionString() public static méthode

Gets the version string corresponding to an DefinitionSet value.
public static GetVersionString ( DefinitionSet version ) : string
version DefinitionSet The version.
Résultat string

IsBetween() public static méthode

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.
Résultat bool