HAL
plugin_vhdl_parser.cpp
Go to the documentation of this file.
2 
6 
7 namespace hal
8 {
9  extern std::unique_ptr<BasePluginInterface> create_plugin_instance()
10  {
11  return std::make_unique<VHDLParserPlugin>();
12  }
13 
15  : FacExtensionInterface(FacExtensionInterface::FacNetlistParser)
16  {
17  m_description = "Default VHDL Parser";
18  m_supported_file_extensions.push_back(".vhd");
19  m_supported_file_extensions.push_back(".vhdl");
21  fac->m_factory = []() { return std::make_unique<VHDLParser>(); };
22  factory_provider = fac;
23  }
24 
26  : m_extension(nullptr)
27  {;}
28 
29  std::string VHDLParserPlugin::get_name() const
30  {
31  return std::string("vhdl_parser");
32  }
33 
34  std::string VHDLParserPlugin::get_version() const
35  {
36  return std::string("0.1");
37  }
38 
40  {
41  m_extension = new VHDLParserExtension;
42  m_extensions.push_back(m_extension);
43  }
44 
46  {
47  delete_extension(m_extension);
48  }
49 } // namespace hal
void delete_extension(AbstractExtensionInterface *aeif)
std::vector< AbstractExtensionInterface * > m_extensions
std::vector< std::string > m_supported_file_extensions
AbstractFactoryProvider * factory_provider
File-Access Factory class.
std::function< std::unique_ptr< T >)> m_factory
std::string get_name() const override
std::string get_version() const override
std::unique_ptr< BasePluginInterface > create_plugin_instance()
Definition: plugin_gui.cpp:71