| 1223 | // SERIALIZATION |
| 1224 | |
| 1225 | std::shared_ptr<IdfObject_Impl> IdfObject_Impl::load(const std::string& text) { |
| 1226 | std::shared_ptr<IdfObject_Impl> result; |
| 1227 | IdfObject_Impl idfObjectImpl; |
| 1228 | |
| 1229 | try { |
| 1230 | idfObjectImpl.parse(text, true); |
| 1231 | idfObjectImpl.resizeToMinFields(); |
| 1232 | } catch (...) { |
| 1233 | return result; |
| 1234 | } |
| 1235 | |
| 1236 | bool keepHandle = idfObjectImpl.iddObject().hasHandleField(); |
| 1237 | result = std::shared_ptr<IdfObject_Impl>(new IdfObject_Impl(idfObjectImpl, keepHandle)); |
| 1238 | return result; |
| 1239 | } |
| 1240 | |
| 1241 | std::shared_ptr<IdfObject_Impl> IdfObject_Impl::load(const std::string& text, const IddObject& iddObject) { |
| 1242 | std::shared_ptr<IdfObject_Impl> result; |
nothing calls this directly
no test coverage detected