indra::base::llsd Namespace Reference


Classes

class  LLSDParseError
class  LLSDSerializationError
class  binary
class  uri
class  Nothing
class  LLSDXMLFormatter
class  LLSDNotationFormatter
class  LLSDBinaryParser
class  LLSDNotationParser
class  LLSD

Functions

def format_datestr
def parse_datestr
def bool_to_python
def int_to_python
def real_to_python
def uuid_to_python
def str_to_python
def bin_to_python
def date_to_python
def uri_to_python
def map_to_python
def array_to_python
def to_python
def format_xml
def format_notation
def _hex_as_nybble
def format_binary
def _format_binary_recurse
def parse
def llsd_convert_xml
def llsd_convert_binary

Variables

tuple int_regex = re.compile("[-+]?\d+")
tuple real_regex = re.compile("[-+]?(\d+(\.\d*)?|\d*\.\d+)([eE][-+]?\d+)?")
tuple alpha_regex = re.compile("[a-zA-Z]+")
tuple date_regex = re.compile("(?P<year>\d{4})-(?P<month>\d{2})-(?P<day>\d{2})T(?P<hour>\d{2}):(?P<minute>\d{2}):(?P<second>\d{2})(?P<second_float>\.\d{2})?Z")
tuple BOOL_TRUE = ('1', '1.0', 'true')
tuple BOOL_FALSE = ('0', '0.0', 'false', '')
tuple NODE_HANDLERS
tuple undef = LLSD(None)


Detailed Description

\
@file llsd.py
@brief Types as well as parsing and formatting functions for handling LLSD.

$LicenseInfo:firstyear=2006&license=mit$

Copyright (c) 2006-2008, Linden Research, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
$/LicenseInfo$

Function Documentation

def indra::base::llsd::_format_binary_recurse (   something  )  [private]

Definition at line 766 of file llsd.py.

def indra::base::llsd::_hex_as_nybble (   hex  )  [private]

Definition at line 310 of file llsd.py.

def indra::base::llsd::array_to_python (   node  ) 

Definition at line 142 of file llsd.py.

def indra::base::llsd::bin_to_python (   node  ) 

Definition at line 121 of file llsd.py.

def indra::base::llsd::bool_to_python (   node  ) 

Definition at line 96 of file llsd.py.

def indra::base::llsd::date_to_python (   node  ) 

Definition at line 124 of file llsd.py.

def indra::base::llsd::format_binary (   something  ) 

Definition at line 763 of file llsd.py.

def indra::base::llsd::format_datestr (   v  ) 

Formats a datetime object into the string format shared by xml and notation serializations.

Definition at line 63 of file llsd.py.

def indra::base::llsd::format_notation (   something  ) 

Definition at line 307 of file llsd.py.

def indra::base::llsd::format_xml (   something  ) 

Definition at line 243 of file llsd.py.

def indra::base::llsd::int_to_python (   node  ) 

Definition at line 103 of file llsd.py.

def indra::base::llsd::llsd_convert_binary (   llsd_stuff,
  request 
)

Definition at line 854 of file llsd.py.

def indra::base::llsd::llsd_convert_xml (   llsd_stuff,
  request 
)

Definition at line 851 of file llsd.py.

def indra::base::llsd::map_to_python (   node  ) 

Definition at line 136 of file llsd.py.

def indra::base::llsd::parse (   something  ) 

Definition at line 811 of file llsd.py.

def indra::base::llsd::parse_datestr (   datestr  ) 

Parses a datetime object from the string format shared by xml and notation serializations.

Definition at line 74 of file llsd.py.

def indra::base::llsd::real_to_python (   node  ) 

Definition at line 109 of file llsd.py.

def indra::base::llsd::str_to_python (   node  ) 

Definition at line 118 of file llsd.py.

def indra::base::llsd::to_python (   node  ) 

Definition at line 160 of file llsd.py.

def indra::base::llsd::uri_to_python (   node  ) 

Definition at line 130 of file llsd.py.

def indra::base::llsd::uuid_to_python (   node  ) 

Definition at line 115 of file llsd.py.


Variable Documentation

tuple indra::base::llsd::alpha_regex = re.compile("[a-zA-Z]+")

Definition at line 41 of file llsd.py.

tuple indra::base::llsd::BOOL_FALSE = ('0', '0.0', 'false', '')

Definition at line 60 of file llsd.py.

tuple indra::base::llsd::BOOL_TRUE = ('1', '1.0', 'true')

Definition at line 59 of file llsd.py.

tuple indra::base::llsd::date_regex = re.compile("(?P<year>\d{4})-(?P<month>\d{2})-(?P<day>\d{2})T(?P<hour>\d{2}):(?P<minute>\d{2}):(?P<second>\d{2})(?P<second_float>\.\d{2})?Z")

Definition at line 42 of file llsd.py.

tuple indra::base::llsd::int_regex = re.compile("[-+]?\d+")

Definition at line 39 of file llsd.py.

Initial value:

dict(
    undef=lambda x: None,
    boolean=bool_to_python,
    integer=int_to_python,
    real=real_to_python,
    uuid=uuid_to_python,
    string=str_to_python,
    binary=bin_to_python,
    date=date_to_python,
    uri=uri_to_python,
    map=map_to_python,
    array=array_to_python,
    )

Definition at line 146 of file llsd.py.

tuple indra::base::llsd::real_regex = re.compile("[-+]?(\d+(\.\d*)?|\d*\.\d+)([eE][-+]?\d+)?")

Definition at line 40 of file llsd.py.

Definition at line 837 of file llsd.py.

Referenced by LLSD::Impl::ref().


Generated on Fri May 16 09:42:23 2008 for SecondLife by  doxygen 1.5.5