This class provides a value‐semantic description for the formatting of a metric. For each published aggregate type of a metric (e.g., count, total, min, max, etc.), a MetricFormat contains a MetricFormatSpec object describing how to format values of that aggregate, or null if no formatting information is supplied. Metricformat provides the setFormatSpec method to set the format spec for a publication type, and the formatSpec method to retrieve the format spec for a publication type (or 0 if no format spec has been provided for the indicated publication type). Note that the types of published aggregates explicitly provided by the balm package are defined in the PublicationType enumeration.
Synopsis
Declared in <balm_metricformat.h>
class MetricFormat;
Member Functions
Name |
Description |
|
Constructors |
Assign to this metric format object the value of the specified |
|
Remove the format spec for the specified |
|
Remove all format specs from this metric format object and put this object into its default‐constructed state. After this method returns, |
|
Return the address of the non‐modifiable format spec for the specified |
|
Format this object to the specified output |
|
Set the format spec for the metric aggregate indicated by the specified |
|
|
Declare that this type uses a |
Friends
Name |
Description |
Return |
Non-Member Functions
Name |
Description |
Return |
Created with MrDocs