-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDSExpression.h
58 lines (48 loc) · 2.03 KB
/
DSExpression.h
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
54
55
56
57
58
#ifndef _DSEXPRESSION_H_
#define _DSEXPRESSION_H_
#include "DSBasicTypes.h"
#include "DSRef.h"
#include "DSObject.h"
#include "DSOperand.h"
/************************************************************************
* Classname: DSExpression
* Purpose: Speichert eine SDL-Expression
* Z100: Seite 150
************************************************************************/
class DSExpression : public DSObject
{
public:
DSExpression(DSObject* = NULL, // Vaterobjekt
class DSOperand* = NULL,
DSExpressionOperator = DS_OPT_NONE,
class DSOperand* = NULL,
DSSortRef = NULL);
DSExpression(DSExpression&); // copy constructor
virtual ~DSExpression(void);
DSObject *New(DSObject * = NULL) const;
class DSOperand *GetOperand1(void) const;
class DSOperand *GetOperand2(void) const;
DSExpressionOperator GetOperator(void) const;
DSSortRef GetSortRef(void) const;
DSBoolean IsConstant(void) const;
DSBoolean IsZero(void) const;
DSResult SetOperand1(class DSOperand*);
DSResult SetOperand2(class DSOperand*);
DSResult SetOperator(DSExpressionOperator);
DSResult SetSortRef(DSSortRef);
DSObject *Clone(DSObject * = NULL,
DSObject * = NULL) const;
// erzeugt eine identische
// Kopie dieses Objekts
/**************************************************/
/* Die folgende Funktion dient zum systematischen */
/* Durchlaufen und Verarbeiten der Datenstruktur: */
/**************************************************/
virtual DSResult Write(DSWriter *, DSCardinal = 0) const;
private:
class DSOperand *operand1;
DSExpressionOperator op; // in DSBasicTypes.h
class DSOperand *operand2;
DSSortRef sort_ref;
};
#endif