|
Zappy GUI
C++ graphic client: renderer, camera, network
|
Parses server messages into Event objects. Static class that provides a method to parse raw input strings from the server and convert them into structured Event variants. More...
#include <ProtocolParser.hpp>
Collaboration diagram for ProtocolParser:Static Public Member Functions | |
| static std::optional< Event > | parse (std::string_view input) |
| Parses a raw input string from the server and converts it into an Event variant. This method stops at the first ' ' character. It does not provide mass transformation of multiple lines. | |
Static Private Member Functions | |
| static std::vector< std::string_view > | _split (std::string_view str, char delimiter, char stopAt='\n') |
| static std::string | _joinTokens (const std::vector< std::string_view > &tokens, size_t start) |
| static std::optional< Event > | _parseWelcome (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseMSZ (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseBCT (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseTNA (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parsePNW (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parsePPO (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parsePLV (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parsePIN (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parsePEX (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parsePBC (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parsePIC (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parsePIE (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parsePFK (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parsePDR (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parsePGT (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parsePDI (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseENW (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseEBO (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseEDI (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseSGT (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseSST (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseSEG (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseSMG (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseSUC (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseSBP (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseSTU (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseSSE (const std::vector< std::string_view > &tokens) |
| static std::optional< Event > | _parseGWT (const std::vector< std::string_view > &tokens) |
Parses server messages into Event objects. Static class that provides a method to parse raw input strings from the server and convert them into structured Event variants.
Design pattern: FACTORY
Definition at line 16 of file ProtocolParser.hpp.
|
staticprivate |
Definition at line 63 of file ProtocolParser.cpp.
Referenced by _parsePBC(), _parseSEG(), _parseSMG(), and _parseTNA().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 95 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 352 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 366 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 334 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 477 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 80 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 221 of file ProtocolParser.cpp.
References _joinTokens().
Referenced by parse().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 320 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 290 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 207 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 276 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 305 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 235 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 257 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 185 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 169 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 125 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 148 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 435 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 408 of file ProtocolParser.cpp.
References _joinTokens().
Referenced by parse().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 380 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 417 of file ProtocolParser.cpp.
References _joinTokens().
Referenced by parse().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 459 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 394 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 444 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 426 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 116 of file ProtocolParser.cpp.
References _joinTokens().
Referenced by parse().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 73 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 35 of file ProtocolParser.cpp.
Referenced by parse().
Here is the caller graph for this function:
|
static |
Parses a raw input string from the server and converts it into an Event variant. This method stops at the first '
' character. It does not provide mass transformation of multiple lines.
| input | The raw input string to parse. |
Definition at line 6 of file ProtocolParser.cpp.
References _parseBCT(), _parseEBO(), _parseEDI(), _parseENW(), _parseGWT(), _parseMSZ(), _parsePBC(), _parsePDI(), _parsePDR(), _parsePEX(), _parsePFK(), _parsePGT(), _parsePIC(), _parsePIE(), _parsePIN(), _parsePLV(), _parsePNW(), _parsePPO(), _parseSBP(), _parseSEG(), _parseSGT(), _parseSMG(), _parseSSE(), _parseSST(), _parseSTU(), _parseSUC(), _parseTNA(), _parseWelcome(), and _split().
Referenced by App::pollAndEnqueue().
Here is the call graph for this function:
Here is the caller graph for this function: