-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPROGRAM_OUTPUT.txt
More file actions
241 lines (237 loc) · 7.98 KB
/
Copy pathPROGRAM_OUTPUT.txt
File metadata and controls
241 lines (237 loc) · 7.98 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
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
================================================================
================================================================
CREATIONAL PATTERNS
================================================================
================================================================
================================================================
Abstract Factory Pattern
================================================================
Drawing GUI
Drawing Windows button
Drawing Windows menu
================================================================
Builder Pattern
================================================================
Checking computer...
CPU: Core i3
RAM: 8 GB
GPU: integrated
Disk: HDD
Checking computer...
CPU: Core i7
RAM: 32 GB
GPU: GeForce 3080
Disk: SSD
================================================================
Factory Method Pattern
================================================================
TITLE: Summary
CONTENTS: Some very long description
<html><title>Summary</title>...</html>
%PDF-1.5...
Summary
================================================================
Object Pool Pattern
================================================================
================================================================
Prototype Pattern
================================================================
Reading BMP image from disk 'test.bmp'...
Reading JPG image from disk 'test.jpg'...
================================================================
Singleton Pattern
================================================================
Resource
================================================================
================================================================
STRUCTURAL PATTERNS
================================================================
================================================================
================================================================
Adapter Pattern
================================================================
Adapter::performAction()
ThirdPartyClass::doSomethingVeryImportant(): cookie
================================================================
Bridge Pattern
================================================================
Drawing Qt button
Drawing Qt checkbox
Drawing Gtk button
Drawing Gtk checkbox
Drawing Motif button
Drawing Motif checkbox
================================================================
Composite Pattern
================================================================
/root
main.cpp
/patterns
adapter.cpp
composite.cpp
/empty
================================================================
Decorator Pattern
================================================================
Window with border:
- Drawing window
- Drawing window border
Window with title bar:
- Drawing window
- Drawing window title bar
Window with border and title bar:
- Drawing window
- Drawing window border
- Drawing window title bar
================================================================
Facade Pattern
================================================================
SYSTEM INIT
File System init
Network System init
Window System init
SYSTEM SHUT
File System shut
Network System shut
Window System shut
================================================================
Flyweight Pattern
================================================================
Drawing char 'r' at (0,50) with red color
Drawing char 'e' at (10,50) with red color
Drawing char 'd' at (20,50) with red color
Drawing char ' ' at (30,50) with red color
Drawing char 't' at (40,50) with red color
Drawing char 'e' at (50,50) with red color
Drawing char 'x' at (60,50) with red color
Drawing char 't' at (70,50) with red color
Drawing char ' ' at (80,50) with red color
Drawing char 'b' at (0,70) with blue color
Drawing char 'l' at (10,70) with blue color
Drawing char 'u' at (20,70) with blue color
Drawing char 'e' at (30,70) with blue color
Drawing char ' ' at (40,70) with blue color
Drawing char 't' at (50,70) with blue color
Drawing char 'e' at (60,70) with blue color
Drawing char 'x' at (70,70) with blue color
Drawing char 't' at (80,70) with blue color
Drawing char ' ' at (90,70) with blue color
================================================================
Proxy Pattern
================================================================
Creating database...
Connecting to database 'Users'...
Executing query: DELETE FROM Users WHERE Id == 1
================================================================
================================================================
BEHAVIORAL PATTERNS
================================================================
================================================================
================================================================
Chain of Responsibility Pattern
================================================================
376 USD to withdraw
Taking 100 USD
Taking 100 USD
Taking 100 USD
Taking 50 USD
Taking 10 USD
Taking 10 USD
Taking 5 USD
Taking 1 USD
================================================================
Command Pattern
================================================================
Preparing Scrambled eggs...
Preparing Bread and butter...
Preparing Orange Juice drink...
================================================================
Interpreter Pattern
================================================================
'(1 + 5) * 4 / (A - 1)' where A is 3 = 12
================================================================
Iterator Pattern
================================================================
Element value: 1
Element value: 2
Element value: 3
Element value: 4
Vector elements sum = 10
================================================================
Mediator Pattern
================================================================
[node-C] Sending packet: User logged
Broadcasting packet from [node-C]: User logged
[node-A] Received packet from [node-C]: User logged
[node-B] Received packet from [node-C]: User logged
[node-D] Received packet from [node-C]: User logged
================================================================
Memento Pattern
================================================================
Loading from disk 'test.jpg'...
Resizing to [2048x2048]...
Creating memento...
Converting to greyscale...
Inverting...
Restoring from memento...
================================================================
Null Object Pattern
================================================================
Loading sound from disk 'test_sound.wav'...
Playing sound...
NullSoundSystem::playSound()
================================================================
Observer Pattern
================================================================
Drawing table
data #2
End of table
Drawing chart
data #2
End of chart
Drawing table
data #3
End of table
Drawing chart
data #3
End of chart
================================================================
State Pattern
================================================================
Light switch is in OFF state
Light switch is already in OFF state
Light switch is in OFF state
Switching to ON state...
Light switch is in ON state
Light switch is already in ON state
Light switch is in ON state
Switching to OFF state...
Light switch is in OFF state
================================================================
Strategy Pattern
================================================================
Travelling by foot...
Travelling by car...
Travelling by bike...
================================================================
Template Method Pattern
================================================================
Creating document...
Initialising document...
Opening document...
Showing open file dialog...
Preparing to opening document...
View updated
================================================================
Visitor Pattern
================================================================
Writing code...
Writing code...
Writing code...
Writing code...
Testing application...
Testing application...
Creating icons...
Programmers: 4
Testers: 2
Designers: 1