Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Go to the source code of this file.
Macros | |
#define | DT_COMMAND_RETURNED_ERROR(ReturnedInfo, ErrorCode, ErrorMessage) |
#define | DT_COMMAND_RETURNED_SUCCESS(ReturnedInfo, OutputMessage) |
#define DT_COMMAND_RETURNED_ERROR | ( | ReturnedInfo, | |
ErrorCode, | |||
ErrorMessage | |||
) |
Build a command::returned_info object with proper error code and comprehensive message.
This macro is intended to simplify the common use case of initializing command::returned_info objects when some error is detected. This macro takes three arguments as follows
ReturnedInfo | The command::returned_info target object |
ErrorCode | The error code (as a command::error_code_type value) |
ErrorMessage | Message to supply to the command::returned_info object, this must take the form of a string or output stream sequence |
In the simplest case it may be used as
If Message is composed from several streamable objects, it can be composed using the streaming operator:
#define DT_COMMAND_RETURNED_SUCCESS | ( | ReturnedInfo, | |
OutputMessage | |||
) |
Build a command::returned_info object with proper output message.
This macro is intended to simplify the common use case of initializing command::returned_info objects when no error is detected. This macro takes two arguments as follows
ReturnedInfo | The command::returned_info target object |
OutputMessage | Ouptut to supply to the command::returned_info object, this must take the form of a string or output stream sequence |
In the simplest case it may be used as
If Message is composed from several streamable objects, it can be composed using the streaming operator: