home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / Sessions / Traut / ZStrings / Source / Linux / LinuxZString.h < prev   
Encoding:
C/C++ Source or Header  |  2001-06-23  |  1.6 KB  |  67 lines

  1. /*==================================================================
  2.     File:        LinuxZString.h
  3.     
  4.     Contains:    Linux-specific parsing for ZStrings.
  5.                 Okay, not really linux specific, but maybe X specific
  6.  
  7.     Written by: Jeremy Alves    
  8.     
  9.     Copyright:    2000-2001 Connectix Corporation
  10.     
  11.     This source has been placed into the public domain by
  12.     Connectix Corporation. You have the right to modify, 
  13.     distribute or use this code without any legal limitations
  14.     or finanicial/licensing requirements. Connectix is not 
  15.     liable for any problems that result from the use of this 
  16.     code.
  17.     
  18.     If you have comments, feedback, questions, or would like
  19.     to submit bug fixes or updates to this code, please email
  20.     opensource@connectix.com.
  21. ==================================================================*/
  22.  
  23. #ifndef LINUXZSTRING_H
  24. #define LINUXZSTRING_H
  25.  
  26. #include "ZString.h"
  27. #include "ZStringParser.h"
  28.  
  29.  
  30. /*==================================================================
  31.     LinuxZString
  32. ==================================================================*/
  33.  
  34. struct LinuxZString : public ZString
  35. {
  36.     public:
  37.         // Initialization & Teardown
  38.         static void
  39.         Initialize();
  40.         
  41.         static void
  42.         TearDown();
  43.  
  44.         static const char *
  45.         GetNamedCString(
  46.             const char *        inNamedString);        
  47. };
  48.  
  49.  
  50. /*==================================================================
  51.     LinuxZStringParser
  52. ==================================================================*/
  53.  
  54. class LinuxZStringParser : public ZStringParser
  55. {
  56.     public:
  57.     
  58.         virtual Z_UInt16
  59.         GetTagReplacement(
  60.             ZStringTagID                inTagID,
  61.             char *                        outReplacement);
  62. };
  63.  
  64. #endif // LINUXZSTRING_H
  65.  
  66.  
  67.