summaryrefslogtreecommitdiffstats
path: root/file_index.h
diff options
context:
space:
mode:
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(); }
};