reintegration complete
This commit is contained in:
17
modules/Archimedes-Modules/Print/Print.cpp
Normal file
17
modules/Archimedes-Modules/Print/Print.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "Print.h"
|
||||
|
||||
Print::Print(Archimedes::App* a, void* h) : Archimedes::Module(a, h) {
|
||||
name = "Print";
|
||||
}
|
||||
|
||||
Print::~Print() {
|
||||
if(app) {
|
||||
std::cout << "Print Destroyed!\n";
|
||||
}
|
||||
}
|
||||
|
||||
void Print::run() {
|
||||
std::cout << "Print lib loaded and run!\n";
|
||||
|
||||
app->stopModule(name);
|
||||
}
|
||||
15
modules/Archimedes-Modules/Print/Print.h
Normal file
15
modules/Archimedes-Modules/Print/Print.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "Archimedes.h"
|
||||
|
||||
class Print : public Archimedes::Module {
|
||||
|
||||
public:
|
||||
Print(Archimedes::App*, void*);
|
||||
Print() { name = "Print"; }
|
||||
~Print();
|
||||
void run();
|
||||
};
|
||||
|
||||
#ifdef PRINT_DYNAMIC
|
||||
typedef Print mtype;
|
||||
#include "endModule.h"
|
||||
#endif
|
||||
Reference in New Issue
Block a user