Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::iostreams::file_descriptor Class Reference

#include <file_descriptor.hpp>

Inheritance diagram for boost::iostreams::file_descriptor:

Classes

struct  category
 

Public Types

typedef detail::file_handle handle_type
 
typedef char char_type
 

Public Member Functions

 file_descriptor ()
 
 file_descriptor (handle_type fd, file_descriptor_flags)
 
 file_descriptor (const std::string &path, BOOST_IOS::openmode mode=BOOST_IOS::in|BOOST_IOS::out)
 
 file_descriptor (const char *path, BOOST_IOS::openmode mode=BOOST_IOS::in|BOOST_IOS::out)
 
template<typename Path >
 file_descriptor (const Path &path, BOOST_IOS::openmode mode=BOOST_IOS::in|BOOST_IOS::out)
 
 file_descriptor (const file_descriptor &other)
 
void open (handle_type fd, file_descriptor_flags)
 
void open (const std::string &path, BOOST_IOS::openmode mode=BOOST_IOS::in|BOOST_IOS::out)
 
void open (const char *path, BOOST_IOS::openmode mode=BOOST_IOS::in|BOOST_IOS::out)
 
template<typename Path >
void open (const Path &path, BOOST_IOS::openmode mode=BOOST_IOS::in|BOOST_IOS::out)
 
bool is_open () const
 
void close ()
 
std::streamsize read (char_type *s, std::streamsize n)
 
std::streamsize write (const char_type *s, std::streamsize n)
 
std::streampos seek (stream_offset off, BOOST_IOS::seekdir way)
 
handle_type handle () const
 

Friends

class file_descriptor_source
 
class file_descriptor_sink
 

Member Typedef Documentation

Constructor & Destructor Documentation

boost::iostreams::file_descriptor::file_descriptor ( )
boost::iostreams::file_descriptor::file_descriptor ( handle_type  fd,
file_descriptor_flags   
)
boost::iostreams::file_descriptor::file_descriptor ( const std::string &  path,
BOOST_IOS::openmode  mode = BOOST_IOS::in|BOOST_IOS::out 
)
explicit
boost::iostreams::file_descriptor::file_descriptor ( const char *  path,
BOOST_IOS::openmode  mode = BOOST_IOS::in|BOOST_IOS::out 
)
explicit
template<typename Path >
boost::iostreams::file_descriptor::file_descriptor ( const Path &  path,
BOOST_IOS::openmode  mode = BOOST_IOS::in | BOOST_IOS::out 
)
inlineexplicit
boost::iostreams::file_descriptor::file_descriptor ( const file_descriptor other)

Member Function Documentation

void boost::iostreams::file_descriptor::close ( )
handle_type boost::iostreams::file_descriptor::handle ( ) const
bool boost::iostreams::file_descriptor::is_open ( ) const
void boost::iostreams::file_descriptor::open ( handle_type  fd,
file_descriptor_flags   
)
void boost::iostreams::file_descriptor::open ( const std::string &  path,
BOOST_IOS::openmode  mode = BOOST_IOS::in|BOOST_IOS::out 
)
void boost::iostreams::file_descriptor::open ( const char *  path,
BOOST_IOS::openmode  mode = BOOST_IOS::in|BOOST_IOS::out 
)
template<typename Path >
void boost::iostreams::file_descriptor::open ( const Path &  path,
BOOST_IOS::openmode  mode = BOOST_IOS::in | BOOST_IOS::out 
)
inline
std::streamsize boost::iostreams::file_descriptor::read ( char_type s,
std::streamsize  n 
)
std::streampos boost::iostreams::file_descriptor::seek ( stream_offset  off,
BOOST_IOS::seekdir  way 
)
std::streamsize boost::iostreams::file_descriptor::write ( const char_type s,
std::streamsize  n 
)

Friends And Related Function Documentation

friend class file_descriptor_sink
friend
friend class file_descriptor_source
friend

The documentation for this class was generated from the following file: