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

Go to the SVN repository for this file.

1 /* $Id: gff_export_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 
29 
30 #include <ncbi_pch.hpp>
31 
33 
36 
38 
39 /*!
40  * CGffExportParams type definition
41  */
42 
43 /*!
44  * Default constructor for CGffExportParams
45  */
46 
48 {
49  Init();
50 }
51 
52 /*!
53  * Copy constructor for CGffExportParams
54  */
55 
57 {
58  Init();
59  Copy(data);
60 }
61 
62 /*!
63  * Destructor for CGffExportParams
64  */
65 
67 {
68 }
69 
70 /*!
71  * Assignment operator for CGffExportParams
72  */
73 
75 {
76  Copy(data);
77 }
78 
79 /*!
80  * Equality operator for CGffExportParams
81  */
82 
84 {
85 ////@begin CGffExportParams equality operator
86  if (!(m_FeatureDepth == data.m_FeatureDepth)) return false;
87  if (!(m_ExactFlevel == data.m_ExactFlevel)) return false;
88  if (!(m_FileName == data.m_FileName)) return false;
89  if (!(m_ExtraQuals == data.m_ExtraQuals)) return false;
90 ////@end CGffExportParams equality operator
91  return true;
92 }
93 
94 /*!
95  * Copy function for CGffExportParams
96  */
97 
99 {
100 ////@begin CGffExportParams copy function
101  m_FeatureDepth = data.m_FeatureDepth;
102  m_ExactFlevel = data.m_ExactFlevel;
103  m_FileName = data.m_FileName;
104  m_ExtraQuals = data.m_ExtraQuals;
105 ////@end CGffExportParams copy function
106 
107  m_Objects = data.m_Objects;
108 }
109 
110 /*!
111  * Member initialisation for CGffExportParams
112  */
113 
115 {
116 ////@begin CGffExportParams member initialisation
117  m_FeatureDepth = wxT("1");
118  m_ExactFlevel = false;
119  m_ExtraQuals = false;
120 ////@end CGffExportParams member initialisation
121 }
122 
123 static const char* kFeatureDepth = "FeatureDepth";
124 static const char* kExactFlevel = "ExactFlevel";
125 static const char* kFileName = "FileName";
126 static const char* kExtraQuals = "ExtraQuals";
127 
128 /// IRegSettings
130 {
131  if (!m_RegPath.empty()) {
133  CRegistryWriteView view = gui_reg.GetWriteView(m_RegPath);
134 
139  }
140 }
141 
143 {
144  if (!m_RegPath.empty()) {
146  CRegistryReadView view = gui_reg.GetReadView(m_RegPath);
147 
153  m_FileName =
155  }
156 }
157 
void operator=(const CGffExportParams &data)
Assignment operator for CGffExportParams.
void Init()
Initialises member variables.
TConstScopedObjects m_Objects
virtual void LoadSettings()
~CGffExportParams()
Destructor for CGffExportParams.
virtual void SaveSettings() const
IRegSettings.
bool operator==(const CGffExportParams &data) const
Equality operator for CGffExportParams.
void Copy(const CGffExportParams &data)
Copy function for CGffExportParams.
CGffExportParams()
Default constructor for CGffExportParams.
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
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
char data[12]
Definition: iconv.c:80
static const char * kExactFlevel
static const char * kFileName
static const char * kFeatureDepth
static const char * kExtraQuals
#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
wxString FnToWxString(const string &s)
Definition: wx_utils.cpp:253
string FnToStdString(const wxString &s)
Definition: wx_utils.cpp:268
Modified on Mon May 13 04:32:46 2024 by modify_doxy.py rev. 669887