Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCodingServer/Private/External/LC_DiaVariant.h
tim smith 6fcbe51e16 Removed usage of include file macros from LiveCoding source since it was causing issues with SN-DBS
#rb tim.smith

[CL 29401475 by tim smith in ue5-main branch]
2023-11-03 07:04:54 -04:00

39 lines
715 B
C++

// Copyright 2011-2020 Molecular Matters GmbH, all rights reserved.
#pragma once
// BEGIN EPIC MOD
#include "CoreTypes.h"
#include "LC_Platform.h"
#include "LC_Foundation_Windows.h"
#include "Windows/WindowsHWrapper.h"
#include <dia2.h>
// END EPIC MOD
namespace dia
{
// simple wrapper, does not allocate, does not deep copy
class Variant
{
public:
explicit Variant(IDiaSymbol* symbol);
~Variant(void);
// variants can only be moved, never be copied
Variant(Variant&& other);
inline const wchar_t* GetString(void) const
{
return m_str;
}
private:
VARIANT m_var;
BSTR m_str;
LC_DISABLE_COPY(Variant);
LC_DISABLE_ASSIGNMENT(Variant);
LC_DISABLE_MOVE_ASSIGNMENT(Variant);
};
}