Package roslib_electric :: Module msgs :: Class Constant
[frames] | no frames]

Class Constant

source code

object --+
         |
        Constant

Container class for holding a Constant declaration

Instance Methods
 
__init__(self, type_, name, val, val_text)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__eq__(self, other) source code
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code

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

Properties
  name
  type
  val
  val_text

Inherited from object: __class__

Method Details

__init__(self, type_, name, val, val_text)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • type_ (str) - constant type
  • name (str) - constant name
  • val (str) - constant value
  • val_text (str) - Original text definition of  val
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)