Generate Json::Value for this object
| 250 | |
| 251 | // Generate Json::Value for this object |
| 252 | Json::Value ChunkReader::JsonValue() const { |
| 253 | |
| 254 | // Create root json object |
| 255 | Json::Value root = ReaderBase::JsonValue(); // get parent properties |
| 256 | root["type"] = "ChunkReader"; |
| 257 | root["path"] = path; |
| 258 | std::stringstream chunk_size_stream; |
| 259 | chunk_size_stream << chunk_size; |
| 260 | root["chunk_size"] = chunk_size_stream.str(); |
| 261 | root["chunk_version"] = version; |
| 262 | |
| 263 | // return JsonValue |
| 264 | return root; |
| 265 | } |
| 266 | |
| 267 | // Load JSON string into this object |
| 268 | void ChunkReader::SetJson(const std::string value) { |
nothing calls this directly
no outgoing calls
no test coverage detected