NCBI C++ ToolKit
mask_writer_int.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: mask_writer_int.cpp 72378 2016-05-04 14:59:01Z camacho $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Author: Aleksandr Morgulis
27  *
28  * File Description:
29  * CMaskWriterInt class member and method definitions.
30  *
31  */
32 #include <ncbi_pch.hpp>
35 
36 
38 
39 //-------------------------------------------------------------------------
40 void CMaskWriterInt::Print( objects::CBioseq_Handle& bsh,
41  const TMaskList & mask,
42  bool parsed_id )
43 {
44  PrintId( bsh, parsed_id );
45  os << endl;
46  PrintMasks(os, mask);
47 }
48 
50 {
51  ITERATE(TMaskList, i, mask) {
52  os << i->first << " - " << i->second << "\n";
53  }
54 }
55 
56 
ncbi::TMaskedQueryRegions mask
virtual void Print(objects::CBioseq_Handle &bsh, const TMaskList &mask, bool parsed_id=false)
Send the masking data to the output stream.
static void PrintMasks(CNcbiOstream &os, const TMaskList &mask)
Print masks only.
virtual void PrintId(objects::CBioseq_Handle &bsh, bool parsed_id)
Output of the sequence id.
Definition: mask_writer.cpp:49
CNcbiOstream & os
the standard C++ ostream object
vector< TMaskedInterval > TMaskList
A type representing the total of masking information about a sequence.
Definition: mask_writer.hpp:85
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
Definition: ncbimisc.hpp:815
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
Definition: ncbistre.hpp:149
int i
Modified on Wed Sep 04 15:01:01 2024 by modify_doxy.py rev. 669887