summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/file_sink_impl.cc
diff options
context:
space:
mode:
authorBastian Bloessl <bastian.bloessl@uibk.ac.at>2013-05-31 10:57:06 +0200
committerJohnathan Corgan <johnathan@corganlabs.com>2013-10-28 08:42:25 -0700
commit7b874636db9e214cff863e081d59c3eaa37046fc (patch)
tree60c14444473ad140e48514896ec41b7b4ed05a6a /gr-blocks/lib/file_sink_impl.cc
parent883ae8e3bbcaac6402fa07ac9e6c3d37d20fd973 (diff)
blocks: add append option to file sink
Diffstat (limited to 'gr-blocks/lib/file_sink_impl.cc')
-rw-r--r--gr-blocks/lib/file_sink_impl.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-blocks/lib/file_sink_impl.cc b/gr-blocks/lib/file_sink_impl.cc
index e78576e288..ab36dcd4e6 100644
--- a/gr-blocks/lib/file_sink_impl.cc
+++ b/gr-blocks/lib/file_sink_impl.cc
@@ -32,17 +32,17 @@ namespace gr {
namespace blocks {
file_sink::sptr
- file_sink::make(size_t itemsize, const char *filename)
+ file_sink::make(size_t itemsize, const char *filename, bool append)
{
return gnuradio::get_initial_sptr
- (new file_sink_impl(itemsize, filename));
+ (new file_sink_impl(itemsize, filename, append));
}
- file_sink_impl::file_sink_impl(size_t itemsize, const char *filename)
+ file_sink_impl::file_sink_impl(size_t itemsize, const char *filename, bool append)
: sync_block("file_sink",
io_signature::make(1, 1, itemsize),
io_signature::make(0, 0, 0)),
- file_sink_base(filename, true),
+ file_sink_base(filename, true, append),
d_itemsize(itemsize)
{
}