8#ifndef INCLUDED_BALL_RECORD
9#define INCLUDED_BALL_RECORD
128#include <balscm_version.h>
144#include <bsl_iosfwd.h>
145#include <bsl_vector.h>
147#ifndef BDE_DONT_ALLOW_TRANSITIVE_INCLUDES
298 bsl::ostream&
print(bsl::ostream& stream,
300 int spacesPerLevel = 4)
const;
333 object->d_allocator_p->deleteObjectRaw(
object);
339: d_allocator(basicAllocator)
340, d_fixedFields(&d_allocator)
341, d_userFields(&d_allocator)
342, d_attributes(&d_allocator)
343, d_allocator_p(
bslma::Default::allocator(basicAllocator))
351: d_allocator(basicAllocator)
352, d_fixedFields(fixedFields, &d_allocator)
353, d_userFields(userFields, &d_allocator)
354, d_attributes(&d_allocator)
355, d_allocator_p(
bslma::Default::allocator(basicAllocator))
361: d_allocator(basicAllocator)
362, d_fixedFields(original.d_fixedFields, &d_allocator)
363, d_userFields(original.d_userFields, &d_allocator)
364, d_attributes(original.d_attributes, &d_allocator)
365, d_allocator_p(
bslma::Default::allocator(basicAllocator))
374 d_fixedFields = rhs.d_fixedFields;
375 d_userFields = rhs.d_userFields;
376 d_attributes = rhs.d_attributes;
392 d_attributes.clear();
398 return d_fixedFields;
410 d_userFields = userFields;
423 return d_fixedFields;
450 return lhs.d_fixedFields == rhs.d_fixedFields
451 && lhs.d_userFields == rhs.d_userFields
452 && lhs.d_attributes == rhs.d_attributes;
458 return !(lhs == rhs);
464 return record.print(stream, 0, -1);
Definition ball_attribute.h:198
Definition ball_countingallocator.h:138
size_type numBytesTotal() const
Definition ball_countingallocator.h:241
Definition ball_managedattribute.h:117
Definition ball_recordattributes.h:274
void clearMessage()
Definition ball_recordattributes.h:514
Definition ball_record.h:178
void setCustomFields(const ball::UserFields &userFields)
Definition ball_record.h:408
void clear()
Definition ball_record.h:388
ball::UserFields & customFields()
Definition ball_record.h:414
void addAttribute(const ball::Attribute &attribute)
Definition ball_record.h:382
Record & operator=(const Record &rhs)
Definition ball_record.h:371
friend bool operator==(const Record &, const Record &)
BSLMF_NESTED_TRAIT_DECLARATION(Record, bslma::UsesBslmaAllocator)
Record(bslma::Allocator *basicAllocator=0)
Definition ball_record.h:338
void setFixedFields(const RecordAttributes &fixedFields)
Definition ball_record.h:402
const bsl::vector< ball::ManagedAttribute > & attributes() const
Definition ball_record.h:433
~Record()=default
Destroy this object.
int numAllocatedBytes() const
Definition ball_record.h:439
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
static void deleteObject(const Record *object)
Definition ball_record.h:331
RecordAttributes & fixedFields()
Return the modifiable fixed fields of this log record.
Definition ball_record.h:396
Definition ball_userfields.h:136
void removeAll()
Definition ball_userfields.h:318
Definition bslstl_vector.h:1025
Definition bslma_allocator.h:457
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition ball_administration.h:214
bsl::ostream & operator<<(bsl::ostream &output, const Attribute &attribute)
bool operator!=(const Attribute &lhs, const Attribute &rhs)
bool operator==(const Attribute &lhs, const Attribute &rhs)
Definition balxml_encoderoptions.h:68
Definition bslma_usesbslmaallocator.h:343