Constructors
Declared in <ball_recordstringformatter.h>
Create a record formatter with the default format and zero offset.
explicit
RecordStringFormatter(allocator_type const& allocator = allocator_type());
» more...
Same as the preceding overload, using the specified basicallocator.
explicit
RecordStringFormatter(bslma::Allocator* basicallocator);
» more...
Create a record formatter with the default format and local-time flag.
explicit
RecordStringFormatter(
bool publishInLocalTime,
allocator_type const& allocator = allocator_type());
» more...
Create a record formatter with the default format and given offset.
explicit
RecordStringFormatter(
bdlt::DatetimeInterval const& offset,
allocator_type const& allocator = allocator_type());
» more...
Create a record formatter as a copy of the specified original.
RecordStringFormatter(
RecordStringFormatter const& original,
allocator_type const& allocator = allocator_type());
» more...
Same as the preceding overload, using the specified format.
explicit
RecordStringFormatter(
std::string_view const& format,
allocator_type const& allocator = allocator_type());
» more...
Create a record formatter with the specified format and zero offset.
explicit
RecordStringFormatter(
char const* format,
allocator_type const& allocator = allocator_type());
» more...
Same as the preceding overload, using the specified format and basicAllocator.
RecordStringFormatter(
char const* format,
bslma::Allocator* basicAllocator);
» more...
Create a record formatter with the specified format and local-time flag.
RecordStringFormatter(
char const* format,
bool publishInLocalTime,
allocator_type const& allocator = allocator_type());
» more...
Create a record formatter with the specified format and offset.
RecordStringFormatter(
char const* format,
bdlt::DatetimeInterval const& offset,
allocator_type const& allocator = allocator_type());
» more...
| 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 |