| 126 | } |
| 127 | |
| 128 | void |
| 129 | deserialize( |
| 130 | std::string const &url, |
| 131 | std::vector<char> const &data) |
| 132 | { |
| 133 | suscan_object_t *object = nullptr; |
| 134 | |
| 135 | SU_ATTEMPT(object = suscan_object_from_xml( |
| 136 | url.c_str(), |
| 137 | data.data(), |
| 138 | data.size())); |
| 139 | |
| 140 | if (!this->isBorrowed()) { |
| 141 | if (!this->isHollow()) |
| 142 | suscan_object_destroy(this->instance); |
| 143 | } else { |
| 144 | this->borrowed = false; |
| 145 | } |
| 146 | |
| 147 | this->instance = object; |
| 148 | } |
| 149 | |
| 150 | std::string |
| 151 | getClass(void) const |
nothing calls this directly
no test coverage detected