home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ocl150a.zip / OCL / Samples / GTakPM / Source / Tape.hpp < prev   
C/C++ Source or Header  |  1996-08-12  |  1KB  |  59 lines

  1. // GTakPM
  2. // (c) Benjamin Stein 1994
  3. // All Rights Reserved
  4. // GTPMApp.hpp
  5.  
  6. //  $Header: W:/Projects/OCL/Samples/GTakPM/Source/rcs/Tape.hpp 1.50 1996/08/11 23:48:13 B.STEIN Release $
  7.  
  8. #ifndef TAPE_HPP_INCLUDED
  9.   #define TAPE_HPP_INCLUDED
  10.  
  11.  
  12. #ifndef GTAKPM_HPP_INCLUDED
  13.   #include "..\Source\GTakPM.hpp"
  14. #endif
  15.  
  16.  
  17. typedef class Tape            *pTape;
  18.  
  19.  
  20. class Tape 
  21. {
  22.  protected:
  23.    pOPMPipeTool tool;
  24.  
  25.    ULONG        bsize;
  26.    OString      device;
  27.  
  28.  public:
  29.      Tape      (pOPMPipeTool currentTool, 
  30.                 PSZ TapeDescription,  
  31.                 ULONG tape_blocksize);
  32.  
  33.    virtual
  34.      ~Tape();
  35.  
  36.    virtual  
  37.       PSZ isOfType () const 
  38.       { return("Tape"); }
  39.  
  40.    void
  41.       prepare   (),
  42.       blocksize (ULONG size = 0),
  43.       status    (),
  44.       load      (),
  45.       unload    (),
  46.       rewind    (),
  47.       part      (OString& command), 
  48.       format    (),
  49.       erase     (),
  50.       eraseq    (),
  51.       lock      (),
  52.       unlock    (),
  53.       batch     (PSZ batchfile);
  54. };
  55.  
  56. #endif // TAPE_HPP_INCLUDED
  57.  
  58. // end of source
  59.