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

Go to the SVN repository for this file.

1 /* $Id: embl_gather.cpp 36432 2008-01-03 12:44:46Z ludwigf $
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: Aaron Ucko, NCBI
27 *
28 * File Description:
29 *
30 *
31 * ===========================================================================
32 */
33 #include <ncbi_pch.hpp>
34 #include <corelib/ncbistd.hpp>
35 
55 
56 
59 
60 
62 {
63 }
64 
65 
67 {
68  const CFlatFileConfig& cfg = ctx.Config();
70 
71  item.Reset( new CStartSectionItem(ctx) );
72  ItemOS() << item;
73 
74  // The ID Line
75  item.Reset( new CLocusItem(ctx) );
76  ItemOS() << item;
77  // The AC Line
78  item.Reset( new CAccessionItem(ctx) );
79  ItemOS() << item;
80  // The SV Line
81  if ( ctx.IsNuc() ) {
82  item.Reset( new CVersionItem(ctx) );
83  ItemOS() << item;
84  }
85  // The DT Line
86  item.Reset( new CDateItem(ctx) );
87  ItemOS() << item;
88  // The DE Line
89  item.Reset( new CDeflineItem(ctx) );
90  ItemOS() << item;
91  // The KW Line
92  item.Reset( new CKeywordsItem(ctx) );
93  ItemOS() << item;
94  // The OS, OC, OG Lines
95  item.Reset( new CSourceItem(ctx) );
96  ItemOS() << item;
97  // The Reference (RN, RC, RP, RX, RG, RA, RT, RL) lines
100 
101  // Features
102  item.Reset( new CFeatHeaderItem(ctx) );
103  ItemOS() << item;
104  if ( !cfg.HideSourceFeatures() ) {
106  }
108  // Base count
109  if ( ctx.IsNuc() && (cfg.IsModeGBench() || cfg.IsModeDump()) ) {
110  item.Reset( new CBaseCountItem(ctx) );
111  ItemOS() << item;
112  }
113  // Sequenece
115 
116  item.Reset( new CEndSectionItem(ctx) );
117  ItemOS() << item
118 ;
119 }
120 
121 
CConstRef –.
Definition: ncbiobj.hpp:1192
CS_CONTEXT * ctx
Definition: t0006.c:12
#define END_SCOPE(ns)
End the previously defined scope.
Definition: ncbistl.hpp:73
const CFlatFileConfig & Config(void) const
Definition: context.hpp:647
CFlatItemOStream & ItemOS(void) const
void x_GatherSequence(void) const
void x_GatherComments(void) const
void Reset(void)
Reset reference object.
Definition: ncbiobj.hpp:1343
bool IsModeGBench(void) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:101
bool HideSourceFeatures(void) const
void x_GatherSourceFeatures(void) const
bool IsModeDump(void) const
void x_GatherFeatures(void) const
bool IsNuc(void) const
Definition: context.hpp:112
#define BEGIN_SCOPE(ns)
Define a new scope.
Definition: ncbistl.hpp:70
virtual void x_DoSingleSection(CBioseqContext &ctx) const
Definition: embl_gather.cpp:66
void x_GatherReferences(void) const
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:98
Modified on Mon Mar 27 16:05:01 2017 by modify_doxy.py rev. 506947