-
Notifications
You must be signed in to change notification settings - Fork 0
/
DSAssert.h
47 lines (38 loc) · 1.52 KB
/
DSAssert.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
#ifndef _DSASSERT_H_
#define _DSASSERT_H_
#include "DSBasicTypes.h"
#include "DSAction.h"
/*****************************************************************************
* Klasse DSAssert
* Zweck: Datenstruktur zur Speicherung der Parameter fuer eine QSDL-ASSERT-
* Instruktion (Testen von benutzerdefinierten Anforderungen).
* Z100: -
*****************************************************************************/
class DSAssert : public DSAction
{
public:
DSAssert(DSObject *,
DSString * = NULL, // Label
DSExpression * = NULL); // Anforderung
DSAssert(DSObject *,
DSString&,
DSExpression * = NULL);
DSAssert(DSObject *,
const char *,
DSExpression * = NULL);
~DSAssert(void);
DSExpression *GetExpression(void) const;
DSResult SetExpression(DSExpression *);
DSObject *Clone(DSObject * = NULL,
DSObject * = NULL) const; // erzeugt eine identische
// Kopie dieses Objekts
/***********************************************************/
/* Die folgenden zwei Funktionen dienen zum systematischen */
/* Durchlaufen und Verarbeiten der Datenstruktur: */
/***********************************************************/
virtual DSResult Write(DSWriter *, DSCardinal = 0) const;
virtual DSResult Run(DSWriter*, DSType, DSCardinal = 0) const;
private:
DSExpression *expression;
};
#endif // ifndef