Construct, reading from the provided stream ! @param stream The stream to read from */
| 433 | //! Construct, reading from the provided stream |
| 434 | /*! @param stream The stream to read from */ |
| 435 | JSONInputArchive(std::istream & stream) : |
| 436 | InputArchive<JSONInputArchive>(this), |
| 437 | itsNextName( nullptr ), |
| 438 | itsReadStream(stream) |
| 439 | { |
| 440 | itsDocument.ParseStream<>(itsReadStream); |
| 441 | if (itsDocument.IsArray()) |
| 442 | itsIteratorStack.emplace_back(itsDocument.Begin(), itsDocument.End()); |
| 443 | else |
| 444 | itsIteratorStack.emplace_back(itsDocument.MemberBegin(), itsDocument.MemberEnd()); |
| 445 | } |
| 446 | |
| 447 | ~JSONInputArchive() CEREAL_NOEXCEPT = default; |
| 448 |
nothing calls this directly
no test coverage detected