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

Go to the SVN repository for this file.

1 /* $Id: autodef_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: Colleen Bollin, based on a file by Andrey Yazhuk
27  *
28  * File Description:
29  *
30  */
31 
32 #include <ncbi_pch.hpp>
33 
36 
37 
40 
41 ///////////////////////////////////////////////////////////////////////////////
42 /// SAutodefParams
43 
45 {
46  Init();
47 }
48 
50 {
51  m_UseLabels = false;
52  m_LeaveParenthetical = true;
53  m_DoNotApplyToSp = false;
54  m_DoNotApplyToNr = false;
55  m_DoNotApplyToCf = false;
56  m_DoNotApplyToAff = false;
57  m_IncludeCountryText= false;
58  m_KeepAfterSemicolon= false;
59  m_MaxMods = 0;
61  m_NeedHIVRule = false;
64  m_ProductFlag = 0;
67  m_AltSpliceFlag = false;
68  m_SuppressLocusTags= false;
73  m_KeepExons= false;
74  m_KeepIntrons= false;
76  m_UseFakePromoters= false;
77  m_KeepLTRs= false;
78  m_Keep3UTRs= false;
79  m_Keep5UTRs= false;
80  m_UseNcRNAComment= false;
81  m_KeepMiscRecomb = false;
82  m_KeepRepeatRegion = false;
85 }
86 
87 void SAutodefParams::SetRegistryPath(const string& path)
88 {
89  m_RegPath = path; // store for later use
90 }
91 
92 static const char* kUseLabelsTag = "Use Labels";
93 static const char* kLeaveParentheticalTag = "Leave Parenthetical";
94 static const char* kDoNotApplyToSp = "Do Not Apply To Sp";
95 static const char* kIncludeCountryTextTag = "Include Country Text";
96 
97 
99 {
100  if( ! m_RegPath.empty()) {
102  CRegistryWriteView view = gui_reg.GetWriteView(m_RegPath);
103 
108  }
109 }
110 
111 
113 {
114  if( ! m_RegPath.empty()) {
116  CRegistryReadView view = gui_reg.GetReadView(m_RegPath);
117 
122  }
123 }
124 
static const char * kLeaveParentheticalTag
USING_SCOPE(objects)
static const char * kIncludeCountryTextTag
static const char * kDoNotApplyToSp
static const char * kUseLabelsTag
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
bool GetBool(const string &key, bool default_val=false) const
Definition: reg_view.cpp:241
void Set(const string &key, int val)
access a named key at this level, with no recursion
Definition: reg_view.cpp:533
bool m_SuppressMiscFeatSubfeatures
set< objects::CFeatListItem > m_SuppressedFeatures
virtual void SaveSettings() const
bool m_SuppressMobileElementSubfeatures
SAutodefParams()
SAutodefParams.
unsigned int m_MiscFeatRule
bool m_KeepRegulatoryFeatures
bool m_SuppressFeatureAltSplice
unsigned int m_ProductFlag
unsigned int m_NuclearCopyFlag
virtual void SetRegistryPath(const string &reg_path)
unsigned int m_FeatureListType
string m_CustomFeatureClause
virtual void LoadSettings()
bool m_SpecifyNuclearProduct
unsigned int m_HIVRule
unsigned int m_MaxMods
void clear()
Definition: set.hpp:153
#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 kEmptyStr
Definition: ncbistr.hpp:123
Modified on Sat Feb 24 07:46:55 2024 by modify_doxy.py rev. 669887