1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #pragma once
- #include "classsourcegeneratorbase.h"
- namespace QtProtobuf {
- namespace generator {
- class ClientSourceGenerator : public ClassSourceGeneratorBase
- {
- public:
- ClientSourceGenerator(const google::protobuf::ServiceDescriptor *service,
- const std::shared_ptr<google::protobuf::io::ZeroCopyOutputStream> &out);
- ClientSourceGenerator(const google::protobuf::ServiceDescriptor *service,
- const std::shared_ptr<::google::protobuf::io::Printer> &printer);
- void run() override {
- printDisclaimer();
- printClassHeaderInclude();
- printUsingNamespaces({"QtProtobuf", mNamespacesColonDelimited});
- printConstructor();
- printMethods();
- }
- void printMethods();
- void printConstructor();
- protected:
- const ::google::protobuf::ServiceDescriptor *mService;
- };
- }
- }
|