Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
YAML_PM::EmitterState Class Reference

#include <emitterstate.h>

Classes

struct  Group
 

Public Member Functions

void BeginGroup (GROUP_TYPE type)
 
void ClearModifiedSettings ()
 
bool CurrentlyInLongKey ()
 
 EmitterState ()
 
void EndGroup (GROUP_TYPE type)
 
void ForceHardSeparation ()
 
EMITTER_MANIP GetBoolCaseFormat () const
 
EMITTER_MANIP GetBoolFormat () const
 
EMITTER_MANIP GetBoolLengthFormat () const
 
FLOW_TYPE GetCurGroupFlowType () const
 
GROUP_TYPE GetCurGroupType () const
 
int GetCurIndent () const
 
EMITTER_STATE GetCurState () const
 
unsigned GetDoublePrecision () const
 
unsigned GetFloatPrecision () const
 
EMITTER_MANIP GetFlowType (GROUP_TYPE groupType) const
 
int GetIndent () const
 
EMITTER_MANIP GetIntFormat () const
 
const std::string GetLastError () const
 
EMITTER_MANIP GetMapKeyFormat () const
 
EMITTER_MANIP GetOutputCharset () const
 
int GetPostCommentIndent () const
 
int GetPreCommentIndent () const
 
EMITTER_MANIP GetStringFormat () const
 
bool good () const
 
void PopState ()
 
void PushState (EMITTER_STATE state)
 
void RequireHardSeparation ()
 
bool RequiresHardSeparation () const
 
void RequireSoftSeparation ()
 
bool RequiresSoftSeparation () const
 
bool SetBoolCaseFormat (EMITTER_MANIP value, FMT_SCOPE scope)
 
bool SetBoolFormat (EMITTER_MANIP value, FMT_SCOPE scope)
 
bool SetBoolLengthFormat (EMITTER_MANIP value, FMT_SCOPE scope)
 
bool SetDoublePrecision (int value, FMT_SCOPE scope)
 
void SetError (const std::string &error)
 
bool SetFloatPrecision (int value, FMT_SCOPE scope)
 
bool SetFlowType (GROUP_TYPE groupType, EMITTER_MANIP value, FMT_SCOPE scope)
 
bool SetIndent (unsigned value, FMT_SCOPE scope)
 
bool SetIntFormat (EMITTER_MANIP value, FMT_SCOPE scope)
 
void SetLocalValue (EMITTER_MANIP value)
 
bool SetMapKeyFormat (EMITTER_MANIP value, FMT_SCOPE scope)
 
bool SetOutputCharset (EMITTER_MANIP value, FMT_SCOPE scope)
 
bool SetPostCommentIndent (unsigned value, FMT_SCOPE scope)
 
bool SetPreCommentIndent (unsigned value, FMT_SCOPE scope)
 
bool SetStringFormat (EMITTER_MANIP value, FMT_SCOPE scope)
 
void StartLongKey ()
 
void StartSimpleKey ()
 
void SwitchState (EMITTER_STATE state)
 
void UnsetSeparation ()
 
 ~EmitterState ()
 

Private Member Functions

template<typename T >
void _Set (Setting< T > &fmt, T value, FMT_SCOPE scope)
 

Private Attributes

Setting< EMITTER_MANIPm_boolCaseFmt
 
Setting< EMITTER_MANIPm_boolFmt
 
Setting< EMITTER_MANIPm_boolLengthFmt
 
Setting< EMITTER_MANIPm_charset
 
unsigned m_curIndent
 
Setting< int > m_doublePrecision
 
Setting< int > m_floatPrecision
 
SettingChanges m_globalModifiedSettings
 
ptr_stack< Groupm_groups
 
Setting< unsigned > m_indent
 
Setting< EMITTER_MANIPm_intFmt
 
bool m_isGood
 
std::string m_lastError
 
Setting< EMITTER_MANIPm_mapFmt
 
Setting< EMITTER_MANIPm_mapKeyFmt
 
SettingChanges m_modifiedSettings
 
Setting< unsigned > m_postCommentIndent
 
Setting< unsigned > m_preCommentIndent
 
bool m_requiresHardSeparation
 
bool m_requiresSoftSeparation
 
Setting< EMITTER_MANIPm_seqFmt
 
std::stack< EMITTER_STATEm_stateStack
 
Setting< EMITTER_MANIPm_strFmt
 

Detailed Description

Definition at line 76 of file emitterstate.h.

