NCBI C++ ToolKit
feat_importer.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: feat_importer.hpp 97369 2022-07-11 14:49:27Z 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: Frank Ludwig, NCBI
27 *
28 * File Description:
29 * Test application for the CFormatGuess component
30 *
31 * ===========================================================================
32 */
33 
34 #ifndef FEAT_IMPORTER__HPP
35 #define FEAT_IMPORTER__HPP
36 
37 #include <corelib/ncbifile.hpp>
39 
42 
44 BEGIN_objects_SCOPE
45 
46 class CFeatLineReader;
47 class CFeatImportData;
49 
50 // ============================================================================
52 // ============================================================================
53 {
54 public:
55  enum FLAGS {
56  fNormal = 0,
57  fAllIdsAsLocal = (1 << 0),
58  fNumericIdsAsLocal = (1 << 2),
59  fReportProgress = (1 << 3),
60  };
61 
62  static CFeatImporter*
63  Get(
64  const std::string&,
65  unsigned int,
67 
68  virtual ~CFeatImporter() {};
69 
70 public:
71  void
72  ReadSeqAnnot(
73  CNcbiIstream&,
74  CSeq_annot&);
75 
76  virtual void
79  CSeq_annot&) =0;
80 
81  virtual void
83  CIdResolver*) =0;
84 };
85 
86 END_objects_SCOPE
88 
89 #endif
virtual void SetIdResolver(CIdResolver *)=0
virtual ~CFeatImporter()
virtual void ReadSeqAnnot(CStreamLineReader &, CSeq_annot &)=0
Simple implementation of ILineReader for i(o)streams.
string
Definition: cgiapp.hpp:687
#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::istream CNcbiIstream
Portable alias for istream.
Definition: ncbistre.hpp:146
#define NCBI_XOBJIMPORT_EXPORT
Definition: ncbi_export.h:1323
const TYPE & Get(const CNamedParameterList *param)
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
Modified on Sun Jul 21 04:16:38 2024 by modify_doxy.py rev. 669887