home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Nuntius 1.2 / src / Nuntius / UOffsetLengthList.h < prev    next >
Encoding:
Text File  |  1994-02-20  |  682 b   |  31 lines  |  [TEXT/MPS ]

  1. // Copyright © 1992 Peter Speck, speck@dat.ruc.dk. All rights reserved.
  2. // UOffsetLengthList
  3.  
  4. #define __UOFFSETLENGTHLIST__
  5.  
  6. #ifndef __XTYPES__
  7. #include "XTypes.h"
  8. #endif
  9.  
  10. class TOffsetLengthList : public TDynamicArray 
  11. {
  12.     public:        
  13.         void InsertLast(const OffsetLength &ol);
  14.  
  15.         OffsetLength At(long index);
  16.         long OffsetAt(long index);
  17.         long LengthAt(long index);
  18.         void AtPut(long index, const OffsetLength &ol);
  19.         void AtGet(long index, OffsetLength &ol);
  20.         
  21.         void DoRead(TStream *aStream);
  22.         void DoWrite(TStream *aStream);
  23.         void DoNeedDiskSpace(long &dataForkBytes);
  24.  
  25.         TOffsetLengthList();
  26.         pascal void Initialize();
  27.         void IOffsetLengthList();
  28.         pascal void Free();
  29. };
  30.     
  31.