#include "Stroika/Foundation/StroikaPreComp.h"
#include <istream>
#include "Stroika/Foundation/Common/Common.h"
#include "Stroika/Foundation/Streams/InputStream.h"
#include "Stroika/Foundation/Streams/InternallySynchronizedInputStream.h"
#include "InputStreamFromStdIStream.inl"
Go to the source code of this file.
Namespaces | |
namespace | Stroika::Foundation |
namespace | Stroika::Foundation::Streams::iostream |
Functions | |
template<typename ELEMENT_TYPE , typename BASIC_ISTREAM_ELEMENT_TYPE , typename BASIC_ISTREAM_TRAITS_TYPE > requires ((same_as<ELEMENT_TYPE, byte> and same_as<BASIC_ISTREAM_ELEMENT_TYPE, char>) or (same_as<ELEMENT_TYPE, Characters::Character> and same_as<BASIC_ISTREAM_ELEMENT_TYPE, wchar_t>)) | |
Ptr< ELEMENT_TYPE > | Stroika::Foundation::Streams::iostream::InputStreamFromStdIStream::New (basic_istream< BASIC_ISTREAM_ELEMENT_TYPE, BASIC_ISTREAM_TRAITS_TYPE > &originalStream) |
Definition in file InputStreamFromStdIStream.h.
Ptr< ELEMENT_TYPE > Stroika::Foundation::Streams::iostream::InputStreamFromStdIStream::New | ( | basic_istream< BASIC_ISTREAM_ELEMENT_TYPE, BASIC_ISTREAM_TRAITS_TYPE > & | originalStream | ) |
InputStreamFromStdIStream wraps an argument std::istream or std::wistream or std::basic_istream<> as a Stroika InputStream object
Default seekability should be determined automatically, but for now, I cannot figure out how...
If you pass in eInternallySynchronized, the internal rep is internally synchronized, but you still must assure no other threads access the IStreamType object.
Definition at line 125 of file InputStreamFromStdIStream.inl.