BloombergLP::balxml::Formatter_State

Component-private variant holding compact or pretty formatter state.

Synopsis

Declared in <balxml_formatter.h>

class Formatter_State;

Description

This component-private, in-core, value-semantic class provides a variant that can be inhabited by an object of either the component-private Formatter_CompactImplState type or the component-private Formatter_PrettyImplState type.

Type Aliases

NameDescription
Mode Formatting mode type used by this class.
allocator_type Allocator type used by this class.

Member Functions

NameDescription
Formatter_State [constructor]Constructors
~Formatter_State [destructor]Destroy this object.
operator= Assign to this object the value of the specified rhs and return a reference to this object.
get_allocator Return the allocator associated with this object.
operator BloombergLP::bslmf::NestedTraitDeclaration<Formatter_State, UsesBslmaAllocator> Formatter_State uses a bslma allocator.

Data Members

NameDescription
d_compact [variant member]Compact-formatter state when d_mode is Mode::e_COMPACT.
d_pretty [variant member]Pretty-formatter state when d_mode is Mode::e_PRETTY.

Friends

NameDescription
BloombergLP::balxml::FormatterFormat XML tags, attributes, and data with indentation and wrapping.