#ifndef __READERLP_BUILDER_HPP__ #define __READERLP_BUILDER_HPP__ #include #include #include #include "model.hpp" struct Builder { std::map> variables; Model model; std::shared_ptr getvarbyname(std::string name) { if (variables.count(name) == 0) { variables[name] = std::shared_ptr(new Variable(name)); model.variables.push_back(variables[name]); } return variables[name]; } }; #endif