ONE - On-device Neural Engine
Loading...
Searching...
No Matches
flatbuffers::FlatCompiler Class Reference

#include <flatc.h>

Data Structures

struct  InitParams
 

Public Types

typedef void(* WarnFn) (const FlatCompiler *flatc, const std::string &warn, bool show_exe_name)
 
typedef void(* ErrorFn) (const FlatCompiler *flatc, const std::string &err, bool usage, bool show_exe_name)
 

Public Member Functions

 FlatCompiler (const InitParams &params)
 
bool RegisterCodeGenerator (const FlatCOption &option, std::shared_ptr< CodeGenerator > code_generator)
 
int Compile (const FlatCOptions &options)
 
std::string GetShortUsageString (const std::string &program_name) const
 
std::string GetUsageString (const std::string &program_name) const
 
FlatCOptions ParseFromCommandLineArguments (int argc, const char **argv)
 

Detailed Description

Definition at line 71 of file flatc.h.

Member Typedef Documentation

◆ ErrorFn

typedef void(* flatbuffers::FlatCompiler::ErrorFn) (const FlatCompiler *flatc, const std::string &err, bool usage, bool show_exe_name)

Definition at line 76 of file flatc.h.

◆ WarnFn

typedef void(* flatbuffers::FlatCompiler::WarnFn) (const FlatCompiler *flatc, const std::string &warn, bool show_exe_name)

Definition at line 73 of file flatc.h.

Constructor & Destructor Documentation

◆ FlatCompiler()

flatbuffers::FlatCompiler::FlatCompiler ( const InitParams params)
inlineexplicit

Definition at line 87 of file flatc.h.

87: params_(params) {}

Member Function Documentation

◆ Compile()

int flatbuffers::FlatCompiler::Compile ( const FlatCOptions options)

◆ GetShortUsageString()

std::string flatbuffers::FlatCompiler::GetShortUsageString ( const std::string &  program_name) const

◆ GetUsageString()

std::string flatbuffers::FlatCompiler::GetUsageString ( const std::string &  program_name) const

◆ ParseFromCommandLineArguments()

FlatCOptions flatbuffers::FlatCompiler::ParseFromCommandLineArguments ( int  argc,
const char **  argv 
)

◆ RegisterCodeGenerator()

bool flatbuffers::FlatCompiler::RegisterCodeGenerator ( const FlatCOption option,
std::shared_ptr< CodeGenerator code_generator 
)

The documentation for this class was generated from the following file: