NCBI C++ ToolKit
find_overlap_params.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: find_overlap_params.cpp 39666 2017-10-25 16:01:13Z katargir $
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  * Authors: Roman Katargin
27  *
28  * File Description:
29  *
30  */
31 
32 #include <ncbi_pch.hpp>
33 
37 
39 
41 {
42  Init();
43 }
45 {
46  Init();
47  Copy(data);
48 }
50 {
51 }
53 {
54  Copy(data);
55 }
57 {
58 ////@begin CFindOverlapParams equality operator
59  if (!(m_BlastParams == data.m_BlastParams)) return false;
60  if (!(m_FilterQty == data.m_FilterQty)) return false;
61  if (!(m_MaxSlop == data.m_MaxSlop)) return false;
62 ////@end CFindOverlapParams equality operator
63  return true;
64 }
66 {
67 ////@begin CFindOverlapParams copy function
68  m_BlastParams = data.m_BlastParams;
69  m_FilterQty = data.m_FilterQty;
70  m_MaxSlop = data.m_MaxSlop;
71 ////@end CFindOverlapParams copy function
72  m_Seq1 = data.m_Seq1;
73  m_Seq2 = data.m_Seq2;
74 }
76 {
77 ////@begin CFindOverlapParams member initialisation
78  m_BlastParams = wxT("-word_size 32 -evalue 0.0001 -dust yes -soft_masking true -best_hit_overhang 0.1 -best_hit_score_edge 0.1");
79  m_FilterQty = 4;
80  m_MaxSlop = wxT("10");
81 ////@end CFindOverlapParams member initialisation
82 }
83 
84 static const char* kBlastParamsTag = "BlastParams";
85 static const char* kMaxSlopTag = "MaxSlop";
86 static const char* kFilterTag = "FilterQty";
87 
88 /// IRegSettings
90 {
91  if (!m_RegPath.empty()) {
94 
97  view.Set(kFilterTag, m_FilterQty );
98  }
99 }
100 
102 {
103  if (!m_RegPath.empty()) {
105  CRegistryReadView view = gui_reg.GetReadView(m_RegPath);
106 
112  }
113 }
114 
CRegistryWriteView GetWriteView(const string &section)
get a read-write view at a particular level.
Definition: registry.cpp:462
static CGuiRegistry & GetInstance()
access the application-wide singleton
Definition: registry.cpp:400
CRegistryReadView GetReadView(const string &section) const
get a read-only view at a particular level.
Definition: registry.cpp:428
class CRegistryReadView provides a nested hierarchical view at a particular key.
Definition: reg_view.hpp:58
int GetInt(const string &key, int default_val=0) const
access a named key at this level, with no recursion
Definition: reg_view.cpp:230
string GetString(const string &key, const string &default_val=kEmptyStr) const
Definition: reg_view.cpp:246
void Set(const string &key, int val)
access a named key at this level, with no recursion
Definition: reg_view.cpp:533
static const char * kBlastParamsTag
static const char * kMaxSlopTag
static const char * kFilterTag
char data[12]
Definition: iconv.c:80
void operator=(const CFindOverlapParams &data)
SConstScopedObject m_Seq1
SConstScopedObject m_Seq2
virtual void SaveSettings() const
IRegSettings.
bool operator==(const CFindOverlapParams &data) const
void Copy(const CFindOverlapParams &data)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define wxT(x)
Definition: muParser.cpp:41
wxString ToWxString(const string &s)
Definition: wx_utils.hpp:173
string ToStdString(const wxString &s)
Definition: wx_utils.hpp:161
Modified on Mon May 13 04:32:15 2024 by modify_doxy.py rev. 669887