1 #ifndef STEPUNDEFINED_H 2 #define STEPUNDEFINED_H 3 4 /* 5 * NIST STEP Core Class Library 6 * clstepcore/STEPundefined.h 7 * April 1997 8 * KC Morris 9 * David Sauder 10 11 * Development of this software was funded by the United States Government, 12 * and is not subject to copyright. 13 */ 14 15 #include <sc_export.h> 16 #include <errordesc.h> 17 #include <string> 18 #include <read_func.h> 19 20 class SC_CORE_EXPORT SCLundefined { 21 protected: 22 std::string val; 23 24 public: 25 // INPUT 26 virtual Severity StrToVal( const char * s, ErrorDescriptor * err ); 27 virtual Severity StrToVal( istream & in, ErrorDescriptor * err ); 28 29 virtual Severity STEPread( const char * s, ErrorDescriptor * err ); 30 virtual Severity STEPread( istream & in, ErrorDescriptor * err ); 31 32 // OUTPUT 33 virtual const char * asStr( std::string & s ) const; 34 virtual const char * STEPwrite( std::string & s ); 35 virtual void STEPwrite( ostream & out = cout ); 36 37 int set_null(); 38 int is_null(); 39 SCLundefined & operator= ( const SCLundefined & ); 40 SCLundefined & operator= ( const char * str ); 41 SCLundefined(); 42 virtual ~SCLundefined(); 43 }; 44 45 #endif 46