28 #include <google/protobuf/compiler/code_generator.h>
29 #include <google/protobuf/io/zero_copy_stream.h>
33 #include "generatorbase.h"
35 namespace google {
namespace protobuf {
39 class GeneratorContext;
42 namespace QtProtobuf {
50 class SingleFileGenerator :
public GeneratorBase
53 SingleFileGenerator();
54 bool Generate(const ::google::protobuf::FileDescriptor *file,
55 const std::string ¶meter,
56 ::google::protobuf::compiler::GeneratorContext *generatorContext,
57 std::string *error)
const override;
59 bool GenerateServices(const ::google::protobuf::FileDescriptor *file,
60 const std::string ¶meter,
61 ::google::protobuf::compiler::GeneratorContext *generatorContext,
62 std::string *error)
const;
64 bool GenerateMessages(const ::google::protobuf::FileDescriptor *file,
65 const std::string ¶meter,
66 ::google::protobuf::compiler::GeneratorContext *generatorContext,
67 std::string *error)
const;