Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

str.h

Go to the documentation of this file.
00001 
00002 #ifndef _QT_STR_H_
00003 #define _QT_STR_H_
00004 
00005 
00006 /*===============================<o>=====================================
00007 
00008 Copyright 1996, 1997, 2004 Ian Kaplan, Bear Products International,
00009 www.bearcave.com.
00010 
00011 All Rights Reserved
00012 
00013 You may use this software in software components for which you do
00014 not collect money (e.g., non-commercial software).  All commercial
00015 use is reserved.
00016 
00017 ===============================<o>=====================================*/
00018 
00019 #include <stdio.h> //     -- for FILE and fprintf
00020 #include "stdtypes.h"
00021 
00022 
00039 class STRING {
00040 private:
00041     char *text;
00042 
00043 public:
00044     STRING(void)               { text = NULL; }
00045     STRING( const STRING &str ) // copy constructor
00046     {
00047         (*this) = str;
00048     } // copy constructor
00049     ~STRING() { /* do nothing */ }
00050 
00051     const char *GetText(void)  { return text; }
00052 
00053     void SetText( const char *t )    { text = (char *)t; }
00054 
00055     void pr( FILE *fp = stdout )
00056     {
00057         fprintf(fp, "%s", GetText() );
00058     }
00059 }; // STRING
00060 
00061 
00062 extern STRING NULLSTR;
00063 
00064 #endif

Generated on Wed Mar 31 21:15:55 2004 for Data Structures for a VHDL Compiler by doxygen 1.3.3