home *** CD-ROM | disk | FTP | other *** search
- /*
- File: VirtualHFSFile.h
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- #ifndef __VIRTUALHFSFILE__
- #define __VIRTUALHFSFILE__
-
- #ifndef __VIRTUALFILE__
- #include "VirtualFile.h"
- #endif
-
- /***********************************|****************************************/
-
- class TVirtualHFSFile : public TVirtualFile
- {
- public: TVirtualHFSFile ( const FSSpec& location);
- TVirtualHFSFile ( short vRefNum, long dirID, const StringPtr name );
- virtual ~TVirtualHFSFile ();
-
- virtual OSErr DeleteFile ();
-
- virtual OSErr ReadData (void* buffer, long& count);
- virtual OSErr WriteData (const void* buffer, long& count);
-
- virtual OSErr SetEnd (long logEof);
- virtual OSErr GetEnd (long& logEof) const;
-
- virtual OSErr SetPosition (short posMode, long posOff);
- virtual OSErr GetPosition (long& filePos) const;
-
- virtual ostream& operator >> ( ostream& ) const;
-
- private: TVirtualHFSFile ( const TVirtualHFSFile& );
- TVirtualHFSFile& operator = ( const TVirtualHFSFile& );
-
- virtual void Open ();
- virtual void Close ();
-
- FSSpec fSpec;
- short fRefNum;
- };
-
- /***********************************|****************************************/
-
- #endif // __VIRTUALHFSFILE__
-
-