Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
None
-
None
-
Patch Available
Description
I would like to have Enumeration's for protocol, transport and server types.
I'm doing some testing stuff, and using types for the different parameter's would make it much more comfortable to work with, e.g.
// Dispatcher shared_ptr<TProtocolFactory> protocolFactory; if (protocol_type == PROTOCOL_JSON) { shared_ptr<TProtocolFactory> jsonProtocolFactory(new TJSONProtocolFactory()); protocolFactory = jsonProtocolFactory; } else { shared_ptr<TProtocolFactory> binaryProtocolFactory(new TBinaryProtocolFactory()); protocolFactory = binaryProtocolFactory; }
aligning these enums across all languages might be another benefit.
Attachments
Issue Links
- relates to
-
THRIFT-847 Test Framework harmonization across all languages
- Closed