Lines Matching full:flatbuffers

17 #include "flatbuffers/flatc.h"
18 #include "flatbuffers/util.h"
22 static void Warn(const flatbuffers::FlatCompiler *flatc, in Warn()
29 static void Error(const flatbuffers::FlatCompiler *flatc, in Error()
39 namespace flatbuffers { namespace
41 Warn(static_cast<const flatbuffers::FlatCompiler *>(nullptr), warn, true); in LogCompilerWarn()
44 Error(static_cast<const flatbuffers::FlatCompiler *>(nullptr), err, false, in LogCompilerError()
47 } // namespace flatbuffers
51 flatbuffers::SetupDefaultCRTReportMode(); in main()
55 const flatbuffers::FlatCompiler::Generator generators[] = { in main()
56 { flatbuffers::GenerateBinary, "-b", "--binary", "binary", false, nullptr, in main()
57 flatbuffers::IDLOptions::kBinary, in main()
59 flatbuffers::BinaryMakeRule }, in main()
60 { flatbuffers::GenerateTextFile, "-t", "--json", "text", false, nullptr, in main()
61 flatbuffers::IDLOptions::kJson, in main()
63 flatbuffers::TextMakeRule }, in main()
64 { flatbuffers::GenerateCPP, "-c", "--cpp", "C++", true, in main()
65 flatbuffers::GenerateCppGRPC, flatbuffers::IDLOptions::kCpp, in main()
66 "Generate C++ headers for tables/structs", flatbuffers::CPPMakeRule }, in main()
67 { flatbuffers::GenerateGo, "-g", "--go", "Go", true, in main()
68 flatbuffers::GenerateGoGRPC, flatbuffers::IDLOptions::kGo, in main()
70 { flatbuffers::GenerateJava, "-j", "--java", "Java", true, in main()
71 flatbuffers::GenerateJavaGRPC, flatbuffers::IDLOptions::kJava, in main()
73 flatbuffers::JavaCSharpMakeRule }, in main()
74 { flatbuffers::GenerateJSTS, "-s", "--js", "JavaScript", true, nullptr, in main()
75 flatbuffers::IDLOptions::kJs, in main()
77 flatbuffers::JSTSMakeRule }, in main()
78 { flatbuffers::GenerateDart, "-d", "--dart", "Dart", true, nullptr, in main()
79 flatbuffers::IDLOptions::kDart, in main()
80 "Generate Dart classes for tables/structs", flatbuffers::DartMakeRule }, in main()
81 { flatbuffers::GenerateJSTS, "-T", "--ts", "TypeScript", true, nullptr, in main()
82 flatbuffers::IDLOptions::kTs, in main()
84 flatbuffers::JSTSMakeRule }, in main()
85 { flatbuffers::GenerateCSharp, "-n", "--csharp", "C#", true, nullptr, in main()
86 flatbuffers::IDLOptions::kCSharp, in main()
88 flatbuffers::JavaCSharpMakeRule }, in main()
89 { flatbuffers::GeneratePython, "-p", "--python", "Python", true, in main()
90 flatbuffers::GeneratePythonGRPC, flatbuffers::IDLOptions::kPython, in main()
92 { flatbuffers::GenerateLobster, nullptr, "--lobster", "Lobster", true, in main()
93 nullptr, flatbuffers::IDLOptions::kLobster, in main()
95 { flatbuffers::GenerateLua, "-l", "--lua", "Lua", true, nullptr, in main()
96 flatbuffers::IDLOptions::kLua, "Generate Lua files for tables/structs", in main()
98 { flatbuffers::GenerateRust, "-r", "--rust", "Rust", true, nullptr, in main()
99 flatbuffers::IDLOptions::kRust, "Generate Rust files for tables/structs", in main()
100 flatbuffers::RustMakeRule }, in main()
101 { flatbuffers::GeneratePhp, nullptr, "--php", "PHP", true, nullptr, in main()
102 flatbuffers::IDLOptions::kPhp, "Generate PHP files for tables/structs", in main()
104 { flatbuffers::GenerateKotlin, nullptr, "--kotlin", "Kotlin", true, nullptr, in main()
105 flatbuffers::IDLOptions::kKotlin, in main()
107 { flatbuffers::GenerateJsonSchema, nullptr, "--jsonschema", "JsonSchema", in main()
108 true, nullptr, flatbuffers::IDLOptions::kJsonSchema, in main()
110 { flatbuffers::GenerateSwift, nullptr, "--swift", "swift", true, in main()
111 flatbuffers::GenerateSwiftGRPC, flatbuffers::IDLOptions::kSwift, in main()
115 flatbuffers::FlatCompiler::InitParams params; in main()
121 flatbuffers::FlatCompiler flatc(params); in main()