test dependency loading
This commit is contained in:
16
modules/DependsOnPrint/src/DependsOnPrint.cpp
Normal file
16
modules/DependsOnPrint/src/DependsOnPrint.cpp
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#include "DependsOnPrint.h"
|
||||||
|
|
||||||
|
DependsOnPrint::DependsOnPrint(void* h, App& a) : Module(h, a) {
|
||||||
|
name = "DependsOnPrint";
|
||||||
|
|
||||||
|
deps["Print"] = "/home/nathan/Projects/Archimedes/result-2/bin/Print";
|
||||||
|
}
|
||||||
|
|
||||||
|
DependsOnPrint::~DependsOnPrint() {
|
||||||
|
std::cout << "DependsOnPrint Destroyed!\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
void DependsOnPrint::run() {
|
||||||
|
std::cout << "DependsOnPrint lib loaded and run!\n";
|
||||||
|
app.stopModule(self);
|
||||||
|
}
|
||||||
17
modules/DependsOnPrint/src/DependsOnPrint.h
Normal file
17
modules/DependsOnPrint/src/DependsOnPrint.h
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
#include "Archimedes.h"
|
||||||
|
|
||||||
|
class DependsOnPrint : public Module {
|
||||||
|
|
||||||
|
public:
|
||||||
|
DependsOnPrint(void*, App&);
|
||||||
|
~DependsOnPrint();
|
||||||
|
void run();
|
||||||
|
void onLoad() {}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
Module* create(void* handle, App& app) {
|
||||||
|
return new DependsOnPrint(handle, app);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user