12#ifndef ZYPP_BASE_UNIT_H
13#define ZYPP_BASE_UNIT_H
54 Unit(
ValueType factor_r, std::string symbol_r,
unsigned prec_r )
63 const std::string &
symbol()
const
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,
std::string form(ValueType val_r, unsigned field_width_r=0, unsigned unit_width_r=1) const
Build string representation of val_r.
const std::string & symbol() const
Easy-to use interface to the ZYPP dependency resolver.