...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
(EXPERIMENTAL) Base class for concrete format contexts.
Defined in header <boost/mysql/format_sql.hpp>
class format_context_base
Name |
Description |
---|---|
Adds an error to the current error state. |
|
Adds raw SQL to the output string (low level). |
|
Formats a value and adds it to the output string (low level). |
|
Retrieves the current error state. |
|
Retrieves the format options. |
Conceptually, a format context contains:
format_context_base
is agnostic to the output string type.
format_options
required to format
values.
error_state
) that is set by
output operations when they fail. The error state is propagated to basic_format_context::get
.
References to this class are useful when you need to manipulate a format
context without knowing the type of the actual context that will be used,
like when specializing formatter
.
This class can't be instantiated directly - use basic_format_context
, instead. Do
not subclass it, either.