HAL
plugin_interface_base.cpp
Go to the documentation of this file.
2 
6 
7 namespace hal
8 {
10  {
12  delete aeif;
13  }
14 
16  {
17  }
18 
20  {
21  return std::string();
22  }
23 
24  std::set<std::string> BasePluginInterface::get_dependencies() const
25  {
26  return {};
27  }
28 
30  {
31  }
32 
34  {
35  }
36 
37  std::vector<AbstractExtensionInterface*> BasePluginInterface::get_extensions() const
38  {
39  return m_extensions;
40  }
41 
43  {
44  auto it = m_extensions.begin();
45  while (it != m_extensions.end())
46  {
47  if (*it == aeif)
48  {
49  it = m_extensions.erase(it);
50  delete aeif;
51  }
52  else
53  ++it;
54  }
55  }
56 
58  {
60  }
61 
62 } // namespace hal
virtual std::set< std::string > get_dependencies() const
void delete_extension(AbstractExtensionInterface *aeif)
virtual std::string get_name() const =0
std::vector< AbstractExtensionInterface * > m_extensions
virtual std::string get_description() const
virtual std::vector< AbstractExtensionInterface * > get_extensions() const
std::shared_ptr< spdlog::logger > add_channel(const std::string &channel_name, const std::vector< std::shared_ptr< log_sink >> &sinks, const std::string &level="info")
Definition: log.cpp:100
static std::shared_ptr< log_sink > create_gui_sink()
Definition: log.cpp:274
static std::shared_ptr< log_sink > create_file_sink(const std::filesystem::path &file_name="", const bool truncate=false)
Definition: log.cpp:247
static std::shared_ptr< log_sink > create_stdout_sink(const bool colored=true)
Definition: log.cpp:216
static LogManager * get_instance(const std::filesystem::path &file_name="")
Definition: log.cpp:61