#pragma once
#include "ISestraInfo.h"
#include <msclr/auto_gcroot.h>

namespace DNVGL {namespace Sestra {namespace API {
    interface class ISestraInfoN;

    class SestraInfoWrapper : public ISestraInfo {
    public:
        SestraInfoWrapper(ISestraInfoN ^clr);
        void ReportProgress(double fraction);
        void SetStatus(const std::string & infoText);
        void HandleException(const std::exception & e);
    private:
        msclr::auto_gcroot<ISestraInfoN^> m_clr;
    };

}}}