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

Go to the SVN repository for this file.

1 /* $Id: remove_unverified.hpp 47154 2022-09-26 17:58:36Z asztalos $
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  *
27  * Authors: Igor Filippov
28  */
29 #ifndef _REMOVE_UNVERIFIED_H_
30 #define _REMOVE_UNVERIFIED_H_
31 #include <corelib/ncbistd.hpp>
32 #include <corelib/ncbiobj.hpp>
37 #include <objmgr/feat_ci.hpp>
38 
40 
42 {
43 public:
44  virtual bool ApplyToUserObject(const objects::CUser_object& user, objects::CSeq_entry_Handle seh);
45  virtual bool ApplyToUserObject(const objects::CUser_object& user, objects::CSeq_feat_Handle fh) { return false; }
46  void ApplyToCSeq_entry (objects::CSeq_entry_Handle tse, const objects::CSeq_entry& se, CCmdComposite* composite);
47  void apply_to_seq_and_feat(objects::CSeq_entry_Handle tse, CCmdComposite* composite);
48  bool apply(objects::CSeq_entry_Handle tse, ICommandProccessor* cmdProcessor, string title);
49 };
50 
52 {
53 public:
54  CRef<CCmdComposite> Apply(objects::CSeq_entry_Handle tse);
55 private:
56  void x_ApplyToSeq_entry(objects::CSeq_entry_Handle tse, const objects::CSeq_entry& se, CCmdComposite* composite);
57  bool x_ApplyToUserObject(const objects::CUser_object& user, objects::CSeq_entry_Handle seh);
58 };
59 
61 
62 #endif
63  // _REMOVE_UNVERIFIED_H_
bool x_ApplyToUserObject(const objects::CUser_object &user, objects::CSeq_entry_Handle seh)
void x_ApplyToSeq_entry(objects::CSeq_entry_Handle tse, const objects::CSeq_entry &se, CCmdComposite *composite)
CRef< CCmdComposite > Apply(objects::CSeq_entry_Handle tse)
virtual bool ApplyToUserObject(const objects::CUser_object &user, objects::CSeq_feat_Handle fh)
bool apply(objects::CSeq_entry_Handle tse, ICommandProccessor *cmdProcessor, string title)
void ApplyToCSeq_entry(objects::CSeq_entry_Handle tse, const objects::CSeq_entry &se, CCmdComposite *composite)
void apply_to_seq_and_feat(objects::CSeq_entry_Handle tse, CCmdComposite *composite)
virtual bool ApplyToUserObject(const objects::CUser_object &user, objects::CSeq_entry_Handle seh)
Undo/Redo interface for editing operations.
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
Modified on Mon Apr 22 04:03:01 2024 by modify_doxy.py rev. 669887