add Enumeration for protocol, transport and server types
--------------------------------------------------------

                 Key: THRIFT-819
                 URL: https://issues.apache.org/jira/browse/THRIFT-819
             Project: Thrift
          Issue Type: Improvement
          Components: Library (C++)
            Reporter: Roger Meier
         Attachments: THRIFT-819.patch

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.

{code}
  // 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;
  }

{code}

aligning these enums across all languages might be another benefit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to