CatapultServer  v0.5.0.1 (Elephant)
ReceiptType.cpp File Reference
Include dependency graph for ReceiptType.cpp:

Namespaces

 catapult
 
 catapult::model
 

Macros

#define DEFINE_CASE(RESULT)   case utils::to_underlying_type(RESULT)
 
#define CASE_WELL_KNOWN_RECEIPT_TYPE(NAME)   DEFINE_CASE(Receipt_Type_##NAME): return #NAME
 
#define CUSTOM_RECEIPT_TYPE_DEFINITION   1
 
#define STR(SYMBOL)   #SYMBOL
 
#define DEFINE_RECEIPT_TYPE(BASIC_TYPE, FACILITY, DESCRIPTION, CODE)
 

Functions

std::ostream & catapult::model::operator<< (std::ostream &out, ReceiptType receiptType)
 Insertion operator for outputting receiptType to out. More...
 

Macro Definition Documentation

◆ CASE_WELL_KNOWN_RECEIPT_TYPE

#define CASE_WELL_KNOWN_RECEIPT_TYPE (   NAME)    DEFINE_CASE(Receipt_Type_##NAME): return #NAME

◆ CUSTOM_RECEIPT_TYPE_DEFINITION

#define CUSTOM_RECEIPT_TYPE_DEFINITION   1

◆ DEFINE_CASE

#define DEFINE_CASE (   RESULT)    case utils::to_underlying_type(RESULT)

◆ DEFINE_RECEIPT_TYPE

#define DEFINE_RECEIPT_TYPE (   BASIC_TYPE,
  FACILITY,
  DESCRIPTION,
  CODE 
)
Value:
DEFINE_CASE(MakeReceiptType((model::BasicReceiptType::BASIC_TYPE), (model::FacilityCode::FACILITY), CODE)): \
return STR(DESCRIPTION)

◆ STR

#define STR (   SYMBOL)    #SYMBOL
DEFINE_CASE
#define DEFINE_CASE(RESULT)
Definition: ReceiptType.cpp:26
catapult::model::MakeReceiptType
constexpr ReceiptType MakeReceiptType(BasicReceiptType basicReceiptType, FacilityCode facilityCode, uint8_t code)
Makes receipt type given basicReceiptType, facilityCode and code.
Definition: ReceiptType.h:61
STR
#define STR(SYMBOL)
Definition: ReceiptType.cpp:33