You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modified ITemplateVariableLookup interface to support "string template variables" and "stream template variables".
Stream template variables do not support template variables recursive lookup. This means that a stream that contains entries such as `${foo}` will not be processed and will be output as a literal string `${foo}`.
if ( name == "bin2cpp_output_file_macro_guard" ) returngetCppIncludeGuardMacroName(mContext.headerFilename);
62
-
if ( name == "bin2cpp_output_file_header" ) returngetHeaderTemplate();
63
-
if ( name == "bin2cpp_file_object_macro_guard_prefix" ) returngetClassMacroGuardPrefix();
64
-
if ( name == "bin2cpp_file_manager_file_header" ) returngetHeaderTemplate(false);
65
-
if ( name == "bin2cpp_file_manager_header_file_name" ) returnmContext.managerHeaderFilename;
66
-
if ( name == "bin2cpp_file_manager_macro_guard_prefix" ) returngetFileManagerMacroGuardPrefix();
67
-
if ( name == "bin2cpp_baseclass" ) returnmContext.baseClass;
68
-
if ( name == "bin2cpp_classname" ) returngetClassName();
69
-
if ( name == "bin2cpp_namespace" ) returnmContext.codeNamespace;
70
-
//if ( name == "bin2cpp_baseclass_uppercase" ) return ra::strings::Uppercase(mContext.baseClass);
71
-
//if ( name == "bin2cpp_classname_uppercase" ) return ra::strings::Uppercase(getClassName());
72
-
//if ( name == "bin2cpp_namespace_uppercase" ) return ra::strings::Lowercase(mContext.codeNamespace);
73
-
//if ( name == "bin2cpp_baseclass_lowercase" ) return ra::strings::Lowercase(mContext.baseClass);
74
-
//if ( name == "bin2cpp_classname_lowercase" ) return ra::strings::Lowercase(getClassName());
75
-
//if ( name == "bin2cpp_namespace_lowercase" ) return ra::strings::Lowercase(mContext.codeNamespace);
76
-
if ( name == "bin2cpp_function_identifier" ) returnmContext.functionIdentifier;
77
-
if ( name == "bin2cpp_function_identifier_lowercase" ) returnra::strings::Lowercase(mContext.functionIdentifier);
78
-
if ( name == "bin2cpp_getter_function_name" ) returngetGetterFunctionName();
79
-
if ( name == "bin2cpp_insert_input_file_as_code" ) returngetInputFileDataAsCode();
80
-
if ( name == "bin2cpp_header_source_file_include_path" ) returngetCppHeaderIncludePath();
81
-
if ( name == "bin2cpp_file_object_file_name_impl" ) returngetFileClassGetFileNameImplementation();
82
-
if ( name == "bin2cpp_file_object_file_path_impl" ) returngetFileClassGetFilePathImplementation();
83
-
if ( name == "bin2cpp_file_object_file_name" ) returngetFileClassFileName();
84
-
if ( name == "bin2cpp_file_object_file_path" ) returngetFileClassFilePath();
85
-
if ( name == "bin2cpp_cpp_get_save_method_impl" ) returngetCppSaveMethodTemplate();
86
-
if ( name == "bin2cpp_cpp_get_file_manager_registration_impl" && mContext.registerFiles ) returngetCppFileManagerRegistrationImplementationTemplate();
87
-
if ( name == "bin2cpp_c_file_manager_registration_predeclaration" && mContext.registerFiles ) returngetCFileManagerRegistrationPredeclarationImplementation();
88
-
if ( name == "bin2cpp_c_file_manager_registration_implementation" && mContext.registerFiles ) returngetCFileManagerStaticFileRegistrationImplementation();
61
+
if ( name == "bin2cpp_output_file_macro_guard" ) { output = getCppIncludeGuardMacroName(mContext.headerFilename); returntrue; }
62
+
if ( name == "bin2cpp_output_file_header" ) { output = getHeaderTemplate(); returntrue; }
63
+
if ( name == "bin2cpp_file_object_macro_guard_prefix" ) { output = getClassMacroGuardPrefix(); returntrue; }
64
+
if ( name == "bin2cpp_file_manager_file_header" ) { output = getHeaderTemplate(false); returntrue; }
65
+
if ( name == "bin2cpp_file_manager_header_file_name" ) { output = mContext.managerHeaderFilename; returntrue; }
66
+
if ( name == "bin2cpp_file_manager_macro_guard_prefix" ) { output = getFileManagerMacroGuardPrefix(); returntrue; }
67
+
if ( name == "bin2cpp_baseclass" ) { output = mContext.baseClass; returntrue; }
68
+
if ( name == "bin2cpp_classname" ) { output = getClassName(); returntrue; }
69
+
if ( name == "bin2cpp_namespace" ) { output = mContext.codeNamespace; returntrue; }
0 commit comments