summaryrefslogtreecommitdiffstats
path: root/src/EtiReader.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/EtiReader.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/EtiReader.h')
-rw-r--r--src/EtiReader.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/EtiReader.h b/src/EtiReader.h
index 209b208..136bd1c 100644
--- a/src/EtiReader.h
+++ b/src/EtiReader.h
@@ -2,7 +2,7 @@
Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Her Majesty
the Queen in Right of Canada (Communications Research Center Canada)
- Copyright (C) 2014
+ Copyright (C) 2014, 2015
Matthias P. Braendli, matthias.braendli@mpb.li
http://opendigitalradio.org
@@ -41,6 +41,7 @@
#include <vector>
#include <stdint.h>
#include <sys/types.h>
+#include <boost/shared_ptr.hpp>
class EtiReader
@@ -54,8 +55,8 @@ public:
FicSource* getFic();
unsigned getMode();
unsigned getFp();
- const std::vector<SubchannelSource*>& getSubchannels();
- int process(Buffer* dataIn);
+ const std::vector<boost::shared_ptr<SubchannelSource> >& getSubchannels();
+ int process(const Buffer* dataIn);
void calculateTimestamp(struct frame_timestamp& ts)
{
@@ -83,9 +84,9 @@ protected:
eti_EOF eti_eof;
eti_TIST eti_tist;
FicSource* myFicSource;
- std::vector<SubchannelSource*> mySources;
+ std::vector<boost::shared_ptr<SubchannelSource> > mySources;
TimestampDecoder myTimestampDecoder;
-
+
private:
size_t myCurrentFrame;
bool time_ext_enabled;
@@ -94,3 +95,4 @@ private:
#endif // ETI_READER_H
+