Quick Links: |
#include <balxml_formatter_compactimpl.h>
Public Types | |
typedef Formatter_CompactImplStateId | Id |
Public Member Functions | |
Formatter_CompactImplState () | |
Formatter_CompactImplState (int indentLevel, int spacesPerLevel) | |
Formatter_CompactImplState (Id::Enum id, int indentLevel, int initialIndentLevel, int spacesPerLevel, int column) | |
int & | column () |
Id::Enum & | id () |
int & | indentLevel () |
int & | initialIndentLevel () |
int & | spacesPerLevel () |
const int & | column () const |
const Id::Enum & | id () const |
const int & | indentLevel () const |
const int & | initialIndentLevel () const |
const int & | spacesPerLevel () const |
This class provides an in-core, value-semantic attribute type that maintains all of the state information needed to print an XML document with minimal whitespace using the operations provided by Formatter_CompactImplUtil
.
See Component balxml_formatter_compactimpl
balxml::Formatter_CompactImplState::Formatter_CompactImplState | ( | ) |
Create a Formatter_CompactImplState
having an id
attribute of Id::e_AT_START
, and indentLevel
, initialIndentLevel
, spacesPerLevel
, and column
attributes of 0.
balxml::Formatter_CompactImplState::Formatter_CompactImplState | ( | int | indentLevel, | |
int | spacesPerLevel | |||
) |
Create a Formatter_CompactImplState
having an id
attribute of Id::e_AT_START
, the specified indentLevel
and spacesPerLevel
, as well as an initialIndentLevel
attribute equal to indentLevel
, and a column
attribute of 0.
balxml::Formatter_CompactImplState::Formatter_CompactImplState | ( | Id::Enum | id, | |
int | indentLevel, | |||
int | initialIndentLevel, | |||
int | spacesPerLevel, | |||
int | column | |||
) |
Create a Formatter_CompactImplState
having the specified id
, indentLevel
, initialIndentLevel
, spacesPerLevel
, and column
attributes.
int& balxml::Formatter_CompactImplState::column | ( | ) |
Return a reference providing modifiable access to the column
attribute of this object.
Id::Enum& balxml::Formatter_CompactImplState::id | ( | ) |
Return a reference providing modifiable access to the id
attribute of this object.
int& balxml::Formatter_CompactImplState::indentLevel | ( | ) |
Return a reference providing modifiable access to the indentLevel
attribute of this object.
int& balxml::Formatter_CompactImplState::initialIndentLevel | ( | ) |
Return a reference providing modifiable access to the initialIndentLevel
attribute of this object.
int& balxml::Formatter_CompactImplState::spacesPerLevel | ( | ) |
Return a reference providing modifiable access to the spacesPerLevel
attribute of this object.
const int& balxml::Formatter_CompactImplState::column | ( | ) | const |
Return a reference providing non-modifiable access to the column
attribute of this object.
const Id::Enum& balxml::Formatter_CompactImplState::id | ( | ) | const |
Return a reference providing non-modifiable access to the id
attribute of this object.
const int& balxml::Formatter_CompactImplState::indentLevel | ( | ) | const |
Return a reference providing non-modifiable access to the indentLevel
attribute of this object.
const int& balxml::Formatter_CompactImplState::initialIndentLevel | ( | ) | const |
Return a reference providing non-modifiable access to the initialIndentLevel
attribute of this object.
const int& balxml::Formatter_CompactImplState::spacesPerLevel | ( | ) | const |
Return a reference providing non-modifiable access to the spacesPerLevel
attribute of this object.