ACF
$AcfVersion:0$
Acf
Include
istd
TInterfaceFactory.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2
#pragma once
3
4
5
// ACF includes
6
#include <
istd/TInterfacePtr.h
>
7
#include <
istd/IFactoryInfo.h
>
8
9
10
namespace
istd
11
{
12
13
14
template
<
class
InterfaceType>
15
class
TInterfaceFactory
:
virtual
public
istd::IFactoryInfo
16
{
17
public
:
18
virtual
istd::TUniqueInterfacePtr<InterfaceType>
CreateInstance
(
const
QByteArray& typeId = QByteArray())
const
= 0;
19
};
20
21
22
}
// namespace istd
23
24
IFactoryInfo.h
TInterfacePtr.h
istd::IFactoryInfo
Base interface providing information about factory-producible objects.
Definition
IFactoryInfo.h:99
istd::TInterfaceFactory
Definition
TInterfaceFactory.h:16
istd::TInterfaceFactory::CreateInstance
virtual istd::TUniqueInterfacePtr< InterfaceType > CreateInstance(const QByteArray &typeId=QByteArray()) const =0
istd::TUniqueInterfacePtr
Unique ownership smart pointer for interface types.
Definition
TInterfacePtr.h:274
istd
Standard library.
Definition
IComponent.h:17
Generated by
1.9.8