Go to the source code of this file.
◆ DEFINE_EMBEDDABLE_TRANSACTION
#define DEFINE_EMBEDDABLE_TRANSACTION |
( |
|
NAME | ) |
|
Value:struct Embedded##NAME##
Transaction :
public NAME##TransactionBody<model::EmbeddedTransaction> {}; \
struct NAME##
Transaction :
public NAME##TransactionBody<model::Transaction> {};
Defines a transaction with NAME that supports embedding.
◆ DEFINE_TRANSACTION_CONSTANTS
#define DEFINE_TRANSACTION_CONSTANTS |
( |
|
TYPE, |
|
|
|
VERSION |
|
) |
| |
Value: \
static constexpr uint8_t Current_Version = VERSION; \
\
Defines constants for a transaction with TYPE and VERSION.
◆ DEFINE_TRANSACTION_VARIABLE_DATA_ACCESSORS
#define DEFINE_TRANSACTION_VARIABLE_DATA_ACCESSORS |
( |
|
NAME, |
|
|
|
TYPE |
|
) |
| |
Value: \
const TYPE* NAME##Ptr() const { \
return reinterpret_cast<const TYPE*>(NAME##PtrT(*this)); \
} \
\
\
TYPE* NAME##Ptr() { \
return reinterpret_cast<TYPE*>(NAME##PtrT(*this)); \
}
Defines NAME (TYPE typed) variable data accessors around a similarly named templated untyped data accessor.