work on MinimalApp
This commit is contained in:
@@ -1,32 +1,30 @@
|
||||
#ifndef MINIMALAPP_H
|
||||
#define MINIMALAPP_H
|
||||
#define APP_TYPE MinimalApp
|
||||
#include "Archimedes.h"
|
||||
|
||||
#include "pch.hpp"
|
||||
#include "utils/App/App.h"
|
||||
#include "utils/Module/Module.h"
|
||||
class MinimalApp : public Archimedes::App {
|
||||
|
||||
namespace Archimedes {
|
||||
|
||||
class MinimalApp : public App {
|
||||
private:
|
||||
|
||||
private:
|
||||
void printHelp() {};
|
||||
|
||||
void handleArgs(const int&, char*[]) {};
|
||||
public:
|
||||
MinimalApp() {};
|
||||
~MinimalApp() {};
|
||||
|
||||
void printHelp() {};
|
||||
void handleArgs(const int& argc, char* argv[]) {
|
||||
if(argc > 1) {
|
||||
for(int i = 0; i < argc; i++)
|
||||
load(argv[i], getBlacklist());
|
||||
} else {
|
||||
std::cout << "No modules to load\n";
|
||||
end();
|
||||
}
|
||||
};
|
||||
|
||||
void run();
|
||||
|
||||
public:
|
||||
MinimalApp();
|
||||
~MinimalApp();
|
||||
void stopModule(std::list<Archimedes::Module*>::iterator);
|
||||
|
||||
void run();
|
||||
void startModule(std::string);
|
||||
|
||||
void stopModule(std::list<Module*>::iterator);
|
||||
|
||||
void startModule(std::string);
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user