Skip to content
Snippets Groups Projects
Commit 3bbb01ba authored by Sacha Percot-Tétu's avatar Sacha Percot-Tétu
Browse files

Added the class Plugin

A Plugin is a set of Operations intended to be encapsulated in a dynamic
link library.
parent 388af5d7
No related branches found
No related tags found
No related merge requests found
#include "Plugin.h"
Plugin::Plugin(std::string name) : _name(name) {
}
std::string Plugin::getName() {
return _name;
}
std::vector<Operation*> Plugin::getOperations() {
return _operations;
}
void Plugin::addOperation(Operation* operation) {
_operations.push_back(operation);
}
\ No newline at end of file
#ifndef EIIMAGE_PLUGIN_H
#define EIIMAGE_PLUGIN_H
#include <string>
#include <vector>
#include "Operation.h"
class Plugin {
public:
Plugin(std::string name);
std::vector<Operation*> getOperations();
std::string getName();
protected:
void addOperation(Operation*);
private:
std::vector<Operation*> _operations;
std::string _name;
};
#endif //!EIIMAGE_PLUGIN_H
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment