opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
component_registry_entry_base.h
Go to the documentation of this file.
1#pragma once
2
4#include <OpenSim/Common/Component.h>
5
6#include <memory>
7#include <string>
8#include <string_view>
9
10namespace opyn
11{
13 public:
15 std::string_view name_,
16 std::string_view description_,
17 std::shared_ptr<const OpenSim::Component>
18 );
19
20 osc::CStringView name() const { return m_Name; }
21 osc::CStringView description() const { return m_Description; }
22 const OpenSim::Component& prototype() const { return *m_Prototype; }
23 std::unique_ptr<OpenSim::Component> instantiate() const;
24
25 private:
26 std::string m_Name;
27 std::string m_Description;
28 std::shared_ptr<const OpenSim::Component> m_Prototype;
29 };
30}
Definition component_registry_entry_base.h:12
ComponentRegistryEntryBase(std::string_view name_, std::string_view description_, std::shared_ptr< const OpenSim::Component >)
osc::CStringView name() const
Definition component_registry_entry_base.h:20
const OpenSim::Component & prototype() const
Definition component_registry_entry_base.h:22
std::unique_ptr< OpenSim::Component > instantiate() const
osc::CStringView description() const
Definition component_registry_entry_base.h:21
Definition c_string_view.h:12
Definition component_registry.h:14