BDE 4.14.0 Production release
Loading...
Searching...
No Matches
balxml::Formatter_PrettyImplState Class Reference

#include <balxml_formatter_prettyimpl.h>

Public Types

typedef bsl::allocator< char > allocator_type
 
typedef Formatter_PrettyImplStateId Id
 
typedef FormatterWhitespaceType WhitespaceType
 

Public Member Functions

 BSLMF_NESTED_TRAIT_DECLARATION (Formatter_PrettyImplState, bslma::UsesBslmaAllocator)
 
 Formatter_PrettyImplState ()
 
 Formatter_PrettyImplState (const allocator_type &allocator)
 
 Formatter_PrettyImplState (int indentLevel, int spacesPerLevel, int wrapColumn, const allocator_type &allocator=allocator_type())
 
 Formatter_PrettyImplState (Id::Enum id, int indentLevel, int spacesPerLevel, int column, int wrapColumn, const bsl::vector< WhitespaceType::Enum > &elementNesting, const allocator_type &allocator=allocator_type())
 
 Formatter_PrettyImplState (const Formatter_PrettyImplState &original, const allocator_type &allocator=allocator_type())
 
int & column ()
 
bsl::vector< WhitespaceType::Enum > & elementNesting ()
 
Id::Enumid ()
 
int & indentLevel ()
 
int & spacesPerLevel ()
 
int & wrapColumn ()
 
const int & column () const
 
const bsl::vector< WhitespaceType::Enum > & elementNesting () const
 
allocator_type get_allocator () const
 Return the allocator associated with this object.
 
const Id::Enumid () const
 
const int & indentLevel () const
 
const int & spacesPerLevel () const
 
const int & wrapColumn () const
 

Detailed Description

This class provides an in-core, value-semantic attribute type that maintains all of the state information needed to pretty-print an XML document using the operations provided by Formatter_PrettyImplUtil.

See balxml_formatter_prettyimpl

Member Typedef Documentation

◆ allocator_type

◆ Id

◆ WhitespaceType

Constructor & Destructor Documentation

◆ Formatter_PrettyImplState() [1/5]

balxml::Formatter_PrettyImplState::Formatter_PrettyImplState ( )
inline

◆ Formatter_PrettyImplState() [2/5]

balxml::Formatter_PrettyImplState::Formatter_PrettyImplState ( const allocator_type allocator)
inlineexplicit

Create a Formatter_PrettyImplState having an id attribute of Id::e_AT_START, indentLevel, spacesPerLevel, column, and wrapColumn attributes of 0, and an empty elementNesting attribute. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.

◆ Formatter_PrettyImplState() [3/5]

balxml::Formatter_PrettyImplState::Formatter_PrettyImplState ( int  indentLevel,
int  spacesPerLevel,
int  wrapColumn,
const allocator_type allocator = allocator_type() 
)
inline

Create a Formatter_PrettyImplState having an id attribute of Id::e_AT_START, the specified indentLevel, the specified spacesPerLevel, and the specified wrapColumn, a column attribute of 0, and an empty elementNesting attribute. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.

◆ Formatter_PrettyImplState() [4/5]

balxml::Formatter_PrettyImplState::Formatter_PrettyImplState ( Id::Enum  id,
int  indentLevel,
int  spacesPerLevel,
int  column,
int  wrapColumn,
const bsl::vector< WhitespaceType::Enum > &  elementNesting,
const allocator_type allocator = allocator_type() 
)
inline

Create a Formatter_PrettyImplState having the specified id, indentLevel, spacesPerLevel, column, wrapColumn, and elementNesting attributes. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.

◆ Formatter_PrettyImplState() [5/5]

balxml::Formatter_PrettyImplState::Formatter_PrettyImplState ( const Formatter_PrettyImplState original,
const allocator_type allocator = allocator_type() 
)
inline

Create a Formatter_PrettyImplState object having the same value as the specified original object. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.

Member Function Documentation

◆ BSLMF_NESTED_TRAIT_DECLARATION()

balxml::Formatter_PrettyImplState::BSLMF_NESTED_TRAIT_DECLARATION ( Formatter_PrettyImplState  ,
bslma::UsesBslmaAllocator   
)

◆ column() [1/2]

int & balxml::Formatter_PrettyImplState::column ( )
inline

Return a reference providing modifiable access to the column attribute of this object.

◆ column() [2/2]

const int & balxml::Formatter_PrettyImplState::column ( ) const
inline

Return a reference providing non-modifiable access to the column attribute of this object.

◆ elementNesting() [1/2]

bsl::vector< FormatterWhitespaceType::Enum > & balxml::Formatter_PrettyImplState::elementNesting ( )
inline

Return a reference providing modifiable access to the elementNesting attribute of this object.

◆ elementNesting() [2/2]

const bsl::vector< FormatterWhitespaceType::Enum > & balxml::Formatter_PrettyImplState::elementNesting ( ) const
inline

Return a reference providing non-modifiable access to the elementNesting attribute of this object.

◆ get_allocator()

Formatter_PrettyImplState::allocator_type balxml::Formatter_PrettyImplState::get_allocator ( ) const
inline

◆ id() [1/2]

Formatter_PrettyImplStateId::Enum & balxml::Formatter_PrettyImplState::id ( )
inline

Return a reference providing modifiable access to the id attribute of this object.

◆ id() [2/2]

const Formatter_PrettyImplStateId::Enum & balxml::Formatter_PrettyImplState::id ( ) const
inline

Return a reference providing non-modifiable access to the id attribute of this object.

◆ indentLevel() [1/2]

int & balxml::Formatter_PrettyImplState::indentLevel ( )
inline

Return a reference providing modifiable access to the indentLevel attribute of this object.

◆ indentLevel() [2/2]

const int & balxml::Formatter_PrettyImplState::indentLevel ( ) const
inline

Return a reference providing non-modifiable access to the indentLevel attribute of this object.

◆ spacesPerLevel() [1/2]

int & balxml::Formatter_PrettyImplState::spacesPerLevel ( )
inline

Return a reference providing modifiable access to the spacesPerLevel attribute of this object.

◆ spacesPerLevel() [2/2]

const int & balxml::Formatter_PrettyImplState::spacesPerLevel ( ) const
inline

Return a reference providing non-modifiable access to the spacesPerLevel attribute of this object.

◆ wrapColumn() [1/2]

int & balxml::Formatter_PrettyImplState::wrapColumn ( )
inline

Return a reference providing modifiable access to the wrapColumn attribute of this object.

◆ wrapColumn() [2/2]

const int & balxml::Formatter_PrettyImplState::wrapColumn ( ) const
inline

Return a reference providing non-modifiable access to the wrapColumn attribute of this object.


The documentation for this class was generated from the following file: