summaryrefslogtreecommitdiff
path: root/gr-blocks/include/gnuradio/blocks/file_sink.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/include/gnuradio/blocks/file_sink.h')
-rw-r--r--gr-blocks/include/gnuradio/blocks/file_sink.h39
1 files changed, 19 insertions, 20 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/file_sink.h b/gr-blocks/include/gnuradio/blocks/file_sink.h
index 177964682d..43d77213ed 100644
--- a/gr-blocks/include/gnuradio/blocks/file_sink.h
+++ b/gr-blocks/include/gnuradio/blocks/file_sink.h
@@ -28,30 +28,29 @@
#include <gnuradio/sync_block.h>
namespace gr {
- namespace blocks {
+namespace blocks {
+
+/*!
+ * \brief Write stream to file.
+ * \ingroup file_operators_blk
+ */
+class BLOCKS_API file_sink : virtual public sync_block, virtual public file_sink_base
+{
+public:
+ // gr::blocks::file_sink::sptr
+ typedef boost::shared_ptr<file_sink> sptr;
/*!
- * \brief Write stream to file.
- * \ingroup file_operators_blk
+ * \brief Make a file sink.
+ * \param itemsize size of the input data items.
+ * \param filename name of the file to open and write output to.
+ * \param append if true, data is appended to the file instead of
+ * overwriting the initial content.
*/
- class BLOCKS_API file_sink : virtual public sync_block,
- virtual public file_sink_base
- {
- public:
- // gr::blocks::file_sink::sptr
- typedef boost::shared_ptr<file_sink> sptr;
-
- /*!
- * \brief Make a file sink.
- * \param itemsize size of the input data items.
- * \param filename name of the file to open and write output to.
- * \param append if true, data is appended to the file instead of
- * overwriting the initial content.
- */
- static sptr make(size_t itemsize, const char *filename, bool append=false);
- };
+ static sptr make(size_t itemsize, const char* filename, bool append = false);
+};
- } /* namespace blocks */
+} /* namespace blocks */
} /* namespace gr */
#endif /* INCLUDED_GR_FILE_SINK_H */