libtorrent::file Class Reference

#include <file.hpp>

List of all members.

Public Member Functions

 file ()
 file (boost::filesystem::path const &p, open_mode m)
 ~file ()
void open (boost::filesystem::path const &p, open_mode m)
void close ()
size_type write (const char *, size_type num_bytes)
size_type read (char *, size_type num_bytes)
size_type seek (size_type pos, seek_mode m=begin)
size_type tell ()

Static Public Attributes

static const seek_mode begin
static const seek_mode end
static const open_mode in
static const open_mode out

Private Attributes

const std::auto_ptr< implm_impl

Classes

struct  impl
class  open_mode
class  seek_mode


Detailed Description

Definition at line 61 of file file.hpp.


Constructor & Destructor Documentation

libtorrent::file::file (  ) 

Definition at line 262 of file file.cpp.

libtorrent::file::file ( boost::filesystem::path const &  p,
file::open_mode  m 
)

Definition at line 264 of file file.cpp.

libtorrent::file::~file (  ) 

Definition at line 268 of file file.cpp.


Member Function Documentation

void libtorrent::file::open ( boost::filesystem::path const &  p,
file::open_mode  m 
)

Definition at line 270 of file file.cpp.

References m_impl, and libtorrent::file::open_mode::m_mask.

void libtorrent::file::close (  ) 

Definition at line 275 of file file.cpp.

References m_impl.

size_type libtorrent::file::write ( const char *  buf,
size_type  num_bytes 
)

Definition at line 280 of file file.cpp.

References m_impl.

size_type libtorrent::file::read ( char *  buf,
size_type  num_bytes 
)

Definition at line 285 of file file.cpp.

References m_impl.

size_type libtorrent::file::seek ( size_type  pos,
file::seek_mode  m = begin 
)

Definition at line 290 of file file.cpp.

References m_impl, and libtorrent::file::seek_mode::m_val.

size_type libtorrent::file::tell (  ) 

Definition at line 295 of file file.cpp.

References m_impl.


Member Data Documentation

Definition at line 73 of file file.hpp.

Definition at line 74 of file file.hpp.

Definition at line 104 of file file.hpp.

Referenced by libtorrent::storage::read(), and libtorrent::storage::write().

const std::auto_ptr<impl> libtorrent::file::m_impl [private]

Definition at line 122 of file file.hpp.

Referenced by close(), open(), read(), seek(), tell(), and write().


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

Generated on Sun May 25 00:21:41 2008 by  doxygen 1.5.6