summaryrefslogtreecommitdiffstats
path: root/src/Flowgraph.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-02-22 20:52:20 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-02-22 20:52:20 +0100
commit7cee56f37001640b88f4ac1249624c9c9758e844 (patch)
treec1e4b172f53a51b79f35fc6736a5a4124c19cf5e /src/Flowgraph.h
parent7d7cbc19bc5509aa9fb8fb430132fe82855cf8c4 (diff)
downloaddabmod-7cee56f37001640b88f4ac1249624c9c9758e844.tar.gz
dabmod-7cee56f37001640b88f4ac1249624c9c9758e844.tar.bz2
dabmod-7cee56f37001640b88f4ac1249624c9c9758e844.zip
Replace pointers by shared_ptr in all flowgraph
Diffstat (limited to 'src/Flowgraph.h')
-rw-r--r--src/Flowgraph.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/Flowgraph.h b/src/Flowgraph.h
index 00b8d42..1129668 100644
--- a/src/Flowgraph.h
+++ b/src/Flowgraph.h
@@ -1,6 +1,11 @@
/*
Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Her Majesty
the Queen in Right of Canada (Communications Research Center Canada)
+
+ Copyright (C) 2015
+ Matthias P. Braendli, matthias.braendli@mpb.li
+
+ http://opendigitalradio.org
*/
/*
This file is part of ODR-DabMod.
@@ -38,12 +43,12 @@
class Node
{
public:
- Node(ModPlugin* plugin);
+ Node(boost::shared_ptr<ModPlugin> plugin);
~Node();
Node(const Node&);
Node& operator=(const Node&);
- ModPlugin* plugin() { return myPlugin; }
+ boost::shared_ptr<ModPlugin> plugin() { return myPlugin; }
std::vector<boost::shared_ptr<Buffer> > myInputBuffers;
std::vector<boost::shared_ptr<Buffer> > myOutputBuffers;
@@ -55,7 +60,7 @@ public:
}
protected:
- ModPlugin* myPlugin;
+ boost::shared_ptr<ModPlugin> myPlugin;
time_t myProcessTime;
};
@@ -83,7 +88,8 @@ public:
Flowgraph(const Flowgraph&);
Flowgraph& operator=(const Flowgraph&);
- void connect(ModPlugin* input, ModPlugin* output);
+ void connect(boost::shared_ptr<ModPlugin> input,
+ boost::shared_ptr<ModPlugin> output);
bool run();
protected: