Class template basic_zip_file_source
hamigaki::archivers::basic_zip_file_source —
ZIPファイルへの読み込み専用アクセスを提供するSourceモデル
Synopsis
Description
SeekableSourceを受け取り、ZIPファイルとしてフォーマットを解釈した結果を読み出すことができる。
モデルとなるコンセプト:Source
basic_zip_file_source
construct/copy/destruct
-
explicit basic_zip_file_source(const SeekableSource& src);
basic_zip_file_source
Boost.Iostreams implementation
-
std::streamsize read(const char* s, std::streamsize n);
Effects: |
header().method に従い、現在のエントリの圧縮イメージを展開して読み出す。 |
Throws: |
現在のエントリが暗号化されていて、パスワードが正しくない場合、password_incorrect |
basic_zip_file_source
Hamigaki.Archivers implementation
-
bool next_entry();
Effects: |
読み出しの対象を次のエントリに移動する |
Returns: |
次のエントリがあればtrue 、なければfalse |
-
void select_entry(const boost::filesystem::path& ph);
Effects: |
読み出しの対象をパスph のエントリに移動する |
-
zip::header header() const;
basic_zip_file_source
modifiers
-
void password(const std::string& pswd);
Effects: |
暗号化されたZIPファイルの復号に用いるパスワードをpswd に設定する |