Skip to content

Commit 37ededc

Browse files
Make client-impl-names simpler
1 parent e2901d1 commit 37ededc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Source/buildbindingccpp.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2130,11 +2130,14 @@ func buildCppClientImplementationClass(component ComponentDefinition, class Comp
21302130
w.Writeln("namespace %s {", NameSpace)
21312131
w.Writeln("namespace ClientImpl {")
21322132
w.Writeln("")
2133-
clientImplClassName := "ClientImpl" + theClassName
2133+
2134+
ClientImplClassPrefix := "C"
2135+
2136+
clientImplClassName := ClientImplClassPrefix + theClassName
21342137
if (bIsBaseClass) {
21352138
w.Writeln("class %s {", clientImplClassName)
21362139
} else {
2137-
w.Writeln("class %s : public %s {", clientImplClassName, "ClientImpl" + component.baseClass().ClassName)
2140+
w.Writeln("class %s : public %s {", clientImplClassName, ClientImplClassPrefix + component.baseClass().ClassName)
21382141
w.Writeln("")
21392142
w.Writeln(" %s_IMPL_DECLARE(%s, %s)", NameSpaceUpper, clientImplClassName, theClassName)
21402143
w.Writeln("")
@@ -2160,7 +2163,7 @@ func buildCppClientImplementationClass(component ComponentDefinition, class Comp
21602163
wImpl.Writeln("")
21612164

21622165
wImpl.Writeln("%s_IMPL_IMPLEMENT(%s)", NameSpaceUpper, clientImplClassName)
2163-
wImpl.Writeln("%s_IMPL_LOOKUP_IMPLEMENT_BEGIN(%s, %s, %s)", NameSpaceUpper, clientImplClassName, "ClientImpl" + component.baseClass().ClassName, theClassName)
2166+
wImpl.Writeln("%s_IMPL_LOOKUP_IMPLEMENT_BEGIN(%s, %s, %s)", NameSpaceUpper, clientImplClassName, ClientImplClassPrefix + component.baseClass().ClassName, theClassName)
21642167
for j := 0; j < len(class.Methods); j++ {
21652168
method := class.Methods[j]
21662169
wImpl.Writeln("%s_IMPL_LOOKUP_ADD(%s)", NameSpaceUpper, method.MethodName)

0 commit comments

Comments
 (0)