[#BloombergLP-ball-RecordStringFormatter-2constructor-0e5] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/RecordStringFormatter.adoc[RecordStringFormatter]::RecordStringFormatter :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<ball_recordstringformatter.h>` Create a record formatter with the default format and zero offset. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/ball/RecordStringFormatter/2constructor-0b8.adoc[RecordStringFormatter](xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-0b8.adoc[_» more..._]# Same as the preceding overload, using the specified `basicallocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/ball/RecordStringFormatter/2constructor-0b9.adoc[RecordStringFormatter](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicallocator); ---- [.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-0b9.adoc[_» more..._]# Create a record formatter with the default format and local‐time flag. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/ball/RecordStringFormatter/2constructor-00.adoc[RecordStringFormatter]( bool publishInLocalTime, xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-00.adoc[_» more..._]# Create a record formatter with the default format and given `offset`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/ball/RecordStringFormatter/2constructor-0ea.adoc[RecordStringFormatter]( xref:BloombergLP/bdlt/DatetimeInterval.adoc[bdlt::DatetimeInterval] const& offset, xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-0ea.adoc[_» more..._]# Create a record formatter as a copy of the specified `original`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/RecordStringFormatter/2constructor-07.adoc[RecordStringFormatter]( xref:BloombergLP/ball/RecordStringFormatter.adoc[RecordStringFormatter] const& original, xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-07.adoc[_» more..._]# Same as the preceding overload, using the specified `format`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/ball/RecordStringFormatter/2constructor-09.adoc[RecordStringFormatter]( std::string_view const& format, xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-09.adoc[_» more..._]# Create a record formatter with the specified `format` and zero offset. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/ball/RecordStringFormatter/2constructor-06.adoc[RecordStringFormatter]( char const* format, xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-06.adoc[_» more..._]# Same as the preceding overload, using the specified `format` and `basicAllocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/RecordStringFormatter/2constructor-0c.adoc[RecordStringFormatter]( char const* format, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator); ---- [.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-0c.adoc[_» more..._]# Create a record formatter with the specified format and local‐time flag. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/RecordStringFormatter/2constructor-08.adoc[RecordStringFormatter]( char const* format, bool publishInLocalTime, xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-08.adoc[_» more..._]# Create a record formatter with the specified `format` and `offset`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/RecordStringFormatter/2constructor-05.adoc[RecordStringFormatter]( char const* format, xref:BloombergLP/bdlt/DatetimeInterval.adoc[bdlt::DatetimeInterval] const& offset, xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-05.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | 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 |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#