oa::MetricValueFormatter

Compact fixed-point formatting for live metrics.

Public Methods

oa::I32 oa::MetricValueFormatter::format(char * outBuffer, oa::I32 inBufferSize, oa::F64 inValue)
oa::I32 oa::MetricValueFormatter::precision()

Constructor & Destructor Documentation

oa::MetricValueFormatter::MetricValueFormatter( oa::I32 inDefaultPrecision = 4, oa::I32 inMaxPrecision = 8 )
No public source comment is attached to this declaration.

Parameters

inDefaultPrecision
oa::I32

Default: 4

inMaxPrecision
oa::I32

Default: 8

Public Method Documentation

oa::I32 oa::MetricValueFormatter::format( char * outBuffer, oa::I32 inBufferSize, oa::F64 inValue )
No public source comment is attached to this declaration.

Parameters

outBuffer
char *

inBufferSize
oa::I32

inValue
oa::F64

Returns

oa::I32

The declared return value.

oa::I32 oa::MetricValueFormatter::precision()
No public source comment is attached to this declaration.

Returns

oa::I32

The declared return value.