summaryrefslogtreecommitdiff
path: root/project2/task.h
diff options
context:
space:
mode:
Diffstat (limited to 'project2/task.h')
-rw-r--r--project2/task.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/project2/task.h b/project2/task.h
index 6cc8c3e..d100042 100644
--- a/project2/task.h
+++ b/project2/task.h
@@ -2,7 +2,7 @@
#define TASK_H
#include <libxml++/nodes/element.h>
-#include <boost/shared_ptr.hpp>
+#include <boost/intrusive_ptr.hpp>
#include <map>
#include "sourceObject.h"
#include "xmlObjectLoader.h"
@@ -11,7 +11,7 @@
class ApplicationEngine;
class _Task;
-typedef boost::shared_ptr<_Task> Task;
+typedef boost::intrusive_ptr<_Task> Task;
typedef std::map<std::string, Task> Tasks;
typedef std::map<unsigned int, Task> OrderedTasks;
@@ -20,9 +20,6 @@ class _Task : public virtual _SourceObject, public _NoOutputExecute {
_Task(const xmlpp::Element * p);
virtual ~_Task();
virtual void execute() const = 0;
-
- static void AddLoaders(Loaders & l, OrderedTasks & vs);
- static void AddLoaders(Loaders & l, NoOutputExecutes & vs);
};
#endif