@brief Factory method
| 43 | |
| 44 | /// @brief Factory method |
| 45 | osvr::unique_ptr<GraphOutputInterface> create(std::ostream &os, |
| 46 | std::string const &type) { |
| 47 | return m_factories.at(type)(os); |
| 48 | } |
| 49 | typedef std::function<osvr::unique_ptr<GraphOutputInterface>( |
| 50 | std::ostream &os)> GraphFactory; |
| 51 | void registerGraphFactory(std::string const &type, GraphFactory factory) { |
no outgoing calls
no test coverage detected