mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 22:57:56 -05:00
30 lines
764 B
Python
30 lines
764 B
Python
|
##
|
||
|
##
|
||
|
|
||
|
|
||
|
#
|
||
|
# Adapter for com.raytheon.uf.common.dataplugin.gfe.GridDataHistory
|
||
|
#
|
||
|
# TODO: REWRITE THIS ADAPTER when serialization/deserialization of this
|
||
|
# class has been finalized.
|
||
|
#
|
||
|
#
|
||
|
# SOFTWARE HISTORY
|
||
|
#
|
||
|
# Date Ticket# Engineer Description
|
||
|
# ------------ ---------- ----------- --------------------------
|
||
|
# 03/29/11 dgilling Initial Creation.
|
||
|
#
|
||
|
#
|
||
|
#
|
||
|
|
||
|
from dynamicserialize.dstypes.com.raytheon.uf.common.dataplugin.gfe import GridDataHistory
|
||
|
|
||
|
ClassAdapter = 'com.raytheon.uf.common.dataplugin.gfe.GridDataHistory'
|
||
|
|
||
|
def serialize(context, history):
|
||
|
context.writeString(history.getCodedString())
|
||
|
|
||
|
def deserialize(context):
|
||
|
result = GridDataHistory(context.readString())
|
||
|
return result
|