## Class file_source

hamigaki::iostreams::file_source —

## Synopsis

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

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

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

## Description

### `file_source` construct/copy/destruct

1.     file_source();

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

### `file_source` Boost.Iostreams implementation

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

2.     bool is_open() const;

3.     std::streamsize read(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