ONE - On-device Neural Engine
Loading...
Searching...
No Matches
flatbuffers::IDLOptions Struct Reference

#include <idl.h>

Public Types

enum  Language {
  kJava = 1 << 0 , kCSharp = 1 << 1 , kGo = 1 << 2 , kCpp = 1 << 3 ,
  kPython = 1 << 5 , kPhp = 1 << 6 , kJson = 1 << 7 , kBinary = 1 << 8 ,
  kTs = 1 << 9 , kJsonSchema = 1 << 10 , kDart = 1 << 11 , kLua = 1 << 12 ,
  kLobster = 1 << 13 , kRust = 1 << 14 , kKotlin = 1 << 15 , kSwift = 1 << 16 ,
  kMAX
}
 
enum  MiniReflect { kNone , kTypes , kTypesAndNames }
 

Public Member Functions

 IDLOptions ()
 

Data Fields

bool gen_jvmstatic
 
bool use_flexbuffers
 
bool strict_json
 
bool output_default_scalars_in_json
 
int indent_step
 
bool output_enum_identifiers
 
bool prefixed_enums
 
bool scoped_enums
 
bool include_dependence_headers
 
bool mutable_buffer
 
bool one_file
 
bool proto_mode
 
bool proto_oneof_union
 
bool generate_all
 
bool skip_unexpected_fields_in_json
 
bool generate_name_strings
 
bool generate_object_based_api
 
bool gen_compare
 
std::string cpp_object_api_pointer_type
 
std::string cpp_object_api_string_type
 
bool cpp_object_api_string_flexible_constructor
 
bool cpp_direct_copy
 
bool gen_nullable
 
bool java_checkerframework
 
bool gen_generated
 
std::string object_prefix
 
std::string object_suffix
 
bool union_value_namespacing
 
bool allow_non_utf8
 
bool natural_utf8
 
std::string include_prefix
 
bool keep_include_path
 
bool binary_schema_comments
 
bool binary_schema_builtins
 
bool binary_schema_gen_embed
 
std::string go_import
 
std::string go_namespace
 
bool protobuf_ascii_alike
 
bool size_prefixed
 
std::string root_type
 
bool force_defaults
 
bool java_primitive_has_method
 
bool cs_gen_json_serializer
 
std::vector< std::string > cpp_includes
 
std::string cpp_std
 
bool cpp_static_reflection
 
std::string proto_namespace_suffix
 
std::string filename_suffix
 
std::string filename_extension
 
bool no_warnings
 
Language lang
 
MiniReflect mini_reflect
 
bool require_explicit_ids
 
unsigned long lang_to_generate
 
bool set_empty_strings_to_null
 
bool set_empty_vectors_to_null
 

Detailed Description

Definition at line 535 of file idl.h.

Member Enumeration Documentation

◆ Language

Enumerator
kJava 
kCSharp 
kGo 
kCpp 
kPython 
kPhp 
kJson 
kBinary 
kTs 
kJsonSchema 
kDart 
kLua 
kLobster 
kRust 
kKotlin 
kSwift 
kMAX 

Definition at line 590 of file idl.h.

591 {
592 kJava = 1 << 0,
593 kCSharp = 1 << 1,
594 kGo = 1 << 2,
595 kCpp = 1 << 3,
596 kPython = 1 << 5,
597 kPhp = 1 << 6,
598 kJson = 1 << 7,
599 kBinary = 1 << 8,
600 kTs = 1 << 9,
601 kJsonSchema = 1 << 10,
602 kDart = 1 << 11,
603 kLua = 1 << 12,
604 kLobster = 1 << 13,
605 kRust = 1 << 14,
606 kKotlin = 1 << 15,
607 kSwift = 1 << 16,
608 kMAX
609 };

◆ MiniReflect

Enumerator
kNone 
kTypes 
kTypesAndNames 

Definition at line 613 of file idl.h.

Constructor & Destructor Documentation

◆ IDLOptions()

flatbuffers::IDLOptions::IDLOptions ( )
inline

Definition at line 637 of file idl.h.

