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

Go to the SVN repository for this file.

1  /* $Id: psl_reader.hpp 93579 2021-05-01 20:54:52Z stakhovv $
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
27  *
28  * File Description:
29  * BED file reader
30  *
31  */
32 
33 #ifndef OBJTOOLS_READERS___PSL_READER__HPP
34 #define OBJTOOLS_READERS___PSL_READER__HPP
35 
36 #include <corelib/ncbistd.hpp>
37 
40 
42 BEGIN_SCOPE(objects) // namespace ncbi::objects::
43 
44 class CPslData;
45 class CReaderListener;
47 
48 // ----------------------------------------------------------------------------
50 // ----------------------------------------------------------------------------
51  : public CReaderBase
52 {
53 public:
54  CPslReader(
56  const string& name = "",
57  const string& title = "",
58  SeqIdResolver seqResolver = CReadUtil::AsSeqId,
59  CReaderListener* pListener = nullptr);
60 
63  CReaderListener* pRL): CPslReader(flags, "", "", CReadUtil::AsSeqId, pRL) {};
64 
65  virtual ~CPslReader();
66 
67 protected:
68  void xProcessData(
69  const TReaderData&,
70  CSeq_annot&);
71 };
72 
75 
76 #endif // OBJTOOLS_READERS___PSL_READER__HPP
CPslReader(TReaderFlags flags, CReaderListener *pRL)
Definition: psl_reader.hpp:61
Common file reader utility functions.
Definition: read_util.hpp:47
static CRef< CSeq_id > AsSeqId(const string &rawId, long flags=0, bool localInts=true)
Convert a raw ID string to a Seq-id, based in given customization flags.
Definition: read_util.cpp:89
Defines and provides stubs for a general interface to a variety of file readers.
Definition: reader_base.hpp:63
virtual void xProcessData(const TReaderData &, CSeq_annot &)
long TReaderFlags
Definition: reader_base.hpp:84
CRef –.
Definition: ncbiobj.hpp:618
Include a standard set of the NCBI C++ Toolkit most basic headers.
static uch flags
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define END_SCOPE(ns)
End the previously defined scope.
Definition: ncbistl.hpp:75
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define BEGIN_SCOPE(ns)
Define a new scope.
Definition: ncbistl.hpp:72
#define NCBI_XOBJREAD_EXPORT
Definition: ncbi_export.h:1315
Modified on Tue Apr 23 07:38:40 2024 by modify_doxy.py rev. 669887