#include <UnitConverter.h>
Public Member Functions | |
std::string | ucstring () |
UnitConverter (ALIdouble val, const ALIstring &category) | |
~UnitConverter () | |
Public Attributes | |
bool | angl_ |
CocoaBestUnit * | bu_ |
Definition at line 15 of file UnitConverter.h.
Definition at line 17 of file UnitConverter.cc.
References angl_.
UnitConverter::~UnitConverter | ( | ) |
std::string UnitConverter::ucstring | ( | ) |
Definition at line 29 of file UnitConverter.cc.
References angl_, bu_, CocoaBestUnit::GetValue(), alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, and x.
{ std::ostrstream str; if (angl_) { str.precision(11); double x = ( *(bu_->GetValue()) ) / deg; str << x << std::string("*deg") << '\0'; return std::string(str.str()); } else { str << *bu_ << '\0'; std::string s(str.str()); return s.replace(s.find(" "),1,"*"); } //return s; }
bool UnitConverter::angl_ |
Definition at line 24 of file UnitConverter.h.
Referenced by ucstring(), and UnitConverter().
Definition at line 23 of file UnitConverter.h.
Referenced by ucstring(), and ~UnitConverter().