home *** CD-ROM | disk | FTP | other *** search
/ ftptest.leeds.ac.uk / 2015.02.ftptest.leeds.ac.uk.tar / ftptest.leeds.ac.uk / bionet / CAE-GROUP / SCL-WIN3x / SCL.EXE / STEPSTRI.H < prev    next >
Text File  |  1994-08-06  |  1KB  |  59 lines

  1. #ifndef STEPSTRING_H
  2. #define    STEPSTRING_H  1
  3.  
  4. /*
  5. * NIST STEP Core Class Library
  6. * clstepcore/STEPstring.h
  7. * February, 1994
  8. * KC Morris
  9.  
  10. * Development of this software was funded by the United States Government,
  11. * and is not subject to copyright.
  12. */
  13.  
  14. /* $Id: STEPstring.h,v 2.0.1.1 1994/04/05 16:36:25 sauderd Exp $ */
  15.  
  16. #ifdef __O3DB__
  17. #include <OpenOODB.h>
  18. #endif
  19.  
  20. class ErrorDescriptor;
  21. #include <scl_string.h>
  22. #include <errordesc.h>
  23.  
  24. #ifndef STRING_DELIM
  25. #define STRING_DELIM '\''
  26. #endif
  27.  
  28. class SdaiString : public SCLstring {
  29. public:
  30.  
  31.   //constructor(s) & destructor    
  32.   SdaiString (const char * str = 0, int max =0) : SCLstring (str,max) { }
  33.   SdaiString (const SCLstring& s)   : SCLstring (s) { }
  34.   SdaiString (const SdaiString& s)  : SCLstring (s) { }
  35.   ~SdaiString ()  {  }
  36.  
  37. //  operators
  38.   SdaiString& operator= (const char* s);
  39.  
  40.   // format for STEP
  41.   const char * asStr (SCLstring & s) const  {  return s = chars ();  }
  42.   void STEPwrite (ostream& out =cout)  const;
  43.   void STEPwrite (SCLstring &s) const;
  44.  
  45.   Severity StrToVal (const char *s);
  46.   Severity STEPread (istream& in, ErrorDescriptor *err);
  47.   Severity STEPread (const char *s, ErrorDescriptor *err);
  48.  
  49.  protected:
  50. };
  51.  
  52. inline
  53. SdaiString& 
  54. SdaiString::operator= (const char* s)
  55.     { SCLstring::operator= (s);
  56.       return *this;  }
  57.  
  58. #endif
  59.