Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit8656048f5a03fc7808608aa4b5ee65590141f4d0 (patch)
Author
 Kamen Mladenov <kamen.d.mladenov@protonmail.com>
2022-04-25 16:44:04 +0300
Committer
 GitHub <noreply@github.com>
2022-04-25 16:44:04 +0300
Files625d95c0490c7eba54f26a2dab27cf4deee3320e
FMI-OOP-P1_TicketSystem-8656048f5a03fc7808608aa4b5ee65590141f4d0.tar
FMI-OOP-P1_TicketSystem-8656048f5a03fc7808608aa4b5ee65590141f4d0.tar.gz
FMI-OOP-P1_TicketSystem-8656048f5a03fc7808608aa4b5ee65590141f4d0.zip
Parent533230d82b6746e9bcb8dc2415117c03921125f5 (diff)
Updated initial structure
1 files changed, 108 insertions, 47 deletions
-rw-r--r--README.md155
diff --git a/README.md b/README.md
index b3ee558..af78b83 100644
--- a/README.md
+++ b/README.md
@@ -3,65 +3,126 @@ TicketSystem: Project 1 from module OOP in FMI Uni-Sofia
## Initial structure
-![nomnoml](https://user-images.githubusercontent.com/46843671/164534217-0c6004df-7141-48d3-9ffe-7c80ff3c3db3.png)
+![FMI-OOP-P1_TicketSystem Class Diagram](https://user-images.githubusercontent.com/46843671/165101458-e5799051-6459-49c4-b2c2-24f785ada0d1.png)
<details>
<summary>Diagram source</summary>
```
-[Hall|
- int number
- unsigned rowCount
- unsigned seatsPerRow
-]
+#title: FMI-OOP-P1_TicketSystem Class Diagram
+#background: #fdf6e3
+#bendSize: 0
+#fillArrows: true
+#lineWidth: 2
-[Ticket|
- unsigned row
- unsigned seat
-]
+#.groupsfe: title=italic fill=#b2ee97
+#.groupv: title=italic fill=#97c8ee
+#.groupsc: title=italic
-[Reservation|
- char\[6\] password
- unsigned row
- unsigned seat
- String note
-]
+[<groupsfe> System for events
+ [Ticket|
+ unsigned row
+ unsigned seat
+ ]
-[Event|
- Ticket* _tickets
- Reservation* _reservations|
- Date date
- String name
- Hall hall|
- reserveTicket()
- cancelReservation()
- buyTicket()
-]
-[Hall]<--[Event]
-[Ticket]<--[Event]
-[Reservation]<--[Event]
+ [Reservation|
+ char\[6\] password
+ unsigned row
+ unsigned seat
+ String note
+ ]
+
+ [Event|
+ List<Ticket> _tickets
+ List<Reservation> _reservations|
+ Date date
+ String name
+ Hall* hall|
+ reserveTicket()
+ cancelReservation()
+ buyTicket()
+ ]
+ [Ticket]<--[Event]
+ [Reservation]<--[Event]
-[EventSystem|
- createEvent()
- cancelEvent()
- reserveTicket(char*, Date, unsigned, unsigned)
- cancelReservation()
- buyTicket()
- queryFreeSeats(Event)
- queryReservations(Event)
- queryBoughtTickets(Date, Date, Hall)
- queryMostVisited()
- queryInsufficientlyVisited()
+ [EventSystem|
+ createEvent()
+ cancelEvent()
+ reserveTicket(char*, Date, unsigned, unsigned)
+ cancelReservation()
+ buyTicket()
+ queryFreeSeats(Event)
+ queryReservations(Event)
+ queryBoughtTickets(Date, Date, Hall)
+ queryMostVisited()
+ queryInsufficientlyVisited()
+ ]
+ [Event]<--[EventSystem]
]
-[Event]<--[EventSystem]
-[Venue|
- Hall* halls
- EventSystem es
+[<groupv> Venue
+ [Hall|
+ int number
+ unsigned rowCount
+ unsigned seatsPerRow
+ ]
+
+ [Venue|
+ List<Hall> halls
+ EventSystem es
+ ]
+ [Hall]<--[Venue]
]
-[Hall]<--[Venue]
-[EventSystem]<--[Venue]
+[System for events]<--[Venue]
-[String]
+[<groupsc> Standard Classes
+ [List<T>|
+ T _elements*
+ unsigned _count
+ unsigned _length|
+ add(T elem)
+ operator\[\](unsigned index)
+ Rule of 4
+ Move semantics
+ Operators
+ ]
+
+ [Date|
+ unsigned _day
+ unsigned _month
+ int _year
+ unsigned _hour
+ unsigned _minute
+ ]
+
+ [String|
+ char* _str
+ unsigned _length
+ unsigned _count|
+ Rule of 4
+ Move semantics
+ Operators
+ ]
+
+ [Command|
+ String name
+ void (*exec)()
+ ]
+
+ [Menu|
+ List<Command> _commands|
+ navigate()
+ ]
+ [Command]<--[Menu]
+
+ [UserInterface|
+ List<Menu> _menus|
+ start()
+ ]
+ [Menu]<--[UserInterface]
+
+ [List<T>]-/-[String]
+ [String]-/-[Date]
+]
```
</details>