Go to the documentation of this file.00001
00021 #ifndef TASK_H
00022 #define TASK_H
00023
00024 #include <string>
00025 #include <set>
00026 #include <vector>
00027 using namespace std;
00028
00029 #include "taskInterface.h"
00030
00032
00033
00034
00035 class Task {
00036
00037 protected:
00038
00039
00040
00041 string name;
00042 multiset<TaskInterface> taskInterfaces;
00043
00044 public:
00045
00046 Task(string n) : name(n) {}
00047 Task() {}
00048
00049 Task(const Task &other) {
00050 name = other.name;
00051 taskInterfaces = other.taskInterfaces;
00052 }
00053
00054
00055 virtual string getName(void) const;
00056
00057
00058 virtual void addInterface(TaskInterface t, int n = 1);
00059 virtual bool hasInterface(string n);
00060
00061
00062
00063
00064 };
00065
00066 #endif