Package ais :: Module exampleParser
[hide private]
[frames] | no frames]

Module exampleParser

source code

Autogenerated python functions to serialize/deserialize binary messages.

WRITTEN BY HAND. THIS VERSION IS FOR ME TO WRITE THE CODE BEFORE HAND. Then I can create the code generator.

Generated by: ./xmlbinmsg.py

Need to then wrap these functions with the outer AIS packet and then convert the whole binary blob to a NMEA string. Those functions are not currently provided in this file.

serialize: python to ais binary deserialize: ais binary to python

The generated code uses translators.py, binary.py, and aisstring.py which should be packaged with the resulting files.


Requires:

Author: xmlbinmsg

Version: 4791

Status: under development

License: Generated code has no license

Date: 2006-10-18

Functions [hide private]
 
waterlevelEncode(*aDict, **params)
Serializer for the waterlevel binary message
source code
Function Details [hide private]

waterlevelEncode(*aDict, **params)

source code 

Serializer for the waterlevel binary message

Keywords and types:
  • dac: uint
  • unavail_uint: uint
  • uint: uint

FIX: generate CORRECT doctest string that does all the defaults

The default message:
>>> print waterlevelEncode()
1011011101100
Parameters:
  • aDict - for passing in a dictionary of keyword and values.
  • params - keyword dictionary or if a dict is passed, it will use that dict

Note: only use one of aDict or params