Formatter factory base interface. More...
#include <formatter_parser.hpp>
Public Types | |
typedef CharT | char_type |
Character type. More... | |
typedef std::basic_string < char_type > | string_type |
String type. More... | |
typedef basic_formatter < char_type > | formatter_type |
The formatter function object. More... | |
typedef std::map< string_type, string_type > | args_map |
Type of the map of formatter factory arguments [argument name -> argument value]. More... | |
Public Member Functions | |
virtual | ~formatter_factory () |
Default constructor. More... | |
virtual formatter_type | create_formatter (attribute_name const &name, args_map const &args)=0 |
The function creates a formatter for the specified attribute. More... | |
Formatter factory base interface.
typedef std::map< string_type, string_type > boost::formatter_factory< CharT >::args_map |
Type of the map of formatter factory arguments [argument name -> argument value].
This type of maps will be passed to formatter factories on attempt to create a formatter.
typedef CharT boost::formatter_factory< CharT >::char_type |
Character type.
typedef basic_formatter< char_type > boost::formatter_factory< CharT >::formatter_type |
The formatter function object.
typedef std::basic_string< char_type > boost::formatter_factory< CharT >::string_type |
String type.
|
inlinevirtual |
Default constructor.
Virtual destructor
|
pure virtual |
The function creates a formatter for the specified attribute.
name | Attribute name |
args | Formatter arguments |
Implemented in boost::basic_formatter_factory< CharT, AttributeValueT >.