Package roslib :: Module manifestlib :: Class Platform
[frames] | no frames]

Class Platform

source code

object --+
         |
        Platform

Manifest 'platform' tag

Instance Methods
 
__init__(self, os, version, notes=None)
Create new depend instance.
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
__eq__(self, obj)
Override equality test.
source code
str
xml(self)
Returns: instance represented as manifest XML
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties
  notes
  os
  version

Inherited from object: __class__

Method Details

__init__(self, os, version, notes=None)
(Constructor)

source code 

Create new depend instance.

Parameters:
  • os (str) - OS name. must be non-empty
  • version (str) - OS version. must be non-empty
  • notes (str) - (optional) notes about platform support
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__eq__(self, obj)
(Equality operator)

source code 

Override equality test. notes *are* considered in the equality test.

xml(self)

source code 
Returns: str
instance represented as manifest XML