PluginManagerBase.cpp
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
23 //----------------------------------------------------------------------
25 
26 namespace icl_core {
27 namespace plugin {
28 
29 PluginManagerBase::PluginManagerBase(std::string plugin_dir)
30 {
31  addPluginPath(plugin_dir);
32 }
33 
35 {
36  return m_plugin_paths;
37 }
38 
39 void PluginManagerBase::addPluginPath(const std::string &path)
40 {
41  if (path != "")
42  {
43  m_plugin_paths.push_back(path);
44  }
45  else
46  {
47  LOGGING_TRACE(Plugin, "Cannot use an empty plugin path" << icl_core::logging::endl);
48  }
49 }
50 
52 {
53  return m_error_messages;
54 }
55 
57 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
58 
62 StringList PluginManagerBase::PluginPaths()
63 {
64  return pluginPaths();
65 }
66 
70 void PluginManagerBase::AddPluginPath(const std::string &path)
71 {
72  addPluginPath(path);
73 }
74 
80 StringList PluginManagerBase::ErrorMessages()
81 {
82  return errorMessages();
83 }
84 
85 #endif
86 
89 {
90  m_error_messages.clear();
91 }
92 
93 void PluginManagerBase::addErrorMessage(const std::string &message)
94 {
95  m_error_messages.push_back(message);
96 }
97 
99 #ifdef _IC_BUILDER_DEPRECATED_STYLE_
100 
101 void PluginManagerBase::ClearErrorMessages()
102 {
104 }
105 
106 void PluginManagerBase::AddErrorMessage(const std::string &message)
107 {
108  addErrorMessage(message);
109 }
110 
111 #endif
112 
114 }
115 }
void addErrorMessage(const std::string &message)
PluginManagerBase(std::string plugin_dir="")
void addPluginPath(const std::string &path)
ThreadStream & endl(ThreadStream &stream)
Definition: ThreadStream.h:249
Contains PluginManagerBase.
std::list< std::string > StringList
#define LOGGING_TRACE(streamname, arg)


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58