Package roslib :: Module os_detect :: Class OSBase
[frames] | no frames]

Class OSBase

source code

Known Subclasses:

This defines the API used for OS detection within the os_detect module for roslib. All OS specific instantiantions must inherit and override these methods.

Instance Methods
 
check_presence(self)
Return if the specific OS which this class is designed to detect is present.
source code
 
get_name(self)
Return the standardized name for this OS.
source code
 
get_version(self)
Return the standardized version for this OS.
source code
Method Details

check_presence(self)

source code 

Return if the specific OS which this class is designed to detect is present. Only one version of this class should return for any version.

get_name(self)

source code 

Return the standardized name for this OS. (ala Ubuntu Hardy Heron = "ubuntu")

get_version(self)

source code 

Return the standardized version for this OS. (ala Ubuntu Hardy Heron = "8.04")