| 68 | } |
| 69 | |
| 70 | IJsonHandler* JsonObjectJsonHandler::readString(const std::string_view& str) { |
| 71 | CesiumUtility::JsonValue& current = *this->_stack.back(); |
| 72 | CesiumUtility::JsonValue::Array* pArray = |
| 73 | std::get_if<CesiumUtility::JsonValue::Array>(¤t.value); |
| 74 | if (pArray) { |
| 75 | pArray->emplace_back(std::string(str)); |
| 76 | } else { |
| 77 | current = std::string(str); |
| 78 | } |
| 79 | |
| 80 | return this->doneElement(); |
| 81 | } |
| 82 | |
| 83 | IJsonHandler* JsonObjectJsonHandler::readObjectStart() { |
| 84 | CesiumUtility::JsonValue& current = *this->_stack.back(); |
nothing calls this directly
no test coverage detected