Go to the documentation of this file.
62 std::vector<std::pair<std::string, std::string> >
options;
100 }
else if (
options[
i].
first ==
"lite_implicit_weak_fields") {
109 }
else if (
options[
i].
first ==
"table_driven_serialization") {
121 "The safe_boundary_check option is not supported outside of Google.";
139 std::unique_ptr<io::ZeroCopyOutputStream>
output(
140 generator_context->
Open(basename +
".proto.h"));
144 std::string info_path = basename +
".proto.h.meta";
151 std::unique_ptr<io::ZeroCopyOutputStream> info_output(
152 generator_context->
Open(info_path));
153 annotations.SerializeToZeroCopyStream(info_output.get());
158 std::unique_ptr<io::ZeroCopyOutputStream>
output(
159 generator_context->
Open(basename +
".pb.h"));
170 std::unique_ptr<io::ZeroCopyOutputStream> info_output(
171 generator_context->
Open(info_path));
172 annotations.SerializeToZeroCopyStream(info_output.get());
181 std::unique_ptr<io::ZeroCopyOutputStream>
output(
182 generator_context->
Open(basename +
".pb.cc"));
195 <<
"There must be at least as many numbered .cc files as messages.";
198 for (
int i = 0;
i < num_cc_files;
i++) {
199 std::unique_ptr<io::ZeroCopyOutputStream>
output(
200 generator_context->
Open(
StrCat(basename,
".out/",
i,
".cc")));
207 std::unique_ptr<io::ZeroCopyOutputStream>
output(
208 generator_context->
Open(basename +
".pb.cc"));
void GenerateSource(io::Printer *printer)
string StrCat(const AlphaNum &a, const AlphaNum &b)
std::string StripProto(const std::string &filename)
virtual io::ZeroCopyOutputStream * Open(const std::string &filename)=0
std::string runtime_include_base_
GLsizei const GLchar *const * string
void GeneratePBHeader(io::Printer *printer, const std::string &info_path)
bool UsingImplicitWeakFields(const FileDescriptor *file, const Options &options)
bool lite_implicit_weak_fields
bool table_driven_serialization
#define GOOGLE_CHECK_LE(A, B)
bool Generate(const FileDescriptor *file, const std::string ¶meter, GeneratorContext *generator_context, std::string *error) const
const std::string & name() const
std::string annotation_guard_name
int32 strto32(const char *nptr, char **endptr, int base)
void GenerateGlobalSource(io::Printer *printer)
void GenerateProtoHeader(io::Printer *printer, const std::string &info_path)
void ParseGeneratorParameter(const std::string &text, std::vector< std::pair< std::string, std::string > > *output)
EnforceOptimizeMode enforce_mode
void GenerateSourceForMessage(int idx, io::Printer *printer)
std::string annotation_pragma_name
bool table_driven_parsing
std::string dllexport_decl
const upb_json_parsermethod const upb_symtab upb_sink * output
std::string runtime_include_base
bool MaybeBootstrap(const Options &options, GeneratorContext *generator_context, bool bootstrap_flag, std::string *basename)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:49