///////////////////////////////////////////////////////////////// // NativeCpp.cpp - Translates managed calls into native calls // // // // Jim Fawcett, CSE687 - Object Oriented Design, Spring 2019 // ///////////////////////////////////////////////////////////////// #include "INativeCpp.h" #include class NativeCpp : public INativeCpp { public: virtual void putString(const std::string& str) override { str_ = str; } virtual std::string getString() override { return str_; } virtual std::vector convertToSquares(const std::vector& vecDble) override { std::vector squares; for (double item : vecDble) squares.push_back(item*item); return squares; } private: std::string str_; }; INativeCpp* createNativeCpp() { return new NativeCpp(); } //int main() //{ // std::cout << "Hello World!\n"; //}