Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Type format_mode

boost::units::format_mode

Synopsis

// In header: <boost/units/io.hpp>


enum format_mode { symbol_fmt = = 0, name_fmt = = 1, raw_fmt = = 2, 
                   typename_fmt = = 3, fmt_mask = = 3 };

Description

format of output of units, for example "m" or "meter".

name_fmt
default - reduces unit names to known symbols for both base and derived units.
raw_fmt
output full unit names for base and derived units, for example "meter".
typename_fmt
output only symbols for base units (but not derived units), for example "m".
fmt_mask
output demangled typenames (useful only for diagnosis).

PrevUpHomeNext