MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / to_enum_string

Function to_enum_string

src/network.cpp:82–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 }
81
82 std::string_view to_enum_string(net_e net) {
83 switch (net) {
84 case PC:
85 return "pc"sv;
86 case LAN:
87 return "lan"sv;
88 case WAN:
89 return "wan"sv;
90 }
91
92 // avoid warning
93 return "wan"sv;
94 }
95
96 af_e af_from_enum_string(const std::string_view &view) {
97 if (view == "ipv4") {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected