Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
tornado.options._Option Class Reference

List of all members.

Public Member Functions

def __init__
def parse
def set
def value

Public Attributes

 callback
 default
 file_name
 group_name
 help
 metavar
 multiple
 name
 type

Static Public Attributes

tuple UNSET = object()

Private Member Functions

def _parse_bool
def _parse_datetime
def _parse_string
def _parse_timedelta

Private Attributes

 _value

Static Private Attributes

list _DATETIME_FORMATS
string _FLOAT_PATTERN = r'[-+]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][-+]?\d+)?'
tuple _TIMEDELTA_ABBREV_DICT
list _TIMEDELTA_ABBREVS
tuple _TIMEDELTA_PATTERN

Detailed Description

Definition at line 374 of file options.py.


Constructor & Destructor Documentation

def tornado.options._Option.__init__ (   self,
  name,
  default = None,
  type = basestring_type,
  help = None,
  metavar = None,
  multiple = False,
  file_name = None,
  group_name = None,
  callback = None 
)

Definition at line 377 of file options.py.


Member Function Documentation

def tornado.options._Option._parse_bool (   self,
  value 
) [private]

Definition at line 495 of file options.py.

def tornado.options._Option._parse_datetime (   self,
  value 
) [private]

Definition at line 451 of file options.py.

def tornado.options._Option._parse_string (   self,
  value 
) [private]

Definition at line 498 of file options.py.

def tornado.options._Option._parse_timedelta (   self,
  value 
) [private]

Definition at line 478 of file options.py.

def tornado.options._Option.parse (   self,
  value 
)

Definition at line 396 of file options.py.

def tornado.options._Option.set (   self,
  value 
)

Definition at line 420 of file options.py.

Definition at line 393 of file options.py.


Member Data Documentation

Initial value:
[
        "%a %b %d %H:%M:%S %Y",
        "%Y-%m-%d %H:%M:%S",
        "%Y-%m-%d %H:%M",
        "%Y-%m-%dT%H:%M",
        "%Y%m%d %H:%M:%S",
        "%Y%m%d %H:%M",
        "%Y-%m-%d",
        "%Y%m%d",
        "%H:%M:%S",
        "%H:%M",
    ]

Definition at line 438 of file options.py.

string tornado::options._Option::_FLOAT_PATTERN = r'[-+]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][-+]?\d+)?' [static, private]

Definition at line 473 of file options.py.

Initial value:
dict(
        (abbrev, full) for full, abbrevs in _TIMEDELTA_ABBREVS
        for abbrev in abbrevs)

Definition at line 469 of file options.py.

Initial value:
[
        ('hours', ['h']),
        ('minutes', ['m', 'min']),
        ('seconds', ['s', 'sec']),
        ('milliseconds', ['ms']),
        ('microseconds', ['us']),
        ('days', ['d']),
        ('weeks', ['w']),
    ]

Definition at line 459 of file options.py.

Initial value:
re.compile(
        r'\s*(%s)\s*(\w*)\s*' % _FLOAT_PATTERN, re.IGNORECASE)

Definition at line 475 of file options.py.

Definition at line 377 of file options.py.

Definition at line 377 of file options.py.

Definition at line 377 of file options.py.

Definition at line 377 of file options.py.

Definition at line 377 of file options.py.

Definition at line 377 of file options.py.

Definition at line 377 of file options.py.

Definition at line 377 of file options.py.

Definition at line 377 of file options.py.

Definition at line 377 of file options.py.

tuple tornado::options._Option::UNSET = object() [static]

Definition at line 375 of file options.py.


The documentation for this class was generated from the following file:


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Thu Aug 27 2015 14:50:40