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

Go to the SVN repository for this file.

1 #ifndef PKG_SEQUENCE___WIGGLE_EXPORT_PARAMS__HPP
2 #define PKG_SEQUENCE___WIGGLE_EXPORT_PARAMS__HPP
3 
4 /* $Id: wiggle_export_params.hpp 37888 2017-02-28 15:44:33Z shkeda $
5 * ===========================================================================
6 *
7 * PUBLIC DOMAIN NOTICE
8 * National Center for Biotechnology Information
9 *
10 * This software/database is a "United States Government Work" under the
11 * terms of the United States Copyright Act. It was written as part of
12 * the author's official duties as a United States Government employee and
13 * thus cannot be copyrighted. This software/database is freely available
14 * to the public for use. The National Library of Medicine and the U.S.
15 * Government have not placed any restriction on its use or reproduction.
16 *
17 * Although all reasonable efforts have been taken to ensure the accuracy
18 * and reliability of the software and data, the NLM and the U.S.
19 * Government do not and cannot warrant the performance or results that
20 * may be obtained by using this software or data. The NLM and the U.S.
21 * Government disclaim all warranties, express or implied, including
22 * warranties of performance, merchantability or fitness for any particular
23 * purpose.
24 *
25 * Please cite the author in any work or product based on this material.
26 *
27 * ===========================================================================
28 *
29 * Authors: Vladislav Evgeniev
30 *
31 * File Description:
32 *
33 */
34 
35 #include <corelib/ncbistd.hpp>
36 
37 #include <gui/objutils/objects.hpp>
39 
40 // This header must (at least indirectly) precede any wxWidgets headers.
42 #include <wx/string.h>
43 
45 
46 /*!
47 * CWiggleExportParams - parameters of the Wiggle exporter.
48 */
49 
51 {
52  friend class CWiggleExportPage;
53 public:
54  /// Default constructor for CWiggleExportParams
56 
57  /// Copy constructor for CWiggleExportParams
59 
60  /// Destructor for CWiggleExportParams
62 
63  /// Assignment operator for CWiggleExportParams
64  void operator=(const CWiggleExportParams& data);
65 
66  /// Equality operator for CWiggleExportParams
67  bool operator==(const CWiggleExportParams& data) const;
68 
69  /// Copy function for CWiggleExportParams
70  void Copy(const CWiggleExportParams& data);
71 
72  /// Initialises member variables
73  void Init();
74 
75  /// IRegSettings
76  virtual void SetRegistryPath(const string& path) { m_RegPath = path; }
77  virtual void SaveSettings() const;
78  virtual void LoadSettings();
79 
80  void UpdateFileName(const wxString& fname);
81 
84 
85 ////@begin CWiggleExportParams member function declarations
86  wxString GetFileName() const { return m_FileName ; }
87  void SetFileName(wxString value) { m_FileName = value ; }
88 
89  wxString GetFrom() const { return m_From ; }
90  void SetFrom(wxString value) { m_From = value ; }
91 
92  wxString GetTo() const { return m_To ; }
93  void SetTo(wxString value) { m_To = value ; }
94 
95  int GetBinSize() const { return m_BinSize ; }
96  void SetBinSize(int value) { m_BinSize = value ; }
97 
98 ////@end CWiggleExportParams member function declarations
99 
100 ////@begin CWiggleExportParams member variables
101 private:
102  wxString m_FileName;
103  wxString m_From;
104  wxString m_To;
106 ////@end CWiggleExportParams member variables
107 
108 private:
109  string m_RegPath;
111 };
112 
114 
115 #endif // PKG_SEQUENCE___WIGGLE_EXPORT_PARAMS__HPP
CWiggleExportParams()
Default constructor for CWiggleExportParams.
void UpdateFileName(const wxString &fname)
virtual void SetRegistryPath(const string &path)
IRegSettings.
void operator=(const CWiggleExportParams &data)
Assignment operator for CWiggleExportParams.
void Copy(const CWiggleExportParams &data)
Copy function for CWiggleExportParams.
virtual void SaveSettings() const
IRegSettings.
TConstScopedObjects & SetObjects()
TConstScopedObjects m_Objects
void Init()
Initialises member variables.
~CWiggleExportParams()
Destructor for CWiggleExportParams.
wxString GetFileName() const
const TConstScopedObjects & GetObjects()
bool operator==(const CWiggleExportParams &data) const
Equality operator for CWiggleExportParams.
void SetFrom(wxString value)
void SetFileName(wxString value)
void SetTo(wxString value)
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
Include a standard set of the NCBI C++ Toolkit most basic headers.
Workaround for wxWidgets header errors in certain configurations; MUST be included (at least indirect...
char data[12]
Definition: iconv.c:80
vector< SConstScopedObject > TConstScopedObjects
Definition: objects.hpp:65
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Fri Sep 20 14:57:24 2024 by modify_doxy.py rev. 669887