summaryrefslogtreecommitdiff
path: root/project2/streams/viewStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'project2/streams/viewStream.cpp')
-rw-r--r--project2/streams/viewStream.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/project2/streams/viewStream.cpp b/project2/streams/viewStream.cpp
index 17763ab..0f2308a 100644
--- a/project2/streams/viewStream.cpp
+++ b/project2/streams/viewStream.cpp
@@ -5,6 +5,7 @@
#include "viewHost.h"
#include <boost/iostreams/stream.hpp>
#include <boost/iostreams/concepts.hpp>
+#include <scripts.h>
class SinkStream : public boost::iostreams::sink {
public:
@@ -27,7 +28,7 @@ class ViewStream : public Stream, public ViewHost {
Stream(p),
ViewHost(p)
{
- p->script->loader.addLoadTarget(p, Storer::into<PresenterLoader>(&presenter, Scripted, (ExecContext*)NULL));
+ p->script->loader.addLoadTarget(p, Storer::into<PresenterFactory>(&presenter, Scripted, (ExecContext*)NULL));
}
void runStream(const Stream::Sink & s, ExecContext * ec) const
{
@@ -49,4 +50,5 @@ class ViewStream : public Stream, public ViewHost {
MultiRowSetPresenterPtr presenter;
};
-DECLARE_LOADER("viewstream", ViewStream);
+NAMEDFACTORY("viewstream", ViewStream, StreamFactory);
+