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.
33 lines
954 B
C++
33 lines
954 B
C++
#ifndef DERIVEDATTRIBUTE_H
|
|
#define DERIVEDATTRIBUTE_H
|
|
|
|
#include "clstepcore/attrDescriptor.h"
|
|
|
|
#include "sc_export.h"
|
|
|
|
class SC_CORE_EXPORT Derived_attribute : public AttrDescriptor {
|
|
public:
|
|
const char * _initializer;
|
|
|
|
Derived_attribute(
|
|
const char * name, // i.e. char *
|
|
const TypeDescriptor * domainType,
|
|
Logical optional, // i.e. F U or T
|
|
Logical unique, // i.e. F U or T
|
|
AttrType_Enum at,// AttrType_Explicit, AttrType_Inverse,
|
|
// AttrType_Deriving,AttrType_Redefining
|
|
const EntityDescriptor & owner
|
|
);
|
|
virtual ~Derived_attribute();
|
|
const char * AttrExprDefStr( std::string & s ) const;
|
|
|
|
const char * initializer_() {
|
|
return _initializer;
|
|
}
|
|
void initializer_( const char * i ) {
|
|
_initializer = i;
|
|
}
|
|
};
|
|
|
|
#endif //DERIVEDATTRIBUTE_H
|