forked from ClearFoundry/ClearScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHostObjectHolderImpl.h
More file actions
31 lines (21 loc) · 795 Bytes
/
HostObjectHolderImpl.h
File metadata and controls
31 lines (21 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma once
//-----------------------------------------------------------------------------
// HostObjectHolderImpl
//-----------------------------------------------------------------------------
class HostObjectHolderImpl final: public HostObjectHolder
{
PROHIBIT_COPY(HostObjectHolderImpl)
public:
HostObjectHolderImpl(void* pvObject, uint8_t subtype, uint16_t flags);
virtual HostObjectHolderImpl* Clone() const override;
virtual void* GetObject() const override;
virtual uint8_t GetSubtype() const override;
virtual uint16_t GetFlags() const override;
~HostObjectHolderImpl();
private:
void* m_pvObject;
uint8_t m_Subtype;
uint16_t m_Flags;
};