18#ifndef FLATBUFFERS_FLATC_H_
19#define FLATBUFFERS_FLATC_H_
43 const std::string &file_name);
45 const std::string &file_name);
82 const std::string &contents, std::vector<const char *> &include_directories)
const;
84 void LoadBinarySchema(
Parser &parser,
const std::string &filename,
const std::string &contents);
86 void Warn(
const std::string &warn,
bool show_exe_name =
true)
const;
88 void Error(
const std::string &err,
bool usage =
true,
bool show_exe_name =
true)
const;
void(* ErrorFn)(const FlatCompiler *flatc, const std::string &err, bool usage, bool show_exe_name)
FlatCompiler(const InitParams ¶ms)
void(* WarnFn)(const FlatCompiler *flatc, const std::string &warn, bool show_exe_name)
std::string GetUsageString(const char *program_name) const
int Compile(int argc, const char **argv)
void LogCompilerError(const std::string &err)
void LogCompilerWarn(const std::string &warn)
flatbuffers::IDLOptions::Language lang
const char * generator_help
const char * generator_opt_long
bool(* GenerateFn)(const flatbuffers::Parser &parser, const std::string &path, const std::string &file_name)
std::string(* MakeRuleFn)(const flatbuffers::Parser &parser, const std::string &path, const std::string &file_name)
const char * generator_opt_short
const Generator * generators