home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Mac OS / AIAT / Headers / Analysis / StringTerm.h < prev   
Encoding:
Text File  |  1998-04-16  |  739 b   |  39 lines  |  [TEXT/CWIE]

  1. // StringTerm.h
  2. //    Copyright:    © 1994 - 1998 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #pragma once
  5. #ifndef StringTerm_h
  6. #define StringTerm_h
  7.  
  8. #pragma import on
  9.  
  10. #if PRAGMA_STRUCT_ALIGN
  11.     #pragma options align=power
  12. #endif
  13.  
  14. #include "IAAnalysis.h"
  15.  
  16. #pragma IA_BEGIN_EXPORTS
  17.  
  18. class StringTerm : public IATerm {
  19. public:
  20.                 StringTerm(const char* text);
  21.                 StringTerm(const char* t, uint32 l) : IATerm((byte*)t, l) {}
  22.  
  23.     IAStorable*    DeepCopy() const;
  24.     
  25.     char*        Text() { return (char*)GetData(); }
  26.     uint32        TextLen() { return GetDataLength(); }
  27. private:
  28.                 StringTerm(StringTerm& st);        // don't define a copy constructor
  29.  
  30. };
  31.  
  32. #pragma IA_END_EXPORTS
  33.  
  34. #if PRAGMA_STRUCT_ALIGN
  35.     #pragma options align=reset
  36. #endif
  37.  
  38. #pragma import reset
  39. #endif