blob: e678b42304da29cf49722bf82311d16785969e1c (
plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
/**
* Copyright (c) 2019 DENSO CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Expression visitor class header file
*/
#ifndef RBAEXPRESSIONVISITOR_HPP
#define RBAEXPRESSIONVISITOR_HPP
namespace rba {
class RBAIsDisplayed;
class RBADisplayingContent;
class RBAAllocatedContent;
class RBAIsHidden;
class RBAContentValue;
class RBAGetContentsList;
class RBAIsActive;
class RBAIsVisible;
class RBAStateValue;
class RBAHasBeenDisplayed;
class RBAHasComeEarlierThan;
class RBAHasComeLaterThan;
class RBAGetAllocatables;
class RBAIsOutputted;
class RBAOutputtingSound;
class RBAIsMuted;
class RBAIsAttenuated;
class RBAIsSounding;
class RBAIsOn;
class RBAGetProperty;
class RBAAndOperator;
class RBAOrOperator;
class RBANotOperator;
class RBAImpliesOperator;
class RBAIsEqualToOperator;
class RBAObjectCompare;
class RBAIsGreaterThanOperator;
class RBAIsGreaterThanEqualOperator;
class RBAIsLowerThanOperator;
class RBAIsLowerThanEqualOperator;
class RBAForAllOperator;
class RBAExistsOperator;
class RBAAllInstanceOfArea;
class RBAAllInstanceOfViewContent;
class RBAAllInstanceOfZone;
class RBAAllInstanceOfSoundContent;
class RBAIfStatement;
class RBALetStatement;
class RBAPreviousModifier;
class RBAActiveState;
class RBAActiveContents;
class RBAMaxOperator;
class RBAMinOperator;
class RBASelectOperator;
class RBASizeOperator;
class RBAObjectReference;
class RBASetOfOperator;
class RBAIsTypeOfOperator;
class RBAExpressionVisitor {
public:
RBAExpressionVisitor()=default;
RBAExpressionVisitor(const RBAExpressionVisitor&)=delete;
RBAExpressionVisitor(const RBAExpressionVisitor&&)=delete;
RBAExpressionVisitor& operator=(const RBAExpressionVisitor&)=delete;
RBAExpressionVisitor& operator=(const RBAExpressionVisitor&&)=delete;
virtual ~RBAExpressionVisitor() = default;
// Refer to Area status
virtual void visit(RBAIsDisplayed& exp) = 0;
virtual void visit(RBADisplayingContent& exp) = 0;
virtual void visit(RBAAllocatedContent& exp) = 0;
virtual void visit(RBAIsHidden& exp) = 0;
virtual void visit(RBAContentValue& exp) = 0;
virtual void visit(RBAGetContentsList& exp) = 0;
virtual void visit(RBAActiveContents& exp) = 0;
// Refer to display content status
virtual void visit(RBAIsActive& exp) = 0;
virtual void visit(RBAIsVisible& exp) = 0;
virtual void visit(RBAStateValue& exp) = 0;
virtual void visit(RBAHasBeenDisplayed& exp) = 0;
virtual void visit(RBAHasComeEarlierThan& exp) = 0;
virtual void visit(RBAHasComeLaterThan& exp) = 0;
virtual void visit(RBAGetAllocatables& exp) = 0;
virtual void visit(RBAActiveState& exp) = 0;
// Refer to Zone status
virtual void visit(RBAIsOutputted& exp) = 0;
virtual void visit(RBAOutputtingSound& exp) = 0;
// allocatedContent is common with Area
virtual void visit(RBAIsMuted& exp) = 0;
virtual void visit(RBAIsAttenuated& exp) = 0;
// contentValue is common with Area
// contentsList is common with Area
// Refer to sound content status
// isActive is common with display content
virtual void visit(RBAIsSounding& exp) = 0;
// stateValue is common with display content
// hasComeEarlierThan is common with display content
// hasComeLaterThan is common with display content
// allocatables is common with display content
// activeState is common with display content
// Refer to Scene
virtual void visit(RBAIsOn& exp) = 0;
virtual void visit(RBAGetProperty& exp) = 0;
virtual void visit(RBAIsTypeOfOperator& exp) = 0;
// Operators
virtual void visit(RBAAndOperator& exp) = 0;
virtual void visit(RBAOrOperator& exp) = 0;
virtual void visit(RBANotOperator& exp) = 0;
virtual void visit(RBAImpliesOperator& exp) = 0;
virtual void visit(RBAIsEqualToOperator& exp) = 0;
virtual void visit(RBAObjectCompare& exp) = 0;
virtual void visit(RBAIsGreaterThanOperator& exp) = 0;
virtual void visit(RBAIsGreaterThanEqualOperator& exp) = 0;
virtual void visit(RBAIsLowerThanOperator& exp) = 0;
virtual void visit(RBAIsLowerThanEqualOperator& exp) = 0;
// Quantification symbol
virtual void visit(RBAForAllOperator& exp) = 0;
virtual void visit(RBAExistsOperator& exp) = 0;
// Built-in definition expression
virtual void visit(RBAAllInstanceOfArea& exp) = 0;
virtual void visit(RBAAllInstanceOfViewContent& exp) = 0;
virtual void visit(RBAAllInstanceOfZone& exp) = 0;
virtual void visit(RBAAllInstanceOfSoundContent& exp) = 0;
// Syntax
virtual void visit(RBAIfStatement& exp) = 0;
virtual void visit(RBALetStatement& exp) = 0;
// Modifier
virtual void visit(RBAPreviousModifier& exp) = 0;
// Set operator
virtual void visit(RBAMaxOperator& exp) = 0;
virtual void visit(RBAMinOperator& exp) = 0;
virtual void visit(RBASelectOperator& exp) = 0;
virtual void visit(RBASizeOperator& exp) = 0;
// Object references
virtual void visit(RBAObjectReference& exp) = 0;
virtual void visit(RBASetOfOperator& exp) = 0;
};
}
#endif
|