CatapultServer  v0.5.0.1 (Elephant)
tools/statusgen/main.cpp File Reference
Include dependency graph for tools/statusgen/main.cpp:

Namespaces

 catapult
 
 catapult::tools
 
 catapult::tools::statusgen
 

Macros

#define DEFINE_WELL_KNOWN_RESULT(CODE)   Output(ValidationResult::CODE, #CODE)
 
#define CUSTOM_RESULT_DEFINITION   1
 
#define STR(SYMBOL)   #SYMBOL
 
#define DEFINE_VALIDATION_RESULT(SEVERITY, FACILITY, DESCRIPTION, CODE, FLAGS)
 

Functions

int main (int argc, const char **argv)
 

Macro Definition Documentation

◆ CUSTOM_RESULT_DEFINITION

#define CUSTOM_RESULT_DEFINITION   1

◆ DEFINE_VALIDATION_RESULT

#define DEFINE_VALIDATION_RESULT (   SEVERITY,
  FACILITY,
  DESCRIPTION,
  CODE,
  FLAGS 
)
Value:
Output( \
MakeValidationResult((ResultSeverity::SEVERITY), (FacilityCode::FACILITY), CODE, (ResultFlags::FLAGS)), \
STR(SEVERITY##_##FACILITY##_##DESCRIPTION));

◆ DEFINE_WELL_KNOWN_RESULT

#define DEFINE_WELL_KNOWN_RESULT (   CODE)    Output(ValidationResult::CODE, #CODE)

◆ STR

#define STR (   SYMBOL)    #SYMBOL

Function Documentation

◆ main()

int main ( int  argc,
const char **  argv 
)
Here is the call graph for this function:
STR
#define STR(SYMBOL)
Definition: tools/statusgen/main.cpp:34
catapult::validators::MakeValidationResult
constexpr ValidationResult MakeValidationResult(ResultSeverity severity, FacilityCode facility, uint16_t code, ResultFlags flags)
Makes a validation result given severity, facility, code and flags.
Definition: ValidationResult.h:63