| 109 | // -------------------------------------------------------------------------------------------------------------------- |
| 110 | |
| 111 | IPLerror CContext::createReconstructor(const IPLReconstructorSettings* settings, IReconstructor** reconstructor) |
| 112 | { |
| 113 | if (!settings || !reconstructor) |
| 114 | return IPL_STATUS_FAILURE; |
| 115 | |
| 116 | try |
| 117 | { |
| 118 | auto _reconstructor = reinterpret_cast<CReconstructor*>(gMemory().allocate(sizeof(CReconstructor), Memory::kDefaultAlignment)); |
| 119 | new (_reconstructor) CReconstructor(this, settings); |
| 120 | *reconstructor = _reconstructor; |
| 121 | } |
| 122 | catch (Exception e) |
| 123 | { |
| 124 | return static_cast<IPLerror>(e.status()); |
| 125 | } |
| 126 | |
| 127 | return IPL_STATUS_SUCCESS; |
| 128 | } |
| 129 | |
| 130 | } |
no test coverage detected