Go to the source code of this file.
◆ DEFINE_TRANSACTION_PLUGIN_FACTORY
#define DEFINE_TRANSACTION_PLUGIN_FACTORY |
( |
|
NAME, |
|
|
|
OPTIONS, |
|
|
|
PUBLISH |
|
) |
| |
Value:std::unique_ptr<TransactionPlugin> Create##NAME##TransactionPlugin() { \
using Factory = TransactionPluginFactory<TransactionPluginFactoryOptions::OPTIONS>; \
return Factory::Create<NAME##Transaction, Embedded##NAME##Transaction>( \
PUBLISH<NAME##Transaction>, \
PUBLISH<Embedded##NAME##Transaction>); \
}
Defines a transaction plugin factory for NAME transaction with OPTIONS using PUBLISH.
◆ DEFINE_TRANSACTION_PLUGIN_FACTORY_WITH_CONFIG
#define DEFINE_TRANSACTION_PLUGIN_FACTORY_WITH_CONFIG |
( |
|
NAME, |
|
|
|
OPTIONS, |
|
|
|
PUBLISH, |
|
|
|
CONFIG_TYPE |
|
) |
| |
Value:std::unique_ptr<TransactionPlugin> Create##NAME##TransactionPlugin(const CONFIG_TYPE& config) { \
using Factory = TransactionPluginFactory<TransactionPluginFactoryOptions::OPTIONS>; \
return Factory::Create<NAME##Transaction, Embedded##NAME##Transaction>( \
PUBLISH<NAME##Transaction>(config), \
PUBLISH<Embedded##NAME##Transaction>(config)); \
}
Defines a transaction plugin factory for NAME transaction with OPTIONS using PUBLISH accepting CONFIG_TYPE configuration.