31 bool accurate_length, BOOST_IOS::openmode mode)
33 open(client, filename, accurate_length, mode);
37 bool accurate_length, BOOST_IOS::openmode mode)
39 pimpl_.reset(
new impl(client, filename, accurate_length, mode));
44 return pimpl_->m_open;
49 return pimpl_->read(dst, amount);
54 return pimpl_->bytes_read();
59 return pimpl_->length();
64 return pimpl_->write(dst, amount);
69 return pimpl_->bytes_written();
FileDevice(ClientPtr &client, const String &filename, bool accurate_length=true, BOOST_IOS::openmode mode=BOOST_IOS::in)
std::string String
A String is simply a typedef to std::string.
virtual size_t bytes_read()
virtual size_t bytes_written()
std::shared_ptr< Client > ClientPtr
Smart pointer to Client.
virtual streamsize read(char_type *dst, size_t amount)
A memory buffer of static size.
virtual size_t write(const char_type *src, size_t amount)
virtual void open(ClientPtr &client, const String &filename, bool accurate_length=true, BOOST_IOS::openmode mode=BOOST_IOS::in)
virtual bool is_open() const
File system broker framework and client library.
Error codes, Exception handling, error logging.