[#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 `&lt;ball&lowbar;recordstringformatter&period;h&gt;`

Create a record formatter with the default format and zero offset&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/RecordStringFormatter/2constructor-0b8.adoc[RecordStringFormatter](xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-0b8.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using the specified `basicallocator`&period;


[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&period;&period;&period;_]#

Create a record formatter with the default format and local&hyphen;time flag&period;


[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&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-00.adoc[_» more&period;&period;&period;_]#

Create a record formatter with the default format and given `offset`&period;


[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&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-0ea.adoc[_» more&period;&period;&period;_]#

Create a record formatter as a copy of the specified `original`&period;


[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&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-07.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using the specified `format`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/ball/RecordStringFormatter/2constructor-09.adoc[RecordStringFormatter](
    std::string&lowbar;view const& format,
    xref:BloombergLP/ball/RecordStringFormatter/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-09.adoc[_» more&period;&period;&period;_]#

Create a record formatter with the specified `format` and zero offset&period;


[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&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-06.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, using the specified `format` and `basicAllocator`&period;


[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&period;&period;&period;_]#

Create a record formatter with the specified format and local&hyphen;time flag&period;


[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&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-08.adoc[_» more&period;&period;&period;_]#

Create a record formatter with the specified `format` and `offset`&period;


[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&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/ball/RecordStringFormatter/2constructor-05.adoc[_» more&period;&period;&period;_]#

== 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&hyphen;style format specification
| *basicAllocator*
| allocator used to supply memory
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
