| 123 | } |
| 124 | |
| 125 | bool RapidDeserializer::field( |
| 126 | const std::string& name, |
| 127 | const std::function<bool(dap::Deserializer*)>& cb) const { |
| 128 | if (!json()->IsObject()) { |
| 129 | return false; |
| 130 | } |
| 131 | auto it = json()->FindMember(name.c_str()); |
| 132 | if (it == json()->MemberEnd()) { |
| 133 | return cb(&NullDeserializer::instance); |
| 134 | } |
| 135 | RapidDeserializer d(&(it->value)); |
| 136 | return cb(&d); |
| 137 | } |
| 138 | |
| 139 | RapidSerializer::RapidSerializer() |
| 140 | : doc(new rapidjson::Document(rapidjson::kObjectType)), |
no test coverage detected