[#BloombergLP-bdlt-FixUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::FixUtil
:relfileprefix: ../../
:mrdocs:

This `struct` provides a namespace for a suite of pure functions that perform conversions between objects of `bdlt` vocabulary type and their FIX representations&period; Each `generate` and `generateRaw` method takes a `bdlt` object (of type `Date`, `DateTz`, `Time`, `TimeTz`, `Datetime`, or `DatetimeTz`) and outputs its corresponding FIX representation to a user&hyphen;supplied character buffer or `bsl&colon;&colon;ostream`&period; The `parse` methods effect the opposite conversion in that they populate a `bdlt` object from the result of parsing a FIX representation&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;fixutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct FixUtil;
----

== Enums

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/FixUtil/_04enum.adoc[`Unnamed enum`] 
| This enumeration defines fixed lengths for the FIX representations of date, time, and datetime values&period; Note that these constants do _not_ account for the null terminator that may be produced by the `generate` functions taking a `bufferLength` argument&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/FixUtil/generate-088d.adoc[`generate`] 
| `generate` overloads
| xref:BloombergLP/bdlt/FixUtil/generateRaw-0f.adoc[`generateRaw`] 
| Write the FIX representation of the specified `object` to the specified `buffer`&period; Optionally specify a `configuration` to affect the format of the generated string&period; If `configuration` is not supplied, the process&hyphen;wide default value `FixUtilConfiguration&colon;&colon;defaultConfiguration()` is used&period; Return the number of characters in the formatted string&period; `buffer` is not null terminated&period; The behavior is undefined unless `buffer` has sufficient capacity&period; Note that a buffer of size `k&lowbar;MAX&lowbar;STRLEN &plus; 1` is large enough to hold any string generated by this component (counting a null terminator, if any)&period;
| xref:BloombergLP/bdlt/FixUtil/parse-04a.adoc[`parse`] 
| `parse` overloads
|===



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