C++ Customise prefix/suffix of object API [Issue #4419] (#4422)

* Allow prefix/suffix of C++ Object API classes to be customised

* Address review comments
This commit is contained in:
endorph-soft
2017-09-01 01:24:03 +09:30
committed by Wouter van Oortmerssen
parent 5808f7fb03
commit d5b4db0692
3 changed files with 46 additions and 31 deletions

View File

@@ -366,6 +366,8 @@ struct IDLOptions {
bool generate_object_based_api;
std::string cpp_object_api_pointer_type;
std::string cpp_object_api_string_type;
std::string object_prefix;
std::string object_suffix;
bool union_value_namespacing;
bool allow_non_utf8;
std::string include_prefix;
@@ -415,6 +417,7 @@ struct IDLOptions {
escape_proto_identifiers(false),
generate_object_based_api(false),
cpp_object_api_pointer_type("std::unique_ptr"),
object_suffix("T"),
union_value_namespacing(true),
allow_non_utf8(false),
keep_include_path(false),