------------function
| 38 | |
| 39 | //------------function |
| 40 | static QString FormatArrayToString(std::vector<StringPair> &protocolFormats) |
| 41 | { |
| 42 | QString str; |
| 43 | |
| 44 | for (StringPair &o : protocolFormats){ |
| 45 | if (!str.isEmpty()){ |
| 46 | str += ";"; |
| 47 | } |
| 48 | str += o.m_key.c_str(); |
| 49 | str += "="; |
| 50 | str += o.m_value.c_str(); |
| 51 | } |
| 52 | |
| 53 | return str; |
| 54 | } |
| 55 | |
| 56 | static void StringToFormatArray(const QString &str, std::vector<StringPair> &protocolFormats) |
| 57 | { |