diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:37:29 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:37:29 +0000 |
commit | 1f9c10664fb33107c4d175e1c5553b23a1f34550 (patch) | |
tree | 31e3e20c66e2e5fe93ff4522e05bad9882b49afa /file_index.h | |
parent | Adding upstream version 1.2~pre1. (diff) | |
download | plzip-1f9c10664fb33107c4d175e1c5553b23a1f34550.tar.xz plzip-1f9c10664fb33107c4d175e1c5553b23a1f34550.zip |
Adding upstream version 1.2~rc1.upstream/1.2_rc1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'file_index.h')
-rw-r--r-- | file_index.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/file_index.h b/file_index.h index bba86b8..d1c8592 100644 --- a/file_index.h +++ b/file_index.h @@ -55,9 +55,14 @@ class File_index std::string error_; int retval_; + void set_errno_error( const char * const msg ); + void set_num_error( const char * const msg1, unsigned long long num, + const char * const msg2 = "." ); + public: - File_index( const int infd ); + explicit File_index( const int infd ); + long members() const { return member_vector.size(); } const std::string & error() const { return error_; } int retval() const { return retval_; } @@ -69,9 +74,8 @@ public: { if( member_vector.size() ) return member_vector.back().mblock.end(); else return 0; } - const Block & dblock( const int i ) const + const Block & dblock( const long i ) const { return member_vector[i].dblock; } - const Block & mblock( const int i ) const + const Block & mblock( const long i ) const { return member_vector[i].mblock; } - int members() const { return (int)member_vector.size(); } }; |