@@ -1688,7 +1688,7 @@ func BuildBindingCppExplicit(component ComponentDefinition, outputFolder string,
1688
1688
}
1689
1689
1690
1690
1691
- clientImplHeader := path .Join (outputFolderExample , strings . ToLower ( baseName ) + "_dynamic_client.hpp" )
1691
+ clientImplHeader := path .Join (outputFolderExample , baseName + "_dynamic_client.hpp" )
1692
1692
log .Printf ("Creating \" %s\" " , clientImplHeader )
1693
1693
dynclientfile , err := CreateLanguageFile (clientImplHeader , indentString )
1694
1694
if err != nil {
@@ -1698,7 +1698,7 @@ func BuildBindingCppExplicit(component ComponentDefinition, outputFolder string,
1698
1698
fmt .Sprintf ("This is an autogenerated C++-Header file in order to allow an easy\n use of %s" , libraryname ),
1699
1699
true )
1700
1700
1701
- clientImplSource := path .Join (outputFolderExample , strings . ToLower ( baseName ) + "_dynamic_client.cpp" )
1701
+ clientImplSource := path .Join (outputFolderExample , baseName + "_dynamic_client.cpp" )
1702
1702
log .Printf ("Creating \" %s\" " , clientImplSource )
1703
1703
dynclientfilesource , err := CreateLanguageFile (clientImplSource , indentString )
1704
1704
if err != nil {
@@ -1721,9 +1721,9 @@ func buildDynamicCppExample(componentdefinition ComponentDefinition, w LanguageW
1721
1721
1722
1722
w .Writeln ("#include <iostream>" )
1723
1723
if (ExplicitLinking ) {
1724
- w .Writeln ("#include \" %s_dynamic.hpp\" " , strings . ToLower ( BaseName ) )
1724
+ w .Writeln ("#include \" %s_dynamic.hpp\" " , BaseName )
1725
1725
} else {
1726
- w .Writeln ("#include \" %s_implicit.hpp\" " , strings . ToLower ( BaseName ) )
1726
+ w .Writeln ("#include \" %s_implicit.hpp\" " , BaseName )
1727
1727
}
1728
1728
1729
1729
w .Writeln ("" )
@@ -1816,7 +1816,7 @@ func buildDynamicCExample(componentdefinition ComponentDefinition, w LanguageWri
1816
1816
1817
1817
w .Writeln ("#include <stdio.h>" )
1818
1818
w .Writeln ("#include <stdlib.h>" )
1819
- w .Writeln ("#include \" %s_dynamic.h\" " , strings . ToLower ( BaseName ) )
1819
+ w .Writeln ("#include \" %s_dynamic.h\" " , BaseName )
1820
1820
1821
1821
w .Writeln ("" )
1822
1822
w .Writeln ("" )
@@ -1980,7 +1980,7 @@ func buildCppClientImplementations(component ComponentDefinition, w LanguageWrit
1980
1980
for i := 0 ; i < len (component .Classes ); i ++ {
1981
1981
class := component .Classes [i ]
1982
1982
if (class .IsAbstract ()) {
1983
- clientImplHeader := path .Join (outputFolder , strings . ToLower ( BaseName ) + "_dynamic_client_" + strings .ToLower (class .ClassName )+ ".hpp" )
1983
+ clientImplHeader := path .Join (outputFolder , BaseName + "_dynamic_client_" + strings .ToLower (class .ClassName )+ ".hpp" )
1984
1984
log .Printf ("Creating \" %s\" " , clientImplHeader )
1985
1985
dynclientfile , err := CreateLanguageFile (clientImplHeader , w .IndentString )
1986
1986
if err != nil {
@@ -1990,7 +1990,7 @@ func buildCppClientImplementations(component ComponentDefinition, w LanguageWrit
1990
1990
fmt .Sprintf ("This is an autogenerated C++-Header file in order to allow an easy\n use of %s" , libraryname ),
1991
1991
true )
1992
1992
1993
- clientImplSource := path .Join (outputFolder , strings . ToLower ( BaseName ) + "_dynamic_client_" + strings .ToLower (class .ClassName )+ ".cpp" )
1993
+ clientImplSource := path .Join (outputFolder , BaseName + "_dynamic_client_" + strings .ToLower (class .ClassName )+ ".cpp" )
1994
1994
log .Printf ("Creating \" %s\" " , clientImplSource )
1995
1995
dynclientfilesource , err := CreateLanguageFile (clientImplSource , w .IndentString )
1996
1996
if err != nil {
@@ -2025,9 +2025,9 @@ func buildCppClientImplementationClass(component ComponentDefinition, class Comp
2025
2025
w .Writeln ("" )
2026
2026
2027
2027
if (bIsBaseClass ) {
2028
- w .Writeln ("#include \" %s_dynamic.hpp\" " , strings . ToLower ( BaseName ) )
2028
+ w .Writeln ("#include \" %s_dynamic.hpp\" " , BaseName )
2029
2029
} else {
2030
- w .Writeln ("#include \" %s_dynamic_client.hpp\" " , strings . ToLower ( BaseName ) )
2030
+ w .Writeln ("#include \" %s_dynamic_client.hpp\" " , BaseName )
2031
2031
}
2032
2032
2033
2033
if (bIsBaseClass ) {
@@ -2086,14 +2086,14 @@ func buildCppClientImplementationClass(component ComponentDefinition, class Comp
2086
2086
w .Writeln ("" )
2087
2087
w .Writeln ("" )
2088
2088
2089
- w .Writeln ("#define %s_IMPL_LOOKUP_IMPLEMENT_BEGIN(NAME, BASE) \\ " , NameSpaceUpper )
2089
+ w .Writeln ("#define %s_IMPL_LOOKUP_IMPLEMENT_BEGIN(NAME, BASE, RAWNAME ) \\ " , NameSpaceUpper )
2090
2090
w .Writeln (" %sResult NAME::SymbolLookupFunction_ABI( \\ " , NameSpace )
2091
2091
w .Writeln (" const char* pProcName, \\ " )
2092
2092
w .Writeln (" void** ppProcAddress \\ " )
2093
2093
w .Writeln (" ) \\ " )
2094
2094
w .Writeln (" { \\ " )
2095
2095
w .Writeln (" using tBASE = BASE; \\ " )
2096
- w .Writeln (" std::string className = #NAME; \\ " )
2096
+ w .Writeln (" std::string className = #RAWNAME; \\ " )
2097
2097
w .Writeln (" static std::map<std::string, void*> sProcAddressMap; \\ " )
2098
2098
w .Writeln (" if (sProcAddressMap.empty()) {" )
2099
2099
w .Writeln ("" )
@@ -2136,7 +2136,7 @@ func buildCppClientImplementationClass(component ComponentDefinition, class Comp
2136
2136
} else {
2137
2137
w .Writeln ("class %s : public %s {" , clientImplClassName , "ClientImpl" + component .baseClass ().ClassName )
2138
2138
w .Writeln ("" )
2139
- w .Writeln (" %s_IMPL_DECLARE(%s, C %s)" , NameSpaceUpper , clientImplClassName , theClassName )
2139
+ w .Writeln (" %s_IMPL_DECLARE(%s, %s)" , NameSpaceUpper , clientImplClassName , theClassName )
2140
2140
w .Writeln ("" )
2141
2141
}
2142
2142
w .Writeln ("public:" )
@@ -2145,22 +2145,22 @@ func buildCppClientImplementationClass(component ComponentDefinition, class Comp
2145
2145
w .Writeln ("" )
2146
2146
2147
2147
if (bIsBaseClass ) {
2148
- wImpl .Writeln ("#include \" %s_dynamic_client.hpp\" " , strings . ToLower ( BaseName ) )
2148
+ wImpl .Writeln ("#include \" %s_dynamic_client.hpp\" " , BaseName )
2149
2149
wImpl .Writeln ("" )
2150
2150
wImpl .Writeln ("" )
2151
2151
wImpl .Writeln ("using namespace %s;" , NameSpace )
2152
2152
wImpl .Writeln ("using namespace %s::ClientImpl;" , NameSpace )
2153
2153
wImpl .Writeln ("" )
2154
2154
} else {
2155
- wImpl .Writeln ("#include \" %s_dynamic_client_%s.hpp\" " , strings . ToLower ( BaseName ) , strings .ToLower (theClassName ))
2155
+ wImpl .Writeln ("#include \" %s_dynamic_client_%s.hpp\" " , BaseName , strings .ToLower (theClassName ))
2156
2156
wImpl .Writeln ("" )
2157
2157
wImpl .Writeln ("" )
2158
2158
wImpl .Writeln ("using namespace %s;" , NameSpace )
2159
2159
wImpl .Writeln ("using namespace %s::ClientImpl;" , NameSpace )
2160
2160
wImpl .Writeln ("" )
2161
2161
2162
2162
wImpl .Writeln ("%s_IMPL_IMPLEMENT(%s)" , NameSpaceUpper , clientImplClassName )
2163
- wImpl .Writeln ("%s_IMPL_LOOKUP_IMPLEMENT_BEGIN(%s, %s)" , NameSpaceUpper , clientImplClassName , "ClientImpl" + component .baseClass ().ClassName )
2163
+ wImpl .Writeln ("%s_IMPL_LOOKUP_IMPLEMENT_BEGIN(%s, %s, %s )" , NameSpaceUpper , clientImplClassName , "ClientImpl" + component .baseClass ().ClassName , theClassName )
2164
2164
for j := 0 ; j < len (class .Methods ); j ++ {
2165
2165
method := class .Methods [j ]
2166
2166
wImpl .Writeln ("%s_IMPL_LOOKUP_ADD(%s)" , NameSpaceUpper , method .MethodName )
0 commit comments