📄 flat_file_generator.hpp
字号:
/* * =========================================================================== * PRODUCTION $Log: flat_file_generator.hpp,v $ * PRODUCTION Revision 1000.1 2004/06/01 19:38:34 gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.9 * PRODUCTION * =========================================================================== */#ifndef OBJTOOLS_FORMAT___FLAT_FILE_GENERATOR__HPP#define OBJTOOLS_FORMAT___FLAT_FILE_GENERATOR__HPP/* $Id: flat_file_generator.hpp,v 1000.1 2004/06/01 19:38:34 gouriano Exp $* ===========================================================================** PUBLIC DOMAIN NOTICE* National Center for Biotechnology Information** This software/database is a "United States Government Work" under the* terms of the United States Copyright Act. It was written as part of* the author's official duties as a United States Government employee and* thus cannot be copyrighted. This software/database is freely available* to the public for use. The National Library of Medicine and the U.S.* Government have not placed any restriction on its use or reproduction.** Although all reasonable efforts have been taken to ensure the accuracy* and reliability of the software and data, the NLM and the U.S.* Government do not and cannot warrant the performance or results that* may be obtained by using this software or data. The NLM and the U.S.* Government disclaim all warranties, express or implied, including* warranties of performance, merchantability or fitness for any particular* purpose.** Please cite the author in any work or product based on this material.** ===========================================================================** Author: Mati Shomrat** File Description:* User interface for generating flat file reports from ASN.1* */#include <corelib/ncbistd.hpp>#include <corelib/ncbiobj.hpp>#include <objtools/format/flat_file_config.hpp>#include <objtools/format/context.hpp>BEGIN_NCBI_SCOPEBEGIN_SCOPE(objects)class IFlatTextOStream;class CFlatItemOStream;class CSeq_submit;class CSeq_entry;class CSeq_loc;class CSeq_entry_Handle;class CSeq_id;class NCBI_FORMAT_EXPORT CFlatFileGenerator : public CObject{public: // types typedef CRange<TSeqPos> TRange; // constructors CFlatFileGenerator(const CFlatFileConfig& cfg); CFlatFileGenerator( CFlatFileConfig::TFormat format = CFlatFileConfig::eFormat_GenBank, CFlatFileConfig::TMode mode = CFlatFileConfig::eMode_GBench, CFlatFileConfig::TStyle style = CFlatFileConfig::eStyle_Normal, CFlatFileConfig::TFlags flags = 0, CFlatFileConfig::TView view = CFlatFileConfig::fViewNucleotides); // destructor ~CFlatFileGenerator(void); // Supply an annotation selector to be used in feature gathering. SAnnotSelector& SetAnnotSelector(void); void Generate(const CSeq_submit& submit, CScope& scope, CNcbiOstream& os); void Generate(const CSeq_loc& loc, CScope& scope, CNcbiOstream& os); void Generate(const CSeq_entry_Handle& entry, CNcbiOstream& os); void Generate(const CSeq_id& id, const TRange& range, ENa_strand strand, CScope& scope, CNcbiOstream& os); // NB: the item ostream should be allocated on the heap! void Generate(const CSeq_entry_Handle& entry, CFlatItemOStream& item_os); void Generate(const CSeq_submit& submit, CScope& scope, CFlatItemOStream& item_os); void Generate(const CSeq_loc& loc, CScope& scope, CFlatItemOStream& item_os); void Generate(const CSeq_id& id, const TRange& range, ENa_strand strand, CScope& scope, CFlatItemOStream& item_os); void Reset(void);private: CRef<CFlatFileContext> m_Ctx; // forbidden CFlatFileGenerator(const CFlatFileGenerator&); CFlatFileGenerator& operator=(const CFlatFileGenerator&);};END_SCOPE(objects)END_NCBI_SCOPE/** ===========================================================================** $Log: flat_file_generator.hpp,v $* Revision 1000.1 2004/06/01 19:38:34 gouriano* PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.9** Revision 1.9 2004/05/19 14:46:24 shomrat* + Reset()** Revision 1.8 2004/04/22 15:47:30 shomrat* API changes** Revision 1.7 2004/03/31 17:13:38 shomrat* name changes** Revision 1.6 2004/03/25 20:30:53 shomrat* Use Handles** Revision 1.5 2004/02/11 22:46:01 shomrat* enumerations moved to flat_file_flags.hpp** Revision 1.4 2004/02/11 16:40:33 shomrat* added HideCDDFeats flag** Revision 1.3 2004/01/15 16:57:08 dicuccio* Added private unimplemented copy ctor to satisfy MSVC** Revision 1.2 2004/01/14 15:52:40 shomrat* Added GFF format** Revision 1.1 2003/12/17 19:51:49 shomrat* Initial revision (adapted from flat lib)*** ===========================================================================*/#endif /* OBJTOOLS_FORMAT___FLAT_FILE_GENERATOR__HPP */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -