101 "// Generated by the protocol buffer compiler. DO NOT EDIT!\n"
102 "// source: $filename$\n"
104 "#ifndef PROTOBUF_$filename_identifier$__INCLUDED\n"
105 "#define PROTOBUF_$filename_identifier$__INCLUDED\n"
107 "#include <string>\n"
110 "filename_identifier", filename_identifier);
112 printer->Print(
"#include <google/protobuf/stubs/common.h>\n\n");
117 "#if GOOGLE_PROTOBUF_VERSION < $min_header_version$\n"
118 "#error This file was generated by a newer version of protoc which is\n"
119 "#error incompatible with your Protocol Buffer headers. Please update\n"
120 "#error your headers.\n"
122 "#if $protoc_version$ < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION\n"
123 "#error This file was generated by an older version of protoc which is\n"
124 "#error incompatible with your Protocol Buffer headers. Please\n"
125 "#error regenerate this file with a newer version of protoc.\n"
128 "min_header_version",
133 printer->Print(
"#include <google/protobuf/generated_message_util.h>\n");
137 printer->Print(
"#include <google/protobuf/message.h>\n");
139 printer->Print(
"#include <google/protobuf/message_lite.h>\n");
143 "#include <google/protobuf/repeated_field.h>\n"
144 "#include <google/protobuf/extension_set.h>\n");
147 printer->Print(
"#include <google/protobuf/generated_enum_reflection.h>\n");
151 printer->Print(
"#include <google/protobuf/unknown_field_set.h>\n");
154 std::set<std::string> public_import_names;
161 bool public_import = (public_import_names.count(name) != 0);
164 "#include \"$dependency$.pb.h\"$iwyu$\n",
166 "iwyu", (public_import) ?
" // IWYU pragma: export" :
"");
171 printer->Print(
"#include \"ServiceBase.h\"\n");
172 printer->Print(
"#include \"MessageBuffer.h\"\n");
173 printer->Print(
"#include <functional>\n");
174 printer->Print(
"#include <type_traits>\n");
177 printer->Print(
"#include \"Define.h\" // for TC_SHARED_API\n");
180 printer->Print(
"// @@protoc_insertion_point(includes)\n");
189 "// Internal implementation detail -- do not call these.\n"
190 "void $dllexport_decl$ $adddescriptorsname$();\n",
192 "dllexport_decl",
options_.dllexport_decl);
197 "void $assigndescriptorsname$();\n"
198 "void $shutdownfilename$();\n"
207 printer->Print(
"\n");
217 printer->Print(
"\n");
224 printer->Print(
"\n");
226 printer->Print(
"\n");
231 printer->Print(
"\n");
233 printer->Print(
"\n");
240 printer->Print(
"\n");
242 printer->Print(
"\n");
247 printer->Print(
"\n");
249 printer->Print(
"\n");
257 printer->Print(
"\n");
259 printer->Print(
"\n");
268 printer->Print(
"\n");
275 "// @@protoc_insertion_point(namespace_scope)\n");
290 "namespace google {\nnamespace protobuf {\n"
302 "} // namespace google\n} // namespace protobuf\n"
308 "// @@protoc_insertion_point(global_scope)\n"
312 "#endif // PROTOBUF_$filename_identifier$__INCLUDED\n",
313 "filename_identifier", filename_identifier);
string GlobalShutdownFileName(const string &filename)
int service_count() const
const string & name() const
pb::scoped_array< pb::scoped_ptr< pbcpp::EnumGenerator > > enum_generators_
Definition: BnetFileGenerator.h:98
string FilenameIdentifier(const string &filename)
#define GOOGLE_PROTOBUF_VERSION
Definition: common.h:116
int extension_count() const
int dependency_count() const
string GlobalAddDescriptorsName(const string &filename)
bool HasEnumDefinitions(const FileDescriptor *file)
const FileDescriptor * dependency(int index) const
Definition: descriptor.h:1668
const pbcpp::Options options_
Definition: BnetFileGenerator.h:104
int public_dependency_count() const
int enum_type_count() const
int message_type_count() const
string GlobalAssignDescriptorsName(const string &filename)
pb::scoped_array< pb::scoped_ptr< pbcpp::ExtensionGenerator > > extension_generators_
Definition: BnetFileGenerator.h:100
bool HasDescriptorMethods(const FileDescriptor *file)
Definition: cpp_helpers.h:155
const char kThickSeparator[]
void GenerateNamespaceOpeners(pb::io::Printer *printer)
Definition: BnetFileGenerator.cpp:678
pb::scoped_array< pb::scoped_ptr< BnetServiceGenerator > > service_generators_
Definition: BnetFileGenerator.h:99
const FileDescriptor * public_dependency(int index) const
Definition: descriptor.h:1672
const char kThinSeparator[]
LIBPROTOBUF_EXPORT string SimpleItoa(int i)
pb::scoped_array< pb::scoped_ptr< pbcpp::MessageGenerator > > message_generators_
Definition: BnetFileGenerator.h:97
static const int kMinHeaderVersionForProtoc
Definition: common.h:133
string StripProto(const string &filename)
void GenerateNamespaceClosers(pb::io::Printer *printer)
Definition: BnetFileGenerator.cpp:690
const pb::FileDescriptor * file_
Definition: BnetFileGenerator.h:95
bool UseUnknownFieldSet(const FileDescriptor *file)
Definition: cpp_helpers.h:140