From 5e97309798935053c4e73264f3e99391e813fe0f Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Wed, 24 Sep 2003 04:18:32 +0000 Subject: [PATCH] add *::State::resolved_as_cstring() --- include/OggFLAC++/decoder.h | 1 + include/OggFLAC++/encoder.h | 1 + 2 files changed, 2 insertions(+) diff --git a/include/OggFLAC++/decoder.h b/include/OggFLAC++/decoder.h index 9882faf..f463fa6 100644 --- a/include/OggFLAC++/decoder.h +++ b/include/OggFLAC++/decoder.h @@ -95,6 +95,7 @@ namespace OggFLAC { inline State(::OggFLAC__StreamDecoderState state): state_(state) { } inline operator ::OggFLAC__StreamDecoderState() const { return state_; } inline const char *as_cstring() const { return ::OggFLAC__StreamDecoderStateString[state_]; } + inline const char *resolved_as_cstring(const Stream &decoder) const { return ::OggFLAC__stream_decoder_get_resolved_state_string(decoder.decoder_); } protected: ::OggFLAC__StreamDecoderState state_; }; diff --git a/include/OggFLAC++/encoder.h b/include/OggFLAC++/encoder.h index dcab74d..96721e2 100644 --- a/include/OggFLAC++/encoder.h +++ b/include/OggFLAC++/encoder.h @@ -97,6 +97,7 @@ namespace OggFLAC { inline State(::OggFLAC__StreamEncoderState state): state_(state) { } inline operator ::OggFLAC__StreamEncoderState() const { return state_; } inline const char *as_cstring() const { return ::OggFLAC__StreamEncoderStateString[state_]; } + inline const char *resolved_as_cstring(const Stream &encoder) const { return ::OggFLAC__stream_encoder_get_resolved_state_string(encoder.encoder_); } protected: ::OggFLAC__StreamEncoderState state_; }; -- 2.7.4