Version

Version is a class used to work with (parse, enforce, and compare) the version scheme used for BGX Firmware. More...

Classes

class Version

Detailed Description

Version is a class used to work with (parse, enforce, and compare) the version scheme used for BGX Firmware.


Class Documentation

Version

class Version

Inherits NSObject.

Instance Methods

(id) - initWithString:
Initializes an instance from a string object from the BGX. More...
(NSComparisonResult) - compare:
Compares two version objects and returns NSComparisonResult. More...

Class Methods

( Version *) + versionFromString:
Creates a new version object from a string object from the BGX. More...

Protected Attributes

int _major
int _minor
int _build
int _revision

Properties

int major
int minor
int build
int revision

Method Documentation

versionFromString:()

+ ( Version *) versionFromString: (NSString *) versionString

Creates a new version object from a string object from the BGX.

One good place to get this is the firmwareRevision property of BGXDevice . Also, the DMS firmware list will contain a version string. You can use Version class to compare these strings.

initWithString:()

- (id) initWithString: (NSString *) versionString

Initializes an instance from a string object from the BGX.

One good place to get this is the firmwareRevision property of BGXDevice . Also, the DMS firmware list will contain a version string. You can use Version class to compare these strings.

compare:()

- (NSComparisonResult) compare: ( Version *) otherVersion

Compares two version objects and returns NSComparisonResult.

Member Data Documentation

_major

- (int) _major
protected

_minor

- (int) _minor
protected

_build

- (int) _build
protected

_revision

- (int) _revision
protected

Property Documentation

major

- (int) major
read nonatomic assign

minor

- (int) minor
read nonatomic assign

build

- (int) build
read nonatomic assign

revision

- (int) revision
read nonatomic assign