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

Module aisxml2wxpy

source code

Build a wxpython interface that uses the aisxmlbinmsg2py generated file to create a message string.

aisxmlbinmsg2py was getting too long, so this functionality is completely broken out.


Requires:

Author: Kurt Schwehr

Version: 4791

Copyright: 2006

Since: 2006-Sep-24

Status: under development

Organization: CCOM

License: GPL v2

Bugs:

Date: 2006-09-24

Functions [hide private]
 
hasSubTag(et, subtag)
Returns: true if the tag a sub tag with name subtag
source code
 
hasBoolField(et)
Returns: true there exists a bool type field
source code
 
useChoice(field)
Returns: true if should use a wxChoice for this field
source code
 
createChoiceList(o, fieldET)
Create the wx.Choice list of entries
source code
 
generateWxPython(infile, outfile, prefixName=False, verbose=False) source code
 
buildWxPythonMsg(o, msgET, verbose=False, prefixName=False)
Write a class for the wx python.
source code
Function Details [hide private]

hasSubTag(et, subtag)

source code 
Returns:
true if the tag a sub tag with name subtag

hasBoolField(et)

source code 
Parameters:
  • et - message element tree
Returns:
true there exists a bool type field

useChoice(field)

source code 
Parameters:
  • field - Field element tree
Returns:
true if should use a wxChoice for this field

generateWxPython(infile, outfile, prefixName=False, verbose=False)

source code 
Parameters:
  • infile - xml ais binary message definition file
  • outfile - where to dump the python code

buildWxPythonMsg(o, msgET, verbose=False, prefixName=False)

source code 
Write a class for the wx python.
Parameters:
  • o - open file where resulting code will be written
  • msgET - Element Tree starting at a message node
To Do:
  • for lookuptable/entry values, make it also print the decoded value.
  • use a different name for message and field