1 #ifndef EMITTERSTATE_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM 2 #define EMITTERSTATE_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM 4 #if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4 155 template <
typename T>
200 template <
typename T>
217 #endif // EMITTERSTATE_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM void SetLocalValue(EMITTER_MANIP value)
EMITTER_STATE GetCurState() const
Setting< int > m_floatPrecision
void EndGroup(GROUP_TYPE type)
EMITTER_MANIP GetStringFormat() const
EMITTER_MANIP GetBoolLengthFormat() const
bool SetBoolFormat(EMITTER_MANIP value, FMT_SCOPE scope)
bool SetFlowType(GROUP_TYPE groupType, EMITTER_MANIP value, FMT_SCOPE scope)
void push(std::auto_ptr< SettingChangeBase > pSettingChange)
Setting< EMITTER_MANIP > m_intFmt
SettingChanges modifiedSettings
std::auto_ptr< SettingChangeBase > set(const T &value)
bool SetOutputCharset(EMITTER_MANIP value, FMT_SCOPE scope)
void SetError(const std::string &error)
void _Set(Setting< T > &fmt, T value, FMT_SCOPE scope)
const std::string GetLastError() const
Setting< EMITTER_MANIP > m_boolLengthFmt
std::stack< EMITTER_STATE > m_stateStack
bool SetIntFormat(EMITTER_MANIP value, FMT_SCOPE scope)
SettingChanges m_modifiedSettings
EMITTER_MANIP GetBoolFormat() const
bool SetStringFormat(EMITTER_MANIP value, FMT_SCOPE scope)
bool SetFloatPrecision(int value, FMT_SCOPE scope)
EMITTER_MANIP GetIntFormat() const
Setting< int > m_doublePrecision
bool m_requiresSoftSeparation
bool CurrentlyInLongKey()
bool SetBoolCaseFormat(EMITTER_MANIP value, FMT_SCOPE scope)
bool SetPreCommentIndent(unsigned value, FMT_SCOPE scope)
Setting< EMITTER_MANIP > m_boolFmt
Setting< unsigned > m_preCommentIndent
Setting< EMITTER_MANIP > m_mapKeyFmt
unsigned GetDoublePrecision() const
Setting< EMITTER_MANIP > m_mapFmt
Setting< EMITTER_MANIP > m_seqFmt
void PushState(EMITTER_STATE state)
bool RequiresSoftSeparation() const
Setting< unsigned > m_indent
EMITTER_MANIP GetFlowType(GROUP_TYPE groupType) const
int GetPostCommentIndent() const
void BeginGroup(GROUP_TYPE type)
int GetPreCommentIndent() const
bool RequiresHardSeparation() const
void ClearModifiedSettings()
bool m_requiresHardSeparation
void SwitchState(EMITTER_STATE state)
EMITTER_MANIP GetBoolCaseFormat() const
bool SetIndent(unsigned value, FMT_SCOPE scope)
void RequireHardSeparation()
SettingChanges m_globalModifiedSettings
EMITTER_MANIP GetMapKeyFormat() const
bool SetBoolLengthFormat(EMITTER_MANIP value, FMT_SCOPE scope)
FLOW_TYPE GetCurGroupFlowType() const
EMITTER_MANIP GetOutputCharset() const
GROUP_TYPE GetCurGroupType() const
Setting< EMITTER_MANIP > m_boolCaseFmt
Setting< unsigned > m_postCommentIndent
bool SetMapKeyFormat(EMITTER_MANIP value, FMT_SCOPE scope)
unsigned GetFloatPrecision() const
Setting< EMITTER_MANIP > m_charset
bool SetPostCommentIndent(unsigned value, FMT_SCOPE scope)
bool SetDoublePrecision(int value, FMT_SCOPE scope)
void ForceHardSeparation()
ptr_stack< Group > m_groups
Setting< EMITTER_MANIP > m_strFmt
void RequireSoftSeparation()