home *** CD-ROM | disk | FTP | other *** search
/ NEXT Generation 27 / NEXT27.iso / pc / demos / emperor / dx3.exe / SDK / SAMPLES / IKLOWNS / INCLUDE / STRREC.H < prev   
C/C++ Source or Header  |  1996-08-28  |  867b  |  41 lines

  1. /*===========================================================================*\
  2. |
  3. |  File:        strrec.h
  4. |
  5. |  Description: 
  6. |       SDF string parsing class
  7. |       
  8. |-----------------------------------------------------------------------------
  9. |
  10. |  Copyright (C) 1995-1996 Microsoft Corporation.  All Rights Reserved.
  11. |
  12. |  Written by Moss Bay Engineering, Inc. under contract to Microsoft Corporation
  13. |
  14. \*===========================================================================*/
  15.  
  16. #ifndef STRREC_H
  17. #define STRREC_H
  18.  
  19. #define MAX_FIELDS 256
  20.  
  21. class CStringRecord
  22. {
  23. public:
  24.     CStringRecord(char* pString, char* pDelims);
  25.     virtual ~CStringRecord();
  26.  
  27.     char* operator[](int field);
  28.  
  29.     int GetNumFields()
  30.     {
  31.         return mNumFields;
  32.     }
  33.  
  34. private:
  35.     char** mpFields;
  36.     int mNumFields;
  37. };
  38.  
  39.  
  40. #endif // STRREC_H
  41.