home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / lora299s.zip / COLLECT.H < prev    next >
C/C++ Source or Header  |  1998-05-12  |  2KB  |  60 lines

  1.  
  2. // LoraBBS Version 2.99 Free Edition
  3. // Copyright (C) 1987-98 Marco Maccaferri
  4. //
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of the GNU General Public License as published by
  7. // the Free Software Foundation; either version 2 of the License, or
  8. // (at your option) any later version.
  9. //
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software
  17. // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. #ifndef _TOOLS_H
  20. #define _TOOLS_H
  21.  
  22. typedef struct _lData {
  23.    struct _lData  *Previous;
  24.    struct _lData  *Next;
  25.    PVOID           Value;
  26.    CHAR            Data[1];
  27. } LDATA;
  28.  
  29. class DLL_EXPORT TCollection
  30. {
  31. public:
  32.    TCollection (void);
  33.    ~TCollection (void);
  34.  
  35.    USHORT Elements;
  36.  
  37.    USHORT Add (PVOID lpData);
  38.    USHORT Add (PSZ lpData);
  39.    USHORT Add (PVOID lpData, USHORT usSize);
  40.    VOID   Clear (VOID);
  41.    PVOID  First (VOID);
  42.    USHORT Insert (PVOID lpData);
  43.    USHORT Insert (PSZ lpData);
  44.    USHORT Insert (PVOID lpData, USHORT usSize);
  45.    PVOID  Last (VOID);
  46.    PVOID  Next (VOID);
  47.    PVOID  Previous (VOID);
  48.    VOID   Remove (VOID);
  49.    USHORT Replace (PVOID lpData);
  50.    USHORT Replace (PSZ lpData);
  51.    USHORT Replace (PVOID lpData, USHORT usSize);
  52.    PVOID  Value (VOID);
  53.  
  54. private:
  55.    LDATA *List;
  56. };
  57.  
  58. #endif
  59.  
  60.