aboutsummaryrefslogtreecommitdiff
path: root/src/functionplugger.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-01-06 17:05:45 +0000
committerMike Buland <eichlan@xagasoft.com>2010-01-06 17:05:45 +0000
commit3c7e81d3baba06cb1bf37de84aeaa6cad277652a (patch)
tree166e9309a0be01e6b4e8591434372e4817a65d76 /src/functionplugger.h
parente809677b1d5a02b93a0be7a9fce8a6b67d0d91be (diff)
downloadbuild-3c7e81d3baba06cb1bf37de84aeaa6cad277652a.tar.gz
build-3c7e81d3baba06cb1bf37de84aeaa6cad277652a.tar.bz2
build-3c7e81d3baba06cb1bf37de84aeaa6cad277652a.tar.xz
build-3c7e81d3baba06cb1bf37de84aeaa6cad277652a.zip
Wow, ok, well, I added some more error handling, that's positive, also switched
conditions and functions to a plugger system like views, and all of them now load builtin and external plugins flawlessly. It's actually a lot of fun. I also added the example/test plugin condition "random" it randomly builds targets...it's not really useful...
Diffstat (limited to 'src/functionplugger.h')
-rw-r--r--src/functionplugger.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/functionplugger.h b/src/functionplugger.h
new file mode 100644
index 0000000..30022f6
--- /dev/null
+++ b/src/functionplugger.h
@@ -0,0 +1,17 @@
1#ifndef FUNCTION_PLUGGER_H
2#define FUNCTION_PLUGGER_H
3
4#include "function.h"
5#include <bu/plugger.h>
6#include <bu/singleton.h>
7
8class FunctionPlugger : public Bu::Plugger<Function>,
9 public Bu::Singleton<FunctionPlugger>
10{
11friend class Bu::Singleton<FunctionPlugger>;
12private:
13 FunctionPlugger();
14 virtual ~FunctionPlugger();
15};
16
17#endif