| 250 | } |
| 251 | |
| 252 | std::string IPLProcess::toJson() |
| 253 | { |
| 254 | std::ostringstream json; |
| 255 | for (auto &entry: _properties) |
| 256 | { |
| 257 | auto &property = entry.second; |
| 258 | json << "{\n"; |
| 259 | json << " \"type\": \"bool\"\n"; |
| 260 | json << " \"value\": \"" << property->widget() << "\"\n"; |
| 261 | json << "}\n"; |
| 262 | } |
| 263 | return json.str(); |
| 264 | } |
| 265 | |
| 266 | void IPLProcess::checkPropertyKey(const char *name) |
| 267 | { |