summaryrefslogtreecommitdiffstats
path: root/file_index.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 15:37:35 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 15:37:35 +0000
commit06821cd88178d7d9a1fbcb4027a2bf939dd42cd1 (patch)
treed545383354b3edeb26edcba1fd6e52d0e9b68e0d /file_index.h
parentAdding debian version 1.2~pre1-2. (diff)
downloadplzip-06821cd88178d7d9a1fbcb4027a2bf939dd42cd1.tar.xz
plzip-06821cd88178d7d9a1fbcb4027a2bf939dd42cd1.zip
Merging upstream version 1.2~rc1.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'file_index.h')
-rw-r--r--file_index.h12
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(); }
};