Package bmrblib :: Module version :: Class Star_version
[hide private]
[frames] | no frames]

Class Star_version

source code


A singleton for storing the NMR-STAR version information.

Instance Methods [hide private]
 
set_version(self, version)
Set the version number and extract the major, minor and revision numbers.
source code
 
parse_version(self)
Convert the version number string into the major, minor, and revision numbers.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(self, *args, **kargs)
Replacement function for implementing the singleton design pattern.
source code
Class Variables [hide private]
  instance = Star_version()
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(self, *args, **kargs)
Static Method

source code 

Replacement function for implementing the singleton design pattern.

Returns: a new object with type S, a subtype of T
Overrides: object.__new__

set_version(self, version)

source code 

Set the version number and extract the major, minor and revision numbers.

Parameters:
  • version (str) - The NMR-STAR version number.