We want to be consistent with the previous layout, to avoid needlessly breaking existing codes. The header update means client codes are not required to include all of the stepcode library includes explicitly - i.e., stepcode itself does not force this requirement with its own internal includes. However, if client codes do not want to add the library prefixes to their own includes as we have for stepcode, they should still be able to add the various includes and work as before. Adjust the include directory names accordingly.
53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
#ifndef STEPUNDEFINED_H
|
|
#define STEPUNDEFINED_H
|
|
|
|
/*
|
|
* NIST STEP Core Class Library
|
|
* clstepcore/STEPundefined.h
|
|
* April 1997
|
|
* KC Morris
|
|
* David Sauder
|
|
|
|
* Development of this software was funded by the United States Government,
|
|
* and is not subject to copyright.
|
|
*/
|
|
|
|
#include <sc_export.h>
|
|
#include "clutils/errordesc.h"
|
|
#include <string>
|
|
#include "clstepcore/read_func.h"
|
|
|
|
class SC_CORE_EXPORT SCLundefined {
|
|
protected:
|
|
#ifdef _MSC_VER
|
|
#pragma warning( push )
|
|
#pragma warning( disable: 4251 )
|
|
#endif
|
|
std::string val;
|
|
#ifdef _MSC_VER
|
|
#pragma warning( pop )
|
|
#endif
|
|
|
|
public:
|
|
// INPUT
|
|
virtual Severity StrToVal( const char * s, ErrorDescriptor * err );
|
|
virtual Severity StrToVal( istream & in, ErrorDescriptor * err );
|
|
|
|
virtual Severity STEPread( const char * s, ErrorDescriptor * err );
|
|
virtual Severity STEPread( istream & in, ErrorDescriptor * err );
|
|
|
|
// OUTPUT
|
|
virtual const char * asStr( std::string & s ) const;
|
|
virtual const char * STEPwrite( std::string & s );
|
|
virtual void STEPwrite( ostream & out = cout );
|
|
|
|
int set_null();
|
|
bool is_null();
|
|
SCLundefined & operator= ( const SCLundefined & );
|
|
SCLundefined & operator= ( const char * str );
|
|
SCLundefined();
|
|
virtual ~SCLundefined();
|
|
};
|
|
|
|
#endif
|