2.10.0
Freundlich's C++ toolkit
Classes | Typedefs | Functions
fcppt::io Namespace Reference

IO-related typedefs and functions. More...

Classes

class  basic_scoped_rdbuf
 Gives a streambuf from one stream to another, restoring the original state in the destructor. More...
 

Typedefs

typedef fcppt::container::raw_vector::object< char > buffer
 
typedef std::basic_istream< fcppt::char_typeistream
 Typedef to either std::istream or std::wistream, depending on fcppt::char_type. More...
 
typedef std::basic_istringstream< fcppt::char_typeistringstream
 Typedef to either std::istringstream or std::wistringstream, depending on fcppt::char_type. More...
 
typedef fcppt::optional::object< fcppt::io::bufferoptional_buffer
 
typedef std::basic_ostream< fcppt::char_typeostream
 Typedef to either std::ostream or std::wostream, depending on fcppt::char_type. More...
 
typedef std::basic_ostringstream< fcppt::char_typeostringstream
 Typedef to either std::ostringstream or std::wostringstream, depending on fcppt::char_type. More...
 
typedef fcppt::io::basic_scoped_rdbuf< fcppt::char_typescoped_rdbuf
 
typedef std::basic_stringstream< fcppt::char_typestringstream
 Typedef to either std::stringstream or std::wstringstream, depending on fcppt::char_type. More...
 

Functions

FCPPT_DETAIL_SYMBOL fcppt::io::ostreamcerr ()
 Returns either std::cerr or std::wcerr, depending on fcppt::char_type. More...
 
FCPPT_DETAIL_SYMBOL fcppt::io::istreamcin ()
 Returns either std::cin or std::wcin, depending on fcppt::char_type. More...
 
FCPPT_DETAIL_SYMBOL fcppt::io::ostreamclog ()
 Returns either std::clog or std::wclog, depending on fcppt::char_type. More...
 
FCPPT_DETAIL_SYMBOL fcppt::io::ostreamcout ()
 Returns either std::cout or std::wcout, depending on fcppt::char_type. More...
 
template<typename Ch , typename Traits , typename Type >
std::basic_istream< Ch, Traits > & expect (std::basic_istream< Ch, Traits > &_stream, Type const &_value)
 Fails a stream if it does not read the expected value. More...
 
template<typename Type , typename Ch , typename Traits >
fcppt::optional::object< Type > extract (std::basic_istream< Ch, Traits > &_stream)
 Reads a value from a stream, returning an optional. More...
 
template<typename Ch , typename Traits >
fcppt::optional::object< Ch > get (std::basic_istream< Ch, Traits > &_stream)
 Gets a character from a stream. More...
 
template<typename Ch , typename Traits >
fcppt::optional::object< Ch > peek (std::basic_istream< Ch, Traits > &_stream)
 Peeks at a character from a stream. More...
 
template<typename Type >
fcppt::optional::object< Type > read (std::istream &_stream, fcppt::endianness::format const _format)
 Reads an object of arithmetic type from a stream. More...
 
FCPPT_DETAIL_SYMBOL fcppt::io::optional_buffer read_chars (std::istream &stream, std::size_t count)
 Reads a number of chars. More...
 
template<typename Ch , typename Traits >
std::basic_string< Ch, Traits > stream_to_string (std::basic_istream< Ch, Traits > &_stream)
 Converts the contents of a stream to a string. More...
 
fcppt::io::detail::widen_string widen_string (std::string _string)
 Creates a string that outputs each character by widening. More...
 
template<typename Type >
void write (std::ostream &_stream, Type const &_value, fcppt::endianness::format const _format)
 Writes an object of arithmetic type to a stream. More...
 
FCPPT_DETAIL_SYMBOL bool write_chars (std::ostream &stream, char const *data, std::size_t count) FCPPT_PP_WARN_UNUSED_RESULT
 Writes a number of chars. More...
 

Detailed Description

IO-related typedefs and functions.

Typedef Documentation

◆ buffer

◆ optional_buffer

◆ scoped_rdbuf