From f1c2379c47ed29c9a5150ee19e5b4908bae8b6d7 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Wed, 24 Sep 2003 04:17:26 +0000 Subject: [PATCH] inline *::State::resolved_as_cstring() --- include/FLAC++/decoder.h | 5 ++--- include/FLAC++/encoder.h | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/FLAC++/decoder.h b/include/FLAC++/decoder.h index df2964f6..d0bbfe99 100644 --- a/include/FLAC++/decoder.h +++ b/include/FLAC++/decoder.h @@ -95,7 +95,6 @@ namespace FLAC { inline State(::FLAC__StreamDecoderState state): state_(state) { } inline operator ::FLAC__StreamDecoderState() const { return state_; } inline const char *as_cstring() const { return ::FLAC__StreamDecoderStateString[state_]; } - const char *resolved_as_cstring(const Stream &) const; protected: ::FLAC__StreamDecoderState state_; }; @@ -181,7 +180,7 @@ namespace FLAC { inline State(::FLAC__SeekableStreamDecoderState state): state_(state) { } inline operator ::FLAC__SeekableStreamDecoderState() const { return state_; } inline const char *as_cstring() const { return ::FLAC__SeekableStreamDecoderStateString[state_]; } - const char *resolved_as_cstring(const SeekableStream &) const; + inline const char *resolved_as_cstring(const SeekableStream &decoder) const { return ::FLAC__seekable_stream_decoder_get_resolved_state_string(decoder.decoder_); } protected: ::FLAC__SeekableStreamDecoderState state_; }; @@ -276,7 +275,7 @@ namespace FLAC { inline State(::FLAC__FileDecoderState state): state_(state) { } inline operator ::FLAC__FileDecoderState() const { return state_; } inline const char *as_cstring() const { return ::FLAC__FileDecoderStateString[state_]; } - const char *resolved_as_cstring(const File &) const; + inline const char *resolved_as_cstring(const File &decoder) const { return ::FLAC__file_decoder_get_resolved_state_string(decoder.decoder_); } protected: ::FLAC__FileDecoderState state_; }; diff --git a/include/FLAC++/encoder.h b/include/FLAC++/encoder.h index 5818dfad..9142436f 100644 --- a/include/FLAC++/encoder.h +++ b/include/FLAC++/encoder.h @@ -96,7 +96,7 @@ namespace FLAC { inline State(::FLAC__StreamEncoderState state): state_(state) { } inline operator ::FLAC__StreamEncoderState() const { return state_; } inline const char *as_cstring() const { return ::FLAC__StreamEncoderStateString[state_]; } - const char *resolved_as_cstring(const Stream &) const; + inline const char *resolved_as_cstring(const Stream &encoder) const { return ::FLAC__stream_encoder_get_resolved_state_string(encoder.encoder_); } protected: ::FLAC__StreamEncoderState state_; }; @@ -189,7 +189,7 @@ namespace FLAC { inline State(::FLAC__SeekableStreamEncoderState state): state_(state) { } inline operator ::FLAC__SeekableStreamEncoderState() const { return state_; } inline const char *as_cstring() const { return ::FLAC__SeekableStreamEncoderStateString[state_]; } - const char *resolved_as_cstring(const SeekableStream &) const; + inline const char *resolved_as_cstring(const SeekableStream &encoder) const { return ::FLAC__seekable_stream_encoder_get_resolved_state_string(encoder.encoder_); } protected: ::FLAC__SeekableStreamEncoderState state_; }; @@ -283,7 +283,7 @@ namespace FLAC { inline State(::FLAC__FileEncoderState state): state_(state) { } inline operator ::FLAC__FileEncoderState() const { return state_; } inline const char *as_cstring() const { return ::FLAC__FileEncoderStateString[state_]; } - const char *resolved_as_cstring(const File &) const; + inline const char *resolved_as_cstring(const File &encoder) const { return ::FLAC__file_encoder_get_resolved_state_string(encoder.encoder_); } protected: ::FLAC__FileEncoderState state_; };