-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathenumTypeDescriptor.h
More file actions
53 lines (38 loc) · 1.3 KB
/
enumTypeDescriptor.h
File metadata and controls
53 lines (38 loc) · 1.3 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef ENUMTYPEDESCRIPTOR_H
#define ENUMTYPEDESCRIPTOR_H
#include "typeDescriptor.h"
typedef SDAI_Enum * ( * EnumCreator )();
class SC_CORE_EXPORT EnumTypeDescriptor : public TypeDescriptor {
public:
EnumCreator CreateNewEnum;
const char * GenerateExpress( std::string & buf ) const;
void AssignEnumCreator( EnumCreator f = 0 ) {
CreateNewEnum = f;
}
SDAI_Enum * CreateEnum();
EnumTypeDescriptor( ) { }
EnumTypeDescriptor( const char * nm, PrimitiveType ft,
Schema * origSchema, const char * d,
EnumCreator f = 0 );
virtual ~EnumTypeDescriptor() { }
};
/** \class EnumerationTypeDescriptor
* FIXME not implemented
*
* this was in ExpDict.h before splitting it up
* why have EnumTypeDescriptor + EnumerationTypeDescriptor ???
*/
#ifdef NOT_YET
class SC_CORE_EXPORT EnumerationTypeDescriptor : public TypeDescriptor {
protected:
StringAggregate * _elements; // of (null)
public:
EnumerationTypeDescriptor( );
virtual ~EnumerationTypeDescriptor() { }
StringAggregate & Elements() {
return *_elements;
}
// void Elements (StringAggregate e);
};
#endif
#endif //ENUMTYPEDESCRIPTOR_H