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

Go to the SVN repository for this file.

1 /* $Id: modify_structured_comment.hpp 42191 2019-01-10 16:36:16Z 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 _MODIFY_STRUCTURED_COMMENT_H_
30 #define _MODIFY_STRUCTURED_COMMENT_H_
31 #include <corelib/ncbistd.hpp>
32 #include <corelib/ncbiobj.hpp>
35 
38  class CUser_object;
39  class CComment_set;
40  class CComment_rule;
41  class CSeq_entry;
43 
45 {
46 public:
47  bool ApplyToUserObject(objects::CUser_object& user);
48  void ApplyToCSeq_entry (objects::CSeq_entry_Handle tse, const objects::CSeq_entry& se, CCmdComposite* composite);
49  void apply_to_seq_and_feat(objects::CSeq_entry_Handle tse, CCmdComposite* composite);
50  bool apply(objects::CSeq_entry_Handle tse, ICommandProccessor* cmdProcessor, const string& title);
51 private:
52  string m_Field;
53  wxString m_FindStr;
54 };
55 
57 {
58 public:
59  bool apply(objects::CSeq_entry_Handle tse, ICommandProccessor* cmdProcessor, const string& title);
60  void ApplyToCSeq_entry_user (objects::CSeq_entry_Handle tse, const objects::CSeq_entry& se, CCmdComposite* composite);
61  void reorder_comment_by_rule(const objects::CSeqdesc& user_desc, objects::CSeq_entry_Handle seh, const objects::CComment_rule* rule, CCmdComposite* composite);
62 private:
64 };
65 
66 
68 
69 #endif
70  // _MODIFY_STRUCTURED_COMMENT_H_
void apply_to_seq_and_feat(objects::CSeq_entry_Handle tse, CCmdComposite *composite)
bool ApplyToUserObject(objects::CUser_object &user)
bool apply(objects::CSeq_entry_Handle tse, ICommandProccessor *cmdProcessor, const string &title)
void ApplyToCSeq_entry(objects::CSeq_entry_Handle tse, const objects::CSeq_entry &se, CCmdComposite *composite)
void ApplyToCSeq_entry_user(objects::CSeq_entry_Handle tse, const objects::CSeq_entry &se, CCmdComposite *composite)
bool apply(objects::CSeq_entry_Handle tse, ICommandProccessor *cmdProcessor, const string &title)
CConstRef< objects::CComment_set > m_Rules
void reorder_comment_by_rule(const objects::CSeqdesc &user_desc, objects::CSeq_entry_Handle seh, const objects::CComment_rule *rule, CCmdComposite *composite)
Definition: Seq_entry.hpp:56
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 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
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
Modified on Thu May 02 14:32:49 2024 by modify_doxy.py rev. 669887