Constructors

Synopses

Declared in <ball_recordstringformatter.h>

Create a record formatter with the default format and zero offset.

explicit
RecordStringFormatter(allocator_type const& allocator = allocator_type());

Same as the preceding overload, using the specified basicallocator.

explicit
RecordStringFormatter(bslma::Allocator* basicallocator);

Create a record formatter with the default format and local‐time flag.

explicit
RecordStringFormatter(
    bool publishInLocalTime,
    allocator_type const& allocator = allocator_type());

Create a record formatter with the default format and given offset.

explicit
RecordStringFormatter(
    bdlt::DatetimeInterval const& offset,
    allocator_type const& allocator = allocator_type());

Create a record formatter as a copy of the specified original.

RecordStringFormatter(
    RecordStringFormatter const& original,
    allocator_type const& allocator = allocator_type());

Same as the preceding overload, using the specified format.

explicit
RecordStringFormatter(
    std::string_view const& format,
    allocator_type const& allocator = allocator_type());

Create a record formatter with the specified format and zero offset.

explicit
RecordStringFormatter(
    char const* format,
    allocator_type const& allocator = allocator_type());

Same as the preceding overload, using the specified format and basicAllocator.

RecordStringFormatter(
    char const* format,
    bslma::Allocator* basicAllocator);

Create a record formatter with the specified format and local‐time flag.

RecordStringFormatter(
    char const* format,
    bool publishInLocalTime,
    allocator_type const& allocator = allocator_type());

Create a record formatter with the specified format and offset.

RecordStringFormatter(
    char const* format,
    bdlt::DatetimeInterval const& offset,
    allocator_type const& allocator = allocator_type());

Parameters

Name

Description

allocator

allocator used to supply memory

basicallocator

allocator used to supply memory

publishInLocalTime

whether to format timestamps in local time

offset

timestamp offset applied to formatted timestamps

original

record formatter to copy

format

printf‐style format specification

basicAllocator

allocator used to supply memory

Created with MrDocs