[#BloombergLP-ball-RecordAttributes-2constructor-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/RecordAttributes.adoc[RecordAttributes]::RecordAttributes :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<ball_recordattributes.h>` Create a record attributes object with all attributes having default values. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/ball/RecordAttributes/2constructor-0f.adoc[RecordAttributes](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/RecordAttributes/2constructor-0f.adoc[_» more..._]# Create a record attributes object having the value of the specified `original` record attributes object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/RecordAttributes/2constructor-0d.adoc[RecordAttributes]( xref:BloombergLP/ball/RecordAttributes.adoc[RecordAttributes] const& original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/RecordAttributes/2constructor-0d.adoc[_» more..._]# Create a record attributes object having the specified attribute values. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/RecordAttributes/2constructor-06.adoc[RecordAttributes]( xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& timestamp, int processID, xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] threadID, std::string_view const& fileName, int lineNumber, std::string_view const& category, int severity, std::string_view const& message, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/RecordAttributes/2constructor-06.adoc[_» more..._]# Same as the preceding overload, additionally taking the specified `kernelThreadID`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/ball/RecordAttributes/2constructor-03.adoc[RecordAttributes]( xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& timestamp, int processID, xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] threadID, xref:BloombergLP/bsls/Types/Uint64.adoc[bsls::Types::Uint64] kernelThreadID, std::string_view const& fileName, int lineNumber, std::string_view const& category, int severity, std::string_view const& message, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/ball/RecordAttributes/2constructor-03.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | memory allocator; null uses the default | *original* | record attributes to copy | *timestamp* | creation date and time | *processID* | process id of creator | *threadID* | thread id of creator | *fileName* | file where created (`*FILE*`) | *lineNumber* | line number in file (`*LINE*`) | *category* | category of logged record | *severity* | severity of logged record | *message* | log message text | *kernelThreadID* | kernel thread id of creator |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#