This class provides methods for dealing with version numbers, as well as static members for what versions of Synthesis, Synergy/DE, and the Synergy/DE UI Toolkit are in use.
Words in italics indicate an instance of a class. The word corresponds to the class name, except where more than one instance is represented in the same statement. In that case a number (2, 3, etc.) is appended to the class name.
Words in normal typeface are to be taken literally (required punctuation, class name in a static reference, method name, etc.)
The symbol => is used to separate an expression (on the left) from its return value (on the right).
An ellipsis (...) indicates that the previous argument may be repeated any number of times. The description will indicate whether one instance is required.
version operator version => boolean
version operator a => boolean
a operator version => boolean
new Version(int, int, int, a) => version
new Version(a) => version
(Version)a => version
Creates a new Version. In the first form, the integer arguments map to Primary, Major, Minor, and Letter, in that order. To omit one of these, pass 0 for the integers and "" for the alphanumeric argument.
In the second and third forms, a must contain a version number in the form d+[.d+[.d+]][a+], where each d+ maps to an integer component (Primary, Major, Minor), and a+ maps to Letter. Extra text outside this pattern is ignored. Note that a+ can contain any characters other than whitespace or a digit.
version.Letter => a
version.Letter = a
version.Major => int
version.Major = int
make_what(a, a2) => a3
This macro expands into a Unix-style what string. The Unix utility 'what' reports this string when run against an ELB or DBR that contains it. The first argument should be the product or component name, and the second argument should be an alphanumeric form of the version number. The resulting string has the format "a Version a2", with appropriate punctuation for the what utility.
Example:
const myversion, a*, "2.1.1"
const whatstr, a*, make_what("widgets R us", myversion)
version.Minor => int
version.Minor = int
version.Primary => int
version.Primary = int
Version.SynergyDE => version
Version.Synthesis => version
Version.Toolkit => version