8 #ifndef RETDEC_DECOMPILATION_H 9 #define RETDEC_DECOMPILATION_H 24 class DecompilationImpl;
34 using Callback = std::function<void (const Decompilation &decompilation)>;
48 const std::shared_ptr<::retdec::internal::Connection> &conn);
55 int getCompletion()
const noexcept;
60 void waitUntilFinished(
OnError onError = OnError::Throw);
61 void waitUntilFinished(
const Callback &callback,
62 OnError onError = OnError::Throw);
67 std::shared_ptr<File> getOutputHllFile();
68 std::string getOutputHll();
72 internal::DecompilationImpl *impl() noexcept;
73 const internal::DecompilationImpl *impl()
const noexcept;
Representation of a decompilation.
Definition: decompilation.h:31
The namespace of the library.
Definition: doxygen.h:8
std::function< void(const Decompilation &decompilation)> Callback
Type of a callback for waitUntilFinished().
Definition: decompilation.h:34
OnError
What should the waiting member functions do when a decompilation fails?
Definition: decompilation.h:40
Base class of all resources.
Base class of all resources.
Definition: resource.h:24