thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Barrett <ke...@baymicrosystems.com>
Subject Re: Autogenerating conversion code
Date Wed, 27 May 2009 20:41:56 GMT
Working on a project that extends an embedded device API using Thrift.
Server is C++, and clients are Python and Java (so far).  The API uses
nested structs to collect data for the various components of the system.
To maintain its integrity, the API is prohibited from using Thrift
structures itself; so my service methods are having to stuff and unstuff
the Thrift structs as they depart and arrive.  This results in an awful
lot of "local.elementX = remote.elementX; local.elementY =
(localEnumY)remote.elementY;" code, times two for each direction.

Right now we are doing this by hand, which is a coding and maintenance
headache.  One option is to parse the IDL (or even the API source) and
autogenerate this code.  Is anybody doing this?


Kevin Barrett
kevin@baymicrosystems.com
Germantown, MD, USA




Mime
View raw message