WrapSTDIOStream()

System::IO::WrapSTDIOStream(std::basic_istream<char_type, traits_type>&, STDIOStreamWrappingMode) function

Wrapper function for std::basic_istream-like streams.

template<typename char_type,typename traits_type> SharedPtr<Stream> System::IO::WrapSTDIOStream(std::basic_istream<char_type, traits_type> &stream, STDIOStreamWrappingMode mode=STDIOStreamWrappingMode::Binary)

Arguments

ParameterTypeDescription
streamstd::basic_istream<char_type, traits_type>&std::basic_istream-like stream
modeSTDIOStreamWrappingModeWrapping mode

Return Value

BasicSTDIStreamWrapper wrapper

System::IO::WrapSTDIOStream(std::basic_ostream<char_type, traits_type>&, STDIOStreamWrappingMode) function

Wrapper function for std::basic_ostream-like streams.

template<typename char_type,typename traits_type> SharedPtr<Stream> System::IO::WrapSTDIOStream(std::basic_ostream<char_type, traits_type> &stream, STDIOStreamWrappingMode mode=STDIOStreamWrappingMode::Binary)

Arguments

ParameterTypeDescription
streamstd::basic_ostream<char_type, traits_type>&std::basic_ostream-like stream
modeSTDIOStreamWrappingModeWrapping mode

Return Value

BasicSTDOStreamWrapper wrapper

System::IO::WrapSTDIOStream(std::basic_iostream<char_type, traits_type>&, STDIOStreamWrappingMode, STDIOStreamPositionPreference) function

Wrapper function for std::basic_iostream-like streams.

template<typename char_type,typename traits_type> SharedPtr<Stream> System::IO::WrapSTDIOStream(std::basic_iostream<char_type, traits_type> &stream, STDIOStreamWrappingMode mode=STDIOStreamWrappingMode::Binary, STDIOStreamPositionPreference pref_pos=STDIOStreamPositionPreference::Zero)

Arguments

ParameterTypeDescription
streamstd::basic_iostream<char_type, traits_type>&std::basic_iostream-like stream
modeSTDIOStreamWrappingModeWrapping mode
pref_posSTDIOStreamPositionPreferencePosition that will prefer as read and write position, if they are different

Return Value

BasicSTDIOStreamWrapper wrapper

See Also