Skip to content
Snippets Groups Projects
Commit dc803800 authored by Otmane Lahlou's avatar Otmane Lahlou
Browse files

ENH : Deal with resource deallocation using the idiom Resource acquisition

      is initialization
      - Add 2 macros otbCurlCall and otbCurlMultiCall that throw exception if the
        code returned is different than CURLE_OK. Then, in order to clean proprely
        the curl environment and the files opened, 3 resources classes are added
        for :
             * In CurlHelper.cxx file to deal with the easy, multi, and FILE
               resource.
      - Change the prototype of the method TestUrlAvailability, to handle the
        error returned in the CurlHelper class. it returns a boolean for now.
        otbImageFileReader is affected due to this changes
parent eb8baafa
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment