add *::State::resolved_as_cstring()
This commit is contained in:
parent
f1c2379c47
commit
5e97309798
@ -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_;
|
||||
};
|
||||
|
@ -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_;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user