Added parser class

This commit is contained in:
ouafabulous 2025-05-19 15:25:33 +02:00
parent 86531035a8
commit 53a83308de
6 changed files with 105 additions and 17 deletions

View file

@ -69,6 +69,22 @@ class Commandes {
+ USERNAME() : void
}
' ========================
' CLASS: Parser
' ========================
class Parser {
- _port : int
- _password : string
- _valid : bool
- _errorMsg : string
+ Parser(argc : int, argv : char**)
+ isValid() : bool
+ getPort() : int
+ getPassword() : string
+ getErrorMsg() : string
}
' ========================
' RELATIONS
' ========================
@ -77,5 +93,6 @@ Server "1" o-- "*" Client : _clients
Client "1" o-- "*" Channel : _channels
Channel "1" *-- "1" Client : _owner
Channel "1" o-- "*" Client : _operators
main ..> Parser : uses
@enduml