Skip to content

Commit fba2a3b

Browse files
committed
Add PlantUML diagram for Command in the ReadMe
1 parent d613295 commit fba2a3b

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,35 @@ doxygen_add_docs(docs_target
195195
* [Doxygen C++ documentation for complete beginners](https://darkognu.eu/programming/tutorials/doxygen_tutorial_cpp/)
196196

197197
## Command Pattern References
198+
199+
```plantuml
200+
component Client
201+
component Invoker
202+
203+
interface Receiver
204+
component ContainerReceiver
205+
component SingleReceiver
206+
207+
interface Command
208+
component CreateCommand
209+
component ReadCommand
210+
component UpdateCommand
211+
component DeleteCommand
212+
213+
Command <|.up. CreateCommand
214+
Command <|.up. ReadCommand
215+
Command <|.up. UpdateCommand
216+
Command <|.up. DeleteCommand
217+
218+
Receiver <|.down. ContainerReceiver
219+
Receiver <|.down. SingleReceiver
220+
221+
Client <- Receiver : Get Response
222+
Command -down-> Receiver : Operation params
223+
Client -up-> Invoker : Set Command
224+
Invoker -> Command : Initiate request
225+
```
226+
198227
* [refactoring.guru:Command](https://refactoring.guru/design-patterns/command/)
199228
* [Command Design Pattern](https://sourcemaking.com/design_patterns/command)
200229
* [What Is CRUD (Create, Read, Update, and Delete)?](https://celerdata.com/glossary/create-read-update-and-delete-crud)

0 commit comments

Comments
 (0)