|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
21 #ifndef ELM_SYS_PLUGGER_H
22 #define ELM_SYS_PLUGGER_H
24 #include <elm/macros.h>
25 #include <elm/PreIterator.h>
26 #include <elm/sys/Plugin.h>
27 #include <elm/data/Range.h>
28 #include <elm/data/Vector.h>
29 #include <elm/sys/Directory.h>
30 #include <elm/sys/Path.h>
31 #include <elm/util/ErrorHandler.h>
33 namespace elm {
namespace sys {
60 inline bool quiet(
void)
const {
return _quiet; }
75 bool ended(
void)
const;
110 static void leave(
Plugin *plugin);
118 static void unlink(
void *handle);
119 static void *lookSymbol(
void *handle,
cstring hook);
121 static string error(
void);
126 #endif // ELM_SYS_PLUGGER_H
Definition: Directory.h:38
Definition: ErrorHandler.h:49
friend class PluginManager
Definition: Plugger.h:38
String item(void) const
Definition: system_Plugger.cpp:740
Definition: util_WAHVector.cpp:157
String hook(void) const
Definition: Plugger.h:58
String lastErrorMessage(void)
Definition: system_Plugger.cpp:543
string getLastError(void)
Definition: system_Plugger.cpp:554
@ NO_PLUGIN
Definition: Plugger.h:42
Plugin * plug(const string &path)
Definition: system_Plugger.cpp:199
Path path(void) const
Definition: system_Plugger.cpp:756
PathIterator(const PathIterator &iter)
Definition: Plugger.h:98
bool ended(void) const
Definition: system_Plugger.cpp:731
virtual void onError(String message)
Definition: system_Plugger.cpp:606
error_level_t
Definition: ErrorHandler.h:31
friend class Plugin
Definition: Plugger.h:37
@ OK
Definition: Plugger.h:41
Range< I > range(const I &begin, const I &end)
Definition: Range.h:67
const Vector< string > & paths() const
Definition: Plugger.h:90
void setQuiet(bool quiet)
Definition: Plugger.h:61
error_t lastError(void)
Definition: system_Plugger.cpp:532
bool quiet(void) const
Definition: Plugger.h:60
bool isPlugged(string name) const
Definition: system_Plugger.cpp:241
Range< Iter > available()
Definition: Plugger.h:91
@ BAD_PLUGIN
Definition: Plugger.h:46
virtual ~Plugger(void)
Definition: system_Plugger.cpp:150
void resetPaths(void)
Definition: system_Plugger.cpp:188
Plugin * plug(void) const
Definition: system_Plugger.cpp:776
@ BAD_VERSION
Definition: Plugger.h:44
Iter(Plugger &_plugger, bool end=false)
Definition: system_Plugger.cpp:704
~Iter(void)
Definition: system_Plugger.cpp:721
@ NO_HOOK
Definition: Plugger.h:43
Plugin * plugFile(sys::Path path)
Definition: system_Plugger.cpp:411
error_t
Definition: Plugger.h:40
void next(void)
Definition: system_Plugger.cpp:767
void addPath(String path)
Definition: system_Plugger.cpp:171
virtual void onWarning(String message)
Definition: system_Plugger.cpp:634
Plugger(CString hook, const Version &plugger_version, String paths="*")
Definition: system_Plugger.cpp:112
const Vector< Plugin * > & plugged() const
Definition: Plugger.h:92
@ NO_MAGIC
Definition: Plugger.h:45
void removePath(String path)
Definition: system_Plugger.cpp:180
@ MISSING_DEP
Definition: Plugger.h:47
PathIterator(const Plugger &plugger)
Definition: Plugger.h:97