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

Functions [hide private]
  hasSubTag(et, subtag)
  hasBoolField(et)
  useChoice(field)
  createChoiceList(o, fieldET)
Create the wx.Choice list of entries
  generateWxPython(infile, outfile, prefixName=False, verbose=False)
  buildWxPythonMsg(o, msgET, verbose=False, prefixName=False)
Write a class for the wx python.

Variables [hide private]
  __date__ = '2006-09-24'
Date of last svn commit
  success = False

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

createChoiceList(o, fieldET)

source code 
Create the wx.Choice list of entries

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

Variables Details [hide private]

__date__

Date of last svn commit
Value:
'2006-09-24'                                                           
      

success

None
Value:
False