Autogenerated python functions to serialize/deserialize binary
messages.
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.
BitVector
|
encode(params,
validate=False)
Create a alltypesmsg binary message payload to pack into an AIS
Msg alltypesmsg.
|
dict
|
decode(bv,
validate=False)
Unpack a alltypesmsg message
|
|
decodedac(bv,
validate=False)
|
|
decodereqDecimal(bv,
validate=False)
|
|
decodeunavail_uint(bv,
validate=False)
|
|
decodeanUInt(bv,
validate=False)
|
|
decodeanInt(bv,
validate=False)
|
|
decodeaBool(bv,
validate=False)
|
|
decodeaStr(bv,
validate=False)
|
|
decodeanUDecimal(bv,
validate=False)
|
|
decodeaDecimal(bv,
validate=False)
|
|
decodeaFloat(bv,
validate=False)
|
|
printHtml(params,
out=sys.stdout)
|
stdout
|
printFields(params,
out=sys.stdout,
format='std',
fieldList=None)
Print a aFloat message to stdout.
|
str
|
sqlCreateStr(outfile=sys.stdout,
fields=None,
extraFields=None,
addCoastGuardFields=True)
Return the SQL CREATE command for this message type
|
sqlhelp.create
|
sqlCreate(fields=None,
extraFields=None,
addCoastGuardFields=True)
Return the sqlhelp object to create the table.
|
str
|
sqlInsertStr(params,
outfile=sys.stdout,
extraParams=None)
Return the SQL CREATE command for this message type
|
sqlhelp.insert
|
sqlInsert(params,
extraParams=None)
Give the SQL insert statement
|
dict
|
testParams()
Return a params file base on the testvalue tags.
|
|
addMsgOptions(parser)
|
|
__date__ = '2007-02-08'
Date of last svn commit
|
|
TrueBV = <ais.BitVector.BitVector object at 0xb42f690>
Why always rebuild the True bit? This should speed things up a
bunch
|
|
FalseBV = <ais.BitVector.BitVector object at 0xb42f470>
Why always rebuild the False bit? This should speed things up a
bunch
|
|
fieldList = ['dac', 'reqDecimal', 'unavail_uint', 'anUInt', 'anI...
|
|
typeChoices = 'binary', 'nmeapayload', 'nmea'
|
|
outputChoices = 'std', 'html', 'csv', 'sql'
|
|
outfile = file(options.outputFileName, 'w')
|
|
msgDict = {'dac': '366', 'reqDecimal': '122', 'unavail_uint': ...
|
|
bitLen = len(bits)
|
|
bits = bits+ BitVector(size= (6-(bitLen % 6)))
|
|
buf = StringIO.StringIO()
|
|
result = buf.getvalue()
|