bitz-server  2.0.1
Public Types | Public Member Functions | List of all members
fmt::BasicFormatter< CharType, ArgFormatter > Class Template Reference

#include <format.h>

Inheritance diagram for fmt::BasicFormatter< CharType, ArgFormatter >:
fmt::internal::FormatterBase

Public Types

typedef CharType Char
 

Public Member Functions

 BasicFormatter (const ArgList &args, BasicWriter< Char > &w)
 
BasicWriter< Char > & writer ()
 
void format (BasicCStringRef< Char > format_str)
 
const Charformat (const Char *&format_str, const internal::Arg &arg)
 

Detailed Description

template<typename CharType, typename ArgFormatter>
class fmt::BasicFormatter< CharType, ArgFormatter >

This template formats data and writes the output to a writer.

Member Typedef Documentation

◆ Char

template<typename CharType, typename ArgFormatter>
typedef CharType fmt::BasicFormatter< CharType, ArgFormatter >::Char

The character type for the output.

Constructor & Destructor Documentation

◆ BasicFormatter()

template<typename CharType, typename ArgFormatter>
fmt::BasicFormatter< CharType, ArgFormatter >::BasicFormatter ( const ArgList args,
BasicWriter< Char > &  w 
)
inline

Constructs a BasicFormatter object. References to the arguments and the writer are stored in the formatter object so make sure they have appropriate lifetimes.

Member Function Documentation

◆ format()

template<typename Char , typename AF >
void fmt::BasicFormatter< Char, AF >::format ( BasicCStringRef< Char format_str)

Formats stored arguments and writes the output to the writer.

◆ writer()

template<typename CharType, typename ArgFormatter>
BasicWriter<Char>& fmt::BasicFormatter< CharType, ArgFormatter >::writer ( )
inline

Returns a reference to the writer associated with this formatter.