Permalink
Browse files

add method to insert a dataclient directly

  • Loading branch information...
1 parent 571eba8 commit c06c05a18938475cb7305e34f13701903e4faff4 Chris Williams committed Mar 29, 2012
@@ -17,6 +17,7 @@
namespace pelican {
class AbstractPipeline;
+class AbstractDataClient;
class Config;
class PipelineDriver;
class DataClientFactory;
@@ -116,6 +117,7 @@ class PipelineApplication
/// Sets the data client.
void setDataClient(const QString& name);
+ void setDataClient(AbstractDataClient* client);
/// Starts the pipeline driver.
void start();
@@ -121,6 +121,7 @@ class PipelineDriver
/// Sets the data client.
void setDataClient(QString name);
+ void setDataClient(AbstractDataClient* client);
/// Starts the data flow through the pipelines.
void start();
@@ -162,6 +162,11 @@ void PipelineApplication::setDataClient(const QString& name)
_driver->setDataClient(name);
}
+void PipelineApplication::setDataClient(AbstractDataClient* client)
+{
+ _driver->setDataClient(client);
+}
+
/**
* @details
* Starts the pipeline driver. This should be called from main().
@@ -204,6 +204,10 @@ void PipelineDriver::setDataClient(QString name)
_dataClientName = name;
}
+void PipelineDriver::setDataClient( AbstractDataClient* client ) {
+ _dataClient = client;
+}
+
/**
* @details
* Iterates over all registered pipelines to determine the required data and

0 comments on commit c06c05a

Please sign in to comment.