Forward declaration of the log record type published by observers.

Synopsis

Declared in <ball_record.h>

class Record;

Member Functions

Name

Description

Record [constructor]

Constructors

operator=

Assign to this log record the value of the specified rhs log record and return the reference to this modifiable record.

addAttribute

Add a managed copy of the specified attribute to the container of attributes maintained by this log record.

attributes

Return a reference providing non‐modifiable access to the attributes of this log record.

clear

Clear this log record by removing the user fields, attributes, and clearing the fixed field's message buffer. Note that this method is tailored for efficient memory use within the ball logging system.

customFields

customFields overloads

fixedFields

fixedFields overloads

numAllocatedBytes

Return the total number of bytes of dynamic memory allocated by this log record object. Note that this value does not include sizeof *this.

print

Format this object to the specified output stream at the optionally specified indentation level and return a reference to the modifiable stream. If level is specified, optionally specify spacesPerLevel, the number of spaces per indentation level for this and all of its nested objects. Each line is indented by the absolute value of level * spacesPerLevel. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, suppress line breaks and format the entire output on one line. If stream is initially invalid, this operation has no effect.

setCustomFields

Set the custom user‐defined fields of this log record to the value of the specified userFields.

setFixedFields

Set the fixed fields of this log record to the value of the specified fixedFields.

operator BloombergLP::bslmf::NestedTraitDeclaration<Record, UsesBslmaAllocator>

Declare that this type uses a bslma allocator.

Static Member Functions

Name

Description

deleteObject

Destroy the specified *object and use the allocator held by *object to deallocate its memory footprint. The behavior is undefined unless object is the address of a valid log record.

Friends

Name

Description

BloombergLP::ball::operator==

Return true if the specified lhs and rhs log records have the same value, and false otherwise. Two log records have the same value if the respective fixed fields have the same value and the respective user‐defined fields have the same value.

Non-Member Functions

Name

Description

operator!=

Return true if the specified lhs and rhs log records do not have the same value, and false otherwise. Two log records do not have the same value if either the respective fixed fields or user‐defined fields do not have the same value.

Created with MrDocs