home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / freedraft.tar.gz / freedraft.tar / FREEdraft-050298 / COMMAND / inputstring.h < prev    next >
C/C++ Source or Header  |  1998-04-29  |  2KB  |  47 lines

  1. // inputstring.h
  2.  
  3. // Copyright (C) 1997  Cliff Johnson                                       //
  4. //                                                                         //
  5. // This program is free software; you can redistribute it and/or           //
  6. // modify it under the terms of the GNU  General Public                    //
  7. // License as published by the Free Software Foundation; either            //
  8. // version 2 of the License, or (at your option) any later version.        //
  9. //                                                                         //
  10. // This software 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 GNU       //
  13. // General Public License for more details.                                //
  14. //                                                                         //
  15. // You should have received a copy of the GNU General Public License       //
  16. // along with this software (see COPYING); if not, write to the        //
  17. // Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. //
  18.  
  19.  
  20. #ifndef INPUTSTRING_H
  21. #define INPUTSTRING_H
  22.  
  23. //#include <bool.h>
  24.  
  25. class InputString
  26. {
  27. private:
  28.     char c_string[256];
  29.     int cnt;
  30. public:
  31.     InputString();
  32.     InputString(char* s);
  33.  
  34.     void Clear();
  35.     void AddChar(char c);
  36.     void DelChar();
  37.     void AppendString(const char* sx);
  38.     void AppendString(const int& ix);
  39.     const char* GetString() const;
  40.     bool IsClear() const;
  41.     int InputSize() const;
  42.     void ClearAndLoad(char* s);
  43.  
  44.  
  45. };
  46. #endif
  47.