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
Revert "Renamed interface ITemplateVariableLookup to ITemplateVariableHandler."
This reverts commit d5ad856.
Revert "First draft for modifying the TemplateProcessor to support TemplateVariable that are strings or streams."
This reverts commit 94102bc.
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();
89
+
149
90
if ( name == "bin2cpp_c_file_manager_registration_post_init_impl" && mContext.registerFiles )
150
91
{
151
-
std::string tmp;
152
-
tmp += "\n";
153
-
tmp += " // register when loaded if static initialisation does not work\n";
0 commit comments