Lines Matching refs:opts
33 struct Opts opts; variable
109 if (opts.verbose) { in CreateBinarySchemaBundle()
126 std::string ns_string(opts.ns_name); in WriteHeaderFile()
185 fprintf(fp, "const unsigned char* %s::data = %sdata_;\n", opts.ns_name, namespace_prefix.c_str()); in WriteHeaderFile()
186 fprintf(fp, "const size_t %s::data_size = %zu;\n", opts.ns_name, data_len); in WriteHeaderFile()
190 opts.ns_name, in WriteHeaderFile()
195 const char* filename = opts.filename; in ReadBundledSchema()
217 const char* filename = opts.filename; in WriteBundledSchema()
220 const char* main_root_name = opts.main_root_name; in WriteBundledSchema()
227 for (int i = 0; i < opts.arg.c; i++) { in WriteBundledSchema()
228 bfbs_filenames.push_back(std::string(opts.arg.v[i])); in WriteBundledSchema()
253 const char* title = opts.title; in WriteBundledSchema()
257 std::string final_filename(opts.gen); in WriteBundledSchema()
266 std::string header(opts.gen); in WriteBundledSchema()
267 header += ("/" + std::string(opts.filename) + ".h"); in WriteBundledSchema()
300 opts.filename = optarg; in ParseArgs()
304 opts.gen = optarg; in ParseArgs()
308 opts.main_root_name = optarg; in ParseArgs()
312 opts.ns_name = optarg; in ParseArgs()
316 opts.read = true; in ParseArgs()
319 opts.write = true; in ParseArgs()
322 opts.title = optarg; in ParseArgs()
326 opts.verbose = true; in ParseArgs()
333 opts.arg.c = argc - parsed_cnt; in ParseArgs()
334 opts.arg.v = &argv[parsed_cnt]; in ParseArgs()