Constructor & Destructor Documentation

◆ EmitterState()

YAML_PM::EmitterState::EmitterState ( )

Definition at line 7 of file emitterstate.cpp.

◆ ~EmitterState()

YAML_PM::EmitterState::~EmitterState ( )

Definition at line 29 of file emitterstate.cpp.

Member Function Documentation

◆ _Set()

template<typename T >
void YAML_PM::EmitterState::_Set ( Setting< T > &  fmt,
value,
FMT_SCOPE  scope 
)
private

Definition at line 201 of file emitterstate.h.

◆ BeginGroup()

void YAML_PM::EmitterState::BeginGroup ( GROUP_TYPE  type)

Definition at line 49 of file emitterstate.cpp.

◆ ClearModifiedSettings()

void YAML_PM::EmitterState::ClearModifiedSettings ( )

Definition at line 124 of file emitterstate.cpp.

◆ CurrentlyInLongKey()

bool YAML_PM::EmitterState::CurrentlyInLongKey ( )

Definition at line 105 of file emitterstate.cpp.

◆ EndGroup()

void YAML_PM::EmitterState::EndGroup ( GROUP_TYPE  type)

Definition at line 67 of file emitterstate.cpp.

◆ ForceHardSeparation()

void YAML_PM::EmitterState::ForceHardSeparation ( )
inline

Definition at line 111 of file emitterstate.h.

◆ GetBoolCaseFormat()

EMITTER_MANIP YAML_PM::EmitterState::GetBoolCaseFormat ( ) const
inline

Definition at line 130 of file emitterstate.h.

◆ GetBoolFormat()

EMITTER_MANIP YAML_PM::EmitterState::GetBoolFormat ( ) const
inline

Definition at line 124 of file emitterstate.h.

◆ GetBoolLengthFormat()

EMITTER_MANIP YAML_PM::EmitterState::GetBoolLengthFormat ( ) const
inline

Definition at line 127 of file emitterstate.h.

◆ GetCurGroupFlowType()

FLOW_TYPE YAML_PM::EmitterState::GetCurGroupFlowType ( ) const

Definition at line 97 of file emitterstate.cpp.

◆ GetCurGroupType()

GROUP_TYPE YAML_PM::EmitterState::GetCurGroupType ( ) const

Definition at line 89 of file emitterstate.cpp.

◆ GetCurIndent()

int YAML_PM::EmitterState::GetCurIndent ( ) const
inline

Definition at line 101 of file emitterstate.h.

◆ GetCurState()

EMITTER_STATE YAML_PM::EmitterState::GetCurState ( ) const
inline

Definition at line 88 of file emitterstate.h.

◆ GetDoublePrecision()

unsigned YAML_PM::EmitterState::GetDoublePrecision ( ) const
inline

Definition at line 152 of file emitterstate.h.

◆ GetFloatPrecision()

unsigned YAML_PM::EmitterState::GetFloatPrecision ( ) const
inline

Definition at line 150 of file emitterstate.h.

◆ GetFlowType()

EMITTER_MANIP YAML_PM::EmitterState::GetFlowType ( GROUP_TYPE  groupType) const

Definition at line 245 of file emitterstate.cpp.

◆ GetIndent()

int YAML_PM::EmitterState::GetIndent ( ) const
inline

Definition at line 136 of file emitterstate.h.

◆ GetIntFormat()

EMITTER_MANIP YAML_PM::EmitterState::GetIntFormat ( ) const
inline

Definition at line 133 of file emitterstate.h.

◆ GetLastError()

const std::string YAML_PM::EmitterState::GetLastError ( ) const
inline

Definition at line 84 of file emitterstate.h.

◆ GetMapKeyFormat()

EMITTER_MANIP YAML_PM::EmitterState::GetMapKeyFormat ( ) const
inline

Definition at line 147 of file emitterstate.h.

◆ GetOutputCharset()

EMITTER_MANIP YAML_PM::EmitterState::GetOutputCharset ( ) const
inline

Definition at line 118 of file emitterstate.h.

◆ GetPostCommentIndent()

int YAML_PM::EmitterState::GetPostCommentIndent ( ) const
inline

Definition at line 141 of file emitterstate.h.

◆ GetPreCommentIndent()

int YAML_PM::EmitterState::GetPreCommentIndent ( ) const
inline

Definition at line 139 of file emitterstate.h.

◆ GetStringFormat()

