2020-12-15 09:27:44 -04:00
|
|
|
// Copyright 2011-2020 Molecular Matters GmbH, all rights reserved.
|
2019-03-05 18:49:25 -05:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2020-12-15 09:27:44 -04:00
|
|
|
// BEGIN EPIC MOD
|
2019-03-05 18:49:25 -05:00
|
|
|
#include "CoreTypes.h"
|
|
|
|
|
#include "LC_Platform.h"
|
2020-12-15 09:27:44 -04:00
|
|
|
#include LC_PLATFORM_INCLUDE(LC_Foundation)
|
2019-03-05 18:49:25 -05:00
|
|
|
#include "Windows/WindowsHWrapper.h"
|
|
|
|
|
#include <dia2.h>
|
2020-12-15 09:27:44 -04:00
|
|
|
// END EPIC MOD
|
2019-03-05 18:49:25 -05:00
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
};
|
|
|
|
|
}
|