## Class file_sink

hamigaki::iostreams::file_sink —

## Synopsis

    class file_sink {
    public:
      // types
      typedef char char_type;

      // construct/copy/destruct
      file_sink();
      explicit file_sink(const std::string&,
                         std::ios_base::openmode = std::ios_base::out);

      // Boost.Iostreams implementation
      void open(const std::string&, std::ios_base::openmode = std::ios_base::out);
      bool is_open() const;
      std::streamsize write(const char*, std::streamsize);
      std::streampos seek(boost::iostreams::stream_offset, std::ios_base::seekdir);
      void close();
    };

## Description

### `file_sink` construct/copy/destruct

1.     file_sink();

2.     explicit file_sink(const std::string& filename,
                          std::ios_base::openmode mode = std::ios_base::out);

### `file_sink` Boost.Iostreams implementation

1.     void open(const std::string& filename,
                 std::ios_base::openmode mode = std::ios_base::out);

2.     bool is_open() const;

3.     std::streamsize write(const char* s, std::streamsize n);

4.     std::streampos
       seek(boost::iostreams::stream_offset off, std::ios_base::seekdir way);

5.     void close();

| 製作著作 © 2006, 2007 Takeshi Mouri