![]() |
![]() |
|
|
#include <fastformat/format/specification_defect_handling/mismatched_arguments_scope_base.hpp>
Public Types | |
typedef mismatched_arguments_scope_base | class_type |
Member Types. | |
Public Member Functions | |
virtual | ~mismatched_arguments_scope_base () throw () |
Restores the thread/process mismatched handler to the function registered prior to the construction of this instance. | |
Protected Member Functions | |
mismatched_arguments_scope_base (fastformat_mismatchedHandler_t handler, void *param) | |
Construction. | |
int | handle_default (void *, ff_replacement_code_t code, size_t numParameters, int parameterIndex, ff_string_slice_t *slice, void *reserved0, size_t reserved1, void *reserved2) |
Operations. | |
Protected Attributes | |
mismatched_handler_info_t | m_previous |
Previous handler, for chaining. |
Member Types.
This type
Reimplemented in ignore_missing_arguments_scope, and ignore_unreferenced_arguments_scope.
mismatched_arguments_scope_base | ( | fastformat_mismatchedHandler_t | handler, | |
void * | param | |||
) | [inline, explicit, protected] |
Construction.
Causes the thread/process mismatched handler to be set to a function that ignores the FF_REPLACEMENTCODE_UNREFERENCED_ARGUMENT
code and passes all others to the previously-registered handler
virtual ~mismatched_arguments_scope_base | ( | ) | throw () [inline, virtual] |
Restores the thread/process mismatched handler to the function registered prior to the construction of this instance.
References fastformat::fastformat_setThreadMismatchedHandler(), ff_mismatched_handler_info_t::handler, mismatched_arguments_scope_base::m_previous, and ff_mismatched_handler_info_t::param.
int handle_default | ( | void * | , | |
ff_replacement_code_t | code, | |||
size_t | numParameters, | |||
int | parameterIndex, | |||
ff_string_slice_t * | slice, | |||
void * | reserved0, | |||
size_t | reserved1, | |||
void * | reserved2 | |||
) | [inline, protected] |
Operations.
Invokes
References ff_mismatched_handler_info_t::handler, mismatched_arguments_scope_base::m_previous, and ff_mismatched_handler_info_t::param.
mismatched_handler_info_t m_previous [protected] |
Previous handler, for chaining.
Referenced by mismatched_arguments_scope_base::handle_default(), and mismatched_arguments_scope_base::~mismatched_arguments_scope_base().
|
|
FastFormat Library documentation © Matthew Wilson, 2006-2009 |
|