Is there a C++ equivalent to
http://code.google.com/apis/protocolbuffers/docs/reference/python/google.protobuf-module.html
?
which is used to create protocol service and service stub classes from
ServiceDescriptor objects at runtime.
On Jun 29, 3:56 pm, Kenton Varda ken...@google.com wrote:
More specifically the service_reflection class.
On Jun 30, 9:26 am, rthompson.dtisoft@gmail.com
rthompson.dtisoft@gmail.com wrote:
Is there a C++ equivalent to
http://code.google.com/apis/protocolbuffers/docs/reference/python/goo...
?
which is used to create protocol service and
Right, but I'm importing a .proto file at runtime using the Importer
class. This ultimately leaves me with a ServiceDescriptor. I'd like
to instantiate that Service from the ServiceDescriptor.
The python code has a ServiceStubBuilder class. Where is there a
ServiceStubBuilder in the C++ API?
Oh, you want something like DynamicMessage except for services?
DynamicServiceStub, perhaps? There is no such thing included in the
library, but it would be really trivial to write. All you need to do is
implement the Service interface as a wrapper around the RpcChannel
interface. Have
I'm confused. Shouldn't I just create a class called
DynamicServiceStub and have it inherit from class LIBPROTOBUF_EXPORT
Service?
And then implement a method like Service* DynamicServiceStub::New
(ServiceDescriptor*, RpcChannel* ) ?
I'm just doing this on the client side. If we did this on
On Tue, Jun 30, 2009 at 4:28 PM, rthompson.dtisoft@gmail.com
rthompson.dtisoft@gmail.com wrote:
I'm confused. Shouldn't I just create a class called
DynamicServiceStub and have it inherit from class LIBPROTOBUF_EXPORT
Service?
And then implement a method like Service*
What can you do with a ServiceDescriptor? Is there a
DynamicServiceFactory similar to the DynamicMessageFactory where you
can instantiate a service when all you have is a ServiceDescriptor, or
some other equivalent way of doing it?
Thanks!
--~--~-~--~~~---~--~~