Public Member Functions | 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

 default
 file_name
 group_name
 help
 metavar
 multiple
 name
 type

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 186 of file options.py.


Constructor & Destructor Documentation

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

Definition at line 187 of file options.py.


Member Function Documentation

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

Definition at line 299 of file options.py.

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

Definition at line 255 of file options.py.

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

Definition at line 302 of file options.py.

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

Definition at line 282 of file options.py.

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

Definition at line 204 of file options.py.

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

Definition at line 226 of file options.py.

Definition at line 201 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 242 of file options.py.

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

Definition at line 277 of file options.py.

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

Definition at line 273 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 263 of file options.py.

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

Definition at line 279 of file options.py.

Definition at line 187 of file options.py.

Definition at line 187 of file options.py.

Definition at line 187 of file options.py.

Definition at line 187 of file options.py.

Definition at line 187 of file options.py.

Definition at line 187 of file options.py.

Definition at line 187 of file options.py.

Definition at line 187 of file options.py.

Definition at line 187 of file options.py.


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


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Mon Oct 6 2014 06:58:14