forked from stepcode/stepcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathderivedAttribute.h
More file actions
32 lines (26 loc) · 954 Bytes
/
derivedAttribute.h
File metadata and controls
32 lines (26 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#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