BloombergLP::balm::MetricFormatSpec

This class provides a value-semantic representation of the formatting specification for a metric aggregate value.

Synopsis

Declared in <balm_metricformat.h>

class MetricFormatSpec;

Description

The scale() is a multiplier used to scale the numeric value. The format() is a printf-style format string suitable for formatting a single floating-point value.

Member Functions

NameDescription
MetricFormatSpec [constructor]Constructors
operator= Assign to this format spec the value of the specified rhs format spec, and return a reference to this modifiable format spec.
format Return the address of the null-terminated string containing the printf-style format that may be used to format values.
print Format this object to the specified output stream.
scale Return the floating-point multiplier value that may be applied to scale formatted values.
setFormat Set the printf-style formatting string used when formatting.
setScale Set, to the specified scale, the scale multiplier that may be applied when formatting values.

Static Member Functions

NameDescription
formatValue Write the specified value to the specified stream using the specified format, and return a reference to the modifiable stream.

Non-Member Functions

NameDescription
operator!=Return true if the specified lhs and rhs metric format specs do not have the same value, and false otherwise.
operator==Return true if the specified lhs and rhs metric format specs have the same value, and false otherwise.