#pragma once ///////////////////////////////////////////////////////////////// // ITranslator.h - Translates managed calls into native calls // // // // Jim Fawcett, CSE687 - Object Oriented Design, Spring 2019 // ///////////////////////////////////////////////////////////////// /* * This package is responsible for translating managed types into * native types and for delegating managed calls to native calls. */ using namespace System; using namespace System::Collections::Generic; public ref class ITranslator abstract { public: virtual void putString(String^ str) = 0; virtual String^ getString() = 0; virtual List^ convertToSquares(List^ dbles) = 0; }; public ref class TranslatorFactory { public: static ITranslator^ createTranslator(); };