source: trunk/yat/omic/BamWriteIterator.cc @ 2993

Last change on this file since 2993 was 2993, checked in by Peter, 9 years ago

conform GPL header to same style as in other yat files

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1
2// $Id: BamWriteIterator.cc 2993 2013-03-03 07:38:22Z peter $
3
4/*
5  Copyright (C) 2012 Peter Johansson
6
7  This file is part of the yat library, http://dev.thep.lu.se/yat
8
9  The yat library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License as
11  published by the Free Software Foundation; either version 3 of the
12  License, or (at your option) any later version.
13
14  The yat library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  General Public License for more details.
18
19  You should have received a copy of the GNU General Public License
20  along with this program. If not, see <http://www.gnu.org/licenses/>.
21*/
22
23#include <config.h>
24
25#include "BamWriteIterator.h"
26
27#include "BamFile.h"
28#include "config_bam.h"
29
30#include YAT_SAM_HEADER
31
32#include <cassert>
33
34namespace theplu {
35namespace yat {
36namespace omic {
37
38  BamWriter::BamWriter(void)
39    : out_(NULL)
40  {}
41
42
43  BamWriter::BamWriter(OutBamFile& o)
44  : out_(&o)
45  {}
46
47
48  void BamWriter::operator()(const BamRead& b) const
49  {
50    assert(out_);
51    out_->write(b);
52  }
53
54
55  BamWriteIterator::BamWriteIterator(OutBamFile& out)
56    : boost::function_output_iterator<BamWriter>(BamWriter(out))
57  {}
58
59}}}
Note: See TracBrowser for help on using the repository browser.