638 : gen_jvmstatic(false), use_flexbuffers(false), strict_json(false),
641 mutable_buffer(false), one_file(false), proto_mode(false), proto_oneof_union(false),
644 cpp_object_api_pointer_type("std::unique_ptr"),
655 {
656 }
bool union_value_namespacing
Definition idl.h:565
std::string filename_suffix
Definition idl.h:585
unsigned long lang_to_generate
Definition idl.h:627
bool cpp_static_reflection
Definition idl.h:583
bool java_primitive_has_method
Definition idl.h:579
bool generate_name_strings
Definition idl.h:553
std::string cpp_object_api_pointer_type
Definition idl.h:556
std::string object_suffix
Definition idl.h:564
bool require_explicit_ids
Definition idl.h:623
bool set_empty_strings_to_null
Definition idl.h:631
bool java_checkerframework
Definition idl.h:561
bool cpp_object_api_string_flexible_constructor
Definition idl.h:558
bool binary_schema_gen_embed
Definition idl.h:572
bool cs_gen_json_serializer
Definition idl.h:580
bool include_dependence_headers
Definition idl.h:546
bool output_default_scalars_in_json
Definition idl.h:541
bool generate_object_based_api
Definition idl.h:554
std::string filename_extension
Definition idl.h:586
bool output_enum_identifiers
Definition idl.h:543
bool set_empty_vectors_to_null
Definition idl.h:635
MiniReflect mini_reflect
Definition idl.h:620
bool skip_unexpected_fields_in_json
Definition idl.h:552
bool binary_schema_builtins
Definition idl.h:571
bool protobuf_ascii_alike
Definition idl.h:575
bool binary_schema_comments
Definition idl.h:570

Field Documentation

◆ allow_non_utf8

bool flatbuffers::IDLOptions::allow_non_utf8

Definition at line 566 of file idl.h.

◆ binary_schema_builtins

bool flatbuffers::IDLOptions::binary_schema_builtins

Definition at line 571 of file idl.h.

◆ binary_schema_comments

bool flatbuffers::IDLOptions::binary_schema_comments

Definition at line 570 of file idl.h.

◆ binary_schema_gen_embed

bool flatbuffers::IDLOptions::binary_schema_gen_embed

Definition at line 572 of file idl.h.

◆ cpp_direct_copy

bool flatbuffers::IDLOptions::cpp_direct_copy

Definition at line 559 of file idl.h.

◆ cpp_includes

std::vector<std::string> flatbuffers::IDLOptions::cpp_includes

Definition at line 581 of file idl.h.

◆ cpp_object_api_pointer_type

std::string flatbuffers::IDLOptions::cpp_object_api_pointer_type

Definition at line 556 of file idl.h.

◆ cpp_object_api_string_flexible_constructor

bool flatbuffers::IDLOptions::cpp_object_api_string_flexible_constructor

Definition at line 558 of file idl.h.

◆ cpp_object_api_string_type

std::string flatbuffers::IDLOptions::cpp_object_api_string_type

Definition at line 557 of file idl.h.

◆ cpp_static_reflection

bool flatbuffers::IDLOptions::cpp_static_reflection

Definition at line 583 of file idl.h.

◆ cpp_std

std::string flatbuffers::IDLOptions::cpp_std

Definition at line 582 of file idl.h.

◆ cs_gen_json_serializer

bool flatbuffers::IDLOptions::cs_gen_json_serializer

Definition at line 580 of file idl.h.

◆ filename_extension

std::string flatbuffers::IDLOptions::filename_extension

Definition at line 586 of file idl.h.

◆ filename_suffix

std::string flatbuffers::IDLOptions::filename_suffix

Definition at line 585 of file idl.h.

◆ force_defaults

bool flatbuffers::IDLOptions::force_defaults

Definition at line 578 of file idl.h.

Referenced by flatbuffers::Parser::Parser().

◆ gen_compare

bool flatbuffers::IDLOptions::gen_compare

Definition at line 555 of file idl.h.

◆ gen_generated

bool flatbuffers::IDLOptions::gen_generated

Definition at line 562 of file idl.h.

◆ gen_jvmstatic

bool flatbuffers::IDLOptions::gen_jvmstatic

Definition at line 537 of file idl.h.

◆ gen_nullable

bool flatbuffers::IDLOptions::gen_nullable

Definition at line 560 of file idl.h.

◆ generate_all

bool flatbuffers::IDLOptions::generate_all

Definition at line 551 of file idl.h.

◆ generate_name_strings

bool flatbuffers::IDLOptions::generate_name_strings

Definition at line 553 of file idl.h.

◆ generate_object_based_api

bool flatbuffers::IDLOptions::generate_object_based_api

Definition at line 554 of file idl.h.

◆ go_import

std::string flatbuffers::IDLOptions::go_import

Definition at line 573 of file idl.h.

◆ go_namespace

std::string flatbuffers::IDLOptions::go_namespace

Definition at line 574 of file idl.h.

◆ include_dependence_headers

bool flatbuffers::IDLOptions::include_dependence_headers

Definition at line 546 of file idl.h.

◆ include_prefix

std::string flatbuffers::IDLOptions::include_prefix

Definition at line 568 of file idl.h.

◆ indent_step

int flatbuffers::IDLOptions::indent_step

Definition at line 542 of file idl.h.

◆ java_checkerframework

bool flatbuffers::IDLOptions::java_checkerframework

Definition at line 561 of file idl.h.

◆ java_primitive_has_method

bool flatbuffers::IDLOptions::java_primitive_has_method

Definition at line 579 of file idl.h.

◆ keep_include_path

bool flatbuffers::IDLOptions::keep_include_path

Definition at line 569 of file idl.h.

◆ lang

Language flatbuffers::IDLOptions::lang

Definition at line 611 of file idl.h.

◆ lang_to_generate

unsigned long flatbuffers::IDLOptions::lang_to_generate

Definition at line 627 of file idl.h.

◆ mini_reflect

MiniReflect flatbuffers::IDLOptions::mini_reflect

Definition at line 620 of file idl.h.

◆ mutable_buffer

bool flatbuffers::IDLOptions::mutable_buffer

Definition at line 547 of file idl.h.

◆ natural_utf8

bool flatbuffers::IDLOptions::natural_utf8

Definition at line 567 of file idl.h.

◆ no_warnings

bool flatbuffers::IDLOptions::no_warnings

Definition at line 587 of file idl.h.

◆ object_prefix

std::string flatbuffers::IDLOptions::object_prefix

Definition at line 563 of file idl.h.

◆ object_suffix

std::string flatbuffers::IDLOptions::object_suffix

Definition at line 564 of file idl.h.

◆ one_file

bool flatbuffers::IDLOptions::one_file

Definition at line 548 of file idl.h.

◆ output_default_scalars_in_json

bool flatbuffers::IDLOptions::output_default_scalars_in_json

Definition at line 541 of file idl.h.

◆ output_enum_identifiers

bool flatbuffers::IDLOptions::output_enum_identifiers

Definition at line 543 of file idl.h.

◆ prefixed_enums

bool flatbuffers::IDLOptions::prefixed_enums

Definition at line 544 of file idl.h.

◆ proto_mode

bool flatbuffers::IDLOptions::proto_mode

Definition at line 549 of file idl.h.

◆ proto_namespace_suffix

std::string flatbuffers::IDLOptions::proto_namespace_suffix

Definition at line 584 of file idl.h.

◆ proto_oneof_union

bool flatbuffers::IDLOptions::proto_oneof_union

Definition at line 550 of file idl.h.

◆ protobuf_ascii_alike

bool flatbuffers::IDLOptions::protobuf_ascii_alike

Definition at line 575 of file idl.h.

◆ require_explicit_ids

bool flatbuffers::IDLOptions::require_explicit_ids

Definition at line 623 of file idl.h.

◆ root_type

std::string flatbuffers::IDLOptions::root_type

Definition at line 577 of file idl.h.

◆ scoped_enums

bool flatbuffers::IDLOptions::scoped_enums

Definition at line 545 of file idl.h.

◆ set_empty_strings_to_null

bool flatbuffers::IDLOptions::set_empty_strings_to_null

Definition at line 631 of file idl.h.

◆ set_empty_vectors_to_null

bool flatbuffers::IDLOptions::set_empty_vectors_to_null

Definition at line 635 of file idl.h.

◆ size_prefixed

bool flatbuffers::IDLOptions::size_prefixed

Definition at line 576 of file idl.h.

◆ skip_unexpected_fields_in_json

bool flatbuffers::IDLOptions::skip_unexpected_fields_in_json

Definition at line 552 of file idl.h.

◆ strict_json

bool flatbuffers::IDLOptions::strict_json

Definition at line 540 of file idl.h.

◆ union_value_namespacing

bool flatbuffers::IDLOptions::union_value_namespacing

Definition at line 565 of file idl.h.

◆ use_flexbuffers

bool flatbuffers::IDLOptions::use_flexbuffers

Definition at line 539 of file idl.h.


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