Trees | Indices | Help |
---|
|
Create a basic field for an ais message
Here is one of the simplest possible examples of an integer that goes from 0 to 255:
FIX: how do I do epydoc indented text?
./aisfield.py -n MyName -t uint -d "My unsigned integer field"
<field name="MyName" numberofbits="8" type="uint"> <description>My unsigned integer field</description> </field>Author: Kurt Schwehr
Version: 5231
Copyright: 2006
Since: 2006-Sep-21
Status: under development
Organization: CCOM
License: GPL
|
|||
|
tag(outfile,
tagName,
value,
indent='') Write out one complete tag |
||
|
getStubFieldDict() Convenience for thos that just want to tweak one or two things |
||
|
makeField(options,
out=sys.stdout) Write out one field of xml. |
||
|
validate(options,
notify=True) Check all of the options to make sure they work |
|
|||
|
__date__ = '2006-12-20' Date of last svn commit |
||
|
typeBitsGuess = {'sdecimal': 8, 'double': 64, 'sint': 8, 'float': 32... Best initial guess for each type size. |
||
|
typeChoices = ['bool', 'uint', 'sint', 'udecimal', 'sdecimal', 'fl... List of all the available types that may be used to fill an AIS message. |
||
|
numberTypes = ['uint', 'sint', 'udecimal', 'sdecimal', 'float', 'd... Subset of typeChoices that only has the numeric types |
|
|
|
Write out one field of xml. Here is a sample options dict {'maxRange': None, 'outputFile': None, 'lut': None, 'description': None, 'notes': None, 'required': None, 'minRange': None, 'numberOfBits': 1, 'units': None, 'scale': None, 'arrayLength': None, 'completeXml': False, 'decimalPlaces': None, 'unavailable': None, 'type': 'bool', 'name': None}
|
|
|
__date__Date of last svn commit
|
typeBitsGuessBest initial guess for each type size. The floating point and string values must be these sizes.
|
typeChoicesList of all the available types that may be used to fill an AIS message.
|
numberTypesSubset of typeChoices that only has the numeric types
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Wed Jan 17 23:35:08 2007 | http://epydoc.sourceforge.net |