12 #ifndef ZYPP_BASE_UNIT_H
13 #define ZYPP_BASE_UNIT_H
71 unsigned field_width_r = 0,
72 unsigned unit_width_r = 1 )
const
73 {
return form( val_r, field_width_r, unit_width_r,
_prec ); }
76 unsigned field_width_r,
77 unsigned unit_width_r,
78 unsigned prec_r )
const
80 field_width_r, unit_width_r, prec_r ); }
83 static std::string
form(
double val_r,
84 const std::string & symbol_r,
85 unsigned field_width_r,
86 unsigned unit_width_r,
103 #endif // ZYPP_BASE_UNIT_H
std::string form(ValueType val_r, unsigned field_width_r=0, unsigned unit_width_r=1) const
Build string representation of val_r.
std::string form(ValueType val_r, unsigned field_width_r, unsigned unit_width_r, unsigned prec_r) const
Simple handling of Units.
const std::string & symbol() const
Unit(ValueType factor_r, std::string symbol_r, unsigned prec_r)
ctor