| 105 | } |
| 106 | |
| 107 | std::wstring serializeInvocation(const std::wstring& funcName, const Arguments& args) |
| 108 | { |
| 109 | std::wstring result; |
| 110 | |
| 111 | result += L"<invoke name=\"" + funcName + L"\" returntype=\"xml\">"; |
| 112 | |
| 113 | if (!args.empty()) |
| 114 | { |
| 115 | result += L"<arguments>"; |
| 116 | for (Arguments::const_iterator i = args.begin(); i != args.end(); ++i) |
| 117 | result += serializeValue(*i); |
| 118 | result += L"</arguments>"; |
| 119 | } |
| 120 | |
| 121 | result += L"</invoke>"; |
| 122 | |
| 123 | return result; |
| 124 | } |
| 125 | |
| 126 | bool deserializeInvocation(const std::wstring& xmlString, std::wstring& funcName, Arguments& args) |
| 127 | { |
no test coverage detected