From a407c763b4a81927f9756b54a1ae09d536543173 Mon Sep 17 00:00:00 2001 From: Alexander Oster Date: Wed, 5 Aug 2020 15:11:50 +0200 Subject: [PATCH] renamed GetHandle function in c++ header --- Source/buildbindingccpp.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Source/buildbindingccpp.go b/Source/buildbindingccpp.go index a8ba2cb4..7e5798a7 100644 --- a/Source/buildbindingccpp.go +++ b/Source/buildbindingccpp.go @@ -883,12 +883,20 @@ func writeDynamicCppBaseClassMethods(component ComponentDefinition, baseClass Co w.Writeln(" }") w.Writeln("") w.Writeln(" /**") - w.Writeln(" * %s::GetHandle - Returns handle to instance.", cppBaseClassName) + w.Writeln(" * %s::handle - Returns handle to instance.", cppBaseClassName) w.Writeln(" */") - w.Writeln(" %sHandle GetHandle() const", NameSpace) + w.Writeln(" %sHandle handle() const", NameSpace) w.Writeln(" {") w.Writeln(" return m_pHandle;") w.Writeln(" }") + w.Writeln("") + w.Writeln(" /**") + w.Writeln(" * %s::wrapper - Returns wrapper instance.", cppBaseClassName) + w.Writeln(" */") + w.Writeln(" %s%sWrapper * wrapper() const", cppClassPrefix, ClassIdentifier) + w.Writeln(" {") + w.Writeln(" return m_pWrapper;") + w.Writeln(" }") w.Writeln(" ") w.Writeln(" friend class CWrapper;") @@ -1157,7 +1165,7 @@ func buildCppHeader(component ComponentDefinition, w LanguageWriter, NameSpace s w.Writeln(" %sHandle GetHandle()", NameSpace) w.Writeln(" {") w.Writeln(" if (m_ptr != nullptr)") - w.Writeln(" return m_ptr->GetHandle();") + w.Writeln(" return m_ptr->handle();") w.Writeln(" return nullptr;") w.Writeln(" }") w.Writeln("};")