| 32 | namespace DecoderDataFormat |
| 33 | { |
| 34 | int Parse(const char *name){ |
| 35 | if (strcmp(name, "dec") == 0){ |
| 36 | return (int)dec; |
| 37 | } |
| 38 | if (strcmp(name, "hex") == 0){ |
| 39 | return (int)hex; |
| 40 | } |
| 41 | if (strcmp(name, "oct") == 0){ |
| 42 | return (int)oct; |
| 43 | } |
| 44 | if (strcmp(name, "bin") == 0){ |
| 45 | return (int)bin; |
| 46 | } |
| 47 | if (strcmp(name, "ascii") == 0){ |
| 48 | return (int)ascii; |
| 49 | } |
| 50 | return (int)hex; |
| 51 | } |
| 52 | } |
no outgoing calls
no test coverage detected