EMITTER_MANIP YAML_PM::EmitterState::GetStringFormat ( ) const
inline

Definition at line 121 of file emitterstate.h.

◆ good()

bool YAML_PM::EmitterState::good ( ) const
inline

Definition at line 83 of file emitterstate.h.

◆ PopState()

void YAML_PM::EmitterState::PopState ( )
inline

Definition at line 91 of file emitterstate.h.

◆ PushState()

void YAML_PM::EmitterState::PushState ( EMITTER_STATE  state)
inline

Definition at line 90 of file emitterstate.h.

◆ RequireHardSeparation()

void YAML_PM::EmitterState::RequireHardSeparation ( )
inline

Definition at line 110 of file emitterstate.h.

◆ RequiresHardSeparation()

bool YAML_PM::EmitterState::RequiresHardSeparation ( ) const
inline

Definition at line 108 of file emitterstate.h.

◆ RequireSoftSeparation()

void YAML_PM::EmitterState::RequireSoftSeparation ( )
inline

Definition at line 109 of file emitterstate.h.

◆ RequiresSoftSeparation()

bool YAML_PM::EmitterState::RequiresSoftSeparation ( ) const
inline

Definition at line 107 of file emitterstate.h.

◆ SetBoolCaseFormat()

bool YAML_PM::EmitterState::SetBoolCaseFormat ( EMITTER_MANIP  value,
FMT_SCOPE  scope 
)

Definition at line 180 of file emitterstate.cpp.

◆ SetBoolFormat()

bool YAML_PM::EmitterState::SetBoolFormat ( EMITTER_MANIP  value,
FMT_SCOPE  scope 
)

Definition at line 155 of file emitterstate.cpp.

◆ SetBoolLengthFormat()

bool YAML_PM::EmitterState::SetBoolLengthFormat ( EMITTER_MANIP  value,
FMT_SCOPE  scope 
)

Definition at line 168 of file emitterstate.cpp.

◆ SetDoublePrecision()

bool YAML_PM::EmitterState::SetDoublePrecision ( int  value,
FMT_SCOPE  scope 
)

Definition at line 276 of file emitterstate.cpp.

◆ SetError()

void YAML_PM::EmitterState::SetError ( const std::string &  error)
inline

Definition at line 85 of file emitterstate.h.

◆ SetFloatPrecision()

bool YAML_PM::EmitterState::SetFloatPrecision ( int  value,
FMT_SCOPE  scope 
)

Definition at line 268 of file emitterstate.cpp.

◆ SetFlowType()

bool YAML_PM::EmitterState::SetFlowType ( GROUP_TYPE  groupType,
EMITTER_MANIP  value,
FMT_SCOPE  scope 
)

Definition at line 233 of file emitterstate.cpp.

◆ SetIndent()

bool YAML_PM::EmitterState::SetIndent ( unsigned  value,
FMT_SCOPE  scope 
)

Definition at line 206 of file emitterstate.cpp.

◆ SetIntFormat()

bool YAML_PM::EmitterState::SetIntFormat ( EMITTER_MANIP  value,
FMT_SCOPE  scope 
)

Definition at line 193 of file emitterstate.cpp.

◆ SetLocalValue()

void YAML_PM::EmitterState::SetLocalValue ( EMITTER_MANIP  value)

Definition at line 36 of file emitterstate.cpp.

◆ SetMapKeyFormat()

bool YAML_PM::EmitterState::SetMapKeyFormat ( EMITTER_MANIP  value,
FMT_SCOPE  scope 
)

Definition at line 256 of file emitterstate.cpp.

◆ SetOutputCharset()

bool YAML_PM::EmitterState::SetOutputCharset ( EMITTER_MANIP  value,
FMT_SCOPE  scope 
)

Definition at line 129 of file emitterstate.cpp.

◆ SetPostCommentIndent()

bool YAML_PM::EmitterState::SetPostCommentIndent ( unsigned  value,
FMT_SCOPE  scope 
)

Definition at line 224 of file emitterstate.cpp.

◆ SetPreCommentIndent()

bool YAML_PM::EmitterState::SetPreCommentIndent ( unsigned  value,
FMT_SCOPE  scope 
)

Definition at line 215 of file emitterstate.cpp.

◆ SetStringFormat()

bool YAML_PM::EmitterState::SetStringFormat ( EMITTER_MANIP  value,
FMT_SCOPE  scope 
)

Definition at line 141 of file emitterstate.cpp.

◆ StartLongKey()

void YAML_PM::EmitterState::StartLongKey ( )

Definition at line 112 of file emitterstate.cpp.

◆ StartSimpleKey()

void YAML_PM::EmitterState::StartSimpleKey ( )

Definition at line 118 of file emitterstate.cpp.

◆ SwitchState()

void YAML_PM::EmitterState::SwitchState ( EMITTER_STATE  state)
inline

Definition at line 89 of file emitterstate.h.

◆ UnsetSeparation()

void YAML_PM::EmitterState::UnsetSeparation ( )
inline

Definition at line 112 of file emitterstate.h.

Member Data Documentation

◆ m_boolCaseFmt

Setting<EMITTER_MANIP> YAML_PM::EmitterState::m_boolCaseFmt
private

Definition at line 170 of file emitterstate.h.

◆ m_boolFmt

Setting<EMITTER_MANIP> YAML_PM::EmitterState::m_boolFmt
private

Definition at line 168 of file emitterstate.h.

◆ m_boolLengthFmt

Setting<EMITTER_MANIP> YAML_PM::EmitterState::m_boolLengthFmt
private

Definition at line 169 of file emitterstate.h.

◆ m_charset

Setting<EMITTER_MANIP> YAML_PM::EmitterState::m_charset
private

Definition at line 166 of file emitterstate.h.

◆ m_curIndent

unsigned YAML_PM::EmitterState::m_curIndent
private

Definition at line 195 of file emitterstate.h.

◆ m_doublePrecision

Setting<int> YAML_PM::EmitterState::m_doublePrecision
private

Definition at line 178 of file emitterstate.h.

◆ m_floatPrecision

Setting<int> YAML_PM::EmitterState::m_floatPrecision
private

Definition at line 177 of file emitterstate.h.

◆ m_globalModifiedSettings

SettingChanges YAML_PM::EmitterState::m_globalModifiedSettings
private

Definition at line 181 of file emitterstate.h.

◆ m_groups

ptr_stack<Group> YAML_PM::EmitterState::m_groups
private

Definition at line 194 of file emitterstate.h.

◆ m_indent

Setting<unsigned> YAML_PM::EmitterState::m_indent
private

Definition at line 172 of file emitterstate.h.

◆ m_intFmt

Setting<EMITTER_MANIP> YAML_PM::EmitterState::m_intFmt
private

Definition at line 171 of file emitterstate.h.

◆ m_isGood

bool YAML_PM::EmitterState::m_isGood
private

Definition at line 160 of file emitterstate.h.

◆ m_lastError

std::string YAML_PM::EmitterState::m_lastError
private

Definition at line 161 of file emitterstate.h.

◆ m_mapFmt

Setting<EMITTER_MANIP> YAML_PM::EmitterState::m_mapFmt
private

Definition at line 175 of file emitterstate.h.

◆ m_mapKeyFmt

Setting<EMITTER_MANIP> YAML_PM::EmitterState::m_mapKeyFmt
private

Definition at line 176 of file emitterstate.h.

◆ m_modifiedSettings

SettingChanges YAML_PM::EmitterState::m_modifiedSettings
private

Definition at line 180 of file emitterstate.h.

◆ m_postCommentIndent

Setting<unsigned> YAML_PM::EmitterState::m_postCommentIndent
private

Definition at line 173 of file emitterstate.h.

◆ m_preCommentIndent

Setting<unsigned> YAML_PM::EmitterState::m_preCommentIndent
private

Definition at line 173 of file emitterstate.h.

◆ m_requiresHardSeparation

bool YAML_PM::EmitterState::m_requiresHardSeparation
private

Definition at line 197 of file emitterstate.h.

◆ m_requiresSoftSeparation

bool YAML_PM::EmitterState::m_requiresSoftSeparation
private

Definition at line 196 of file emitterstate.h.

◆ m_seqFmt

Setting<EMITTER_MANIP> YAML_PM::EmitterState::m_seqFmt
private

Definition at line 174 of file emitterstate.h.

◆ m_stateStack

std::stack<EMITTER_STATE> YAML_PM::EmitterState::m_stateStack
private

Definition at line 164 of file emitterstate.h.

◆ m_strFmt

Setting<EMITTER_MANIP> YAML_PM::EmitterState::m_strFmt
private

Definition at line 167 of file emitterstate.h.


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


libpointmatcher
Author(s):
autogenerated on Sat May 27 2023 02:38:04