//********************************************************************* // // Format. virtual // // bool nuiFormater::Format (double dValue, nglString& rResult) const { // identity (default formater) rResult.CFormat ("%.0f", dValue); // i.e., 45.80 return true; }
void nuiRange::ToString(nglString& str) { //double Value, double Min, double Max, double Increment, double PageIncrement, double PageSize, double Origin str.CFormat(_T("[%g %g %g %g %g %g %g]"), mValue, mMinimum, mMaximum, mIncrement, mPageIncrement, mPageSize, mOrigin); }
bool nuiMatrixViewFormater::Format (double dValue, nglString& rResult) const { rResult.CFormat(_T("%.0f"), dValue); return true; }
void OutFormater(nglString& rString, float value) { rString.CFormat(_T("%3.1f%%"), 100.0f * value); }
void DelayFormater(nglString& rString, float value) { rString.CFormat(_T("%2.2fs"), value); }
void BM2GetFeatureKey(uint32 ID, nglString& rKey) { rKey.CFormat(_T("bm2lic.%#08x"), ID); }