-
- FileFd(string FileName,OpenMode Mode,unsigned long Perms = 0666);
- FileFd(int Fd) : iFd(Fd), Flags(AutoClose) {};
- FileFd(int Fd,bool) : iFd(Fd), Flags(0) {};
+ inline bool Eof() {return (Flags & HitEof) == HitEof;};
+ inline string &Name() {return FileName;};
+
+ FileFd(string FileName,OpenMode Mode,unsigned long Perms = 0666) : iFd(-1),
+ Flags(0), gz(NULL)
+ {
+ Open(FileName,Mode,Perms);
+ };
+ FileFd(int Fd = -1) : iFd(Fd), Flags(AutoClose), gz(NULL) {};
+ FileFd(int Fd,bool) : iFd(Fd), Flags(0), gz(NULL) {};