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

Go to the SVN repository for this file.

1 /* $Id: tree_builder_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, Vladimir Tereshkov
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 CTreeBuilderParams equality operator
59  if (!(m_DistanceMethod == data.m_DistanceMethod)) return false;
60  if (!(m_ConstructMethod == data.m_ConstructMethod)) return false;
61  if (!(m_LeafLabels == data.m_LeafLabels)) return false;
62 ////@end CTreeBuilderParams equality operator
63  return true;
64 }
66 {
67 ////@begin CTreeBuilderParams copy function
71 ////@end CTreeBuilderParams copy function
72  m_Object = data.m_Object;
73 }
75 {
76 ////@begin CTreeBuilderParams member initialisation
77 
78 ////@end CTreeBuilderParams member initialisation
79 }
80 
81 static const char* kDistTag = "kDistTag";
82 static const char* kConsTag = "kConsTag";
83 static const char* kLeafTag = "kLeafTag";
84 
85 /// IRegSettings
87 {
88  if (!m_RegPath.empty()) {
91 
95  }
96 }
97 
99 {
100  if (!m_RegPath.empty()) {
102  CRegistryReadView view = gui_reg.GetReadView(m_RegPath);
103 
107  }
108 }
109 
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
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
SConstScopedObject m_Object
void operator=(const CTreeBuilderParams &data)
virtual void SaveSettings() const
IRegSettings.
virtual void LoadSettings()
bool operator==(const CTreeBuilderParams &data) const
void Copy(const CTreeBuilderParams &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
static const char * kConsTag
static const char * kDistTag
static const char * kLeafTag
wxString ToWxString(const string &s)
Definition: wx_utils.hpp:173
string ToStdString(const wxString &s)
Definition: wx_utils.hpp:161
Modified on Wed Feb 21 09:56:08 2024 by modify_doxy.py rev. 669887