Column: Implemented ::renderDouble

This commit is contained in:
Paul Beckingham 2015-10-31 15:19:19 -04:00
parent b8ae54275e
commit 4d42584ca0
2 changed files with 14 additions and 0 deletions

View file

@ -277,3 +277,16 @@ void Column::renderInteger (
}
////////////////////////////////////////////////////////////////////////////////
void Column::renderDouble (
std::vector <std::string>& lines,
int width,
Color& color,
double value)
{
lines.push_back (
color.colorize (
rightJustify (
format (value, 4, 3), width)));
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -67,6 +67,7 @@ public:
protected:
void renderInteger (std::vector <std::string>&, int, Color&, int);
void renderDouble (std::vector <std::string>&, int, Color&, double);
protected:
std::string _name;