MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / create

Method create

apps/PathTreeExport/GraphFactoryRegistration.h:45–48  ·  view source on GitHub ↗

@brief Factory method

Source from the content-addressed store, hash-verified

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) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected