Files
UnrealEngineUWP/Engine/Source/Programs/Enterprise/Datasmith/DatasmithSketchUpRubyExporter/Private/DatasmithSketchUpString.h
Marc Audy 8f73cd7fa9 Merge UE5/Release-Engine-Staging @ 15630841 to UE5/Main
This represents UE4/Main @ 15601601

[CL 15631170 by Marc Audy in ue5-main branch]
2021-03-05 19:27:14 -04:00

26 lines
650 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Containers/UnrealString.h"
// SketchUp SDK.
#include "DatasmithSketchUpSDKBegins.h"
#include "SketchUpAPI/unicodestring.h"
#include "DatasmithSketchUpSDKCeases.h"
FString SuConvertString(SUStringRef StringRef);
template<typename FuncType, typename EntityType>
FString SuGetString(FuncType GetTheString, EntityType EntityRef)
{
SUStringRef StringRef = SU_INVALID;
SUStringCreate(&StringRef);
GetTheString(EntityRef, &StringRef); /* we can ignore the returned SU_RESULT */
FString Result = SuConvertString(StringRef);
SUStringRelease(&StringRef);
return Result;
}