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

Go to the SVN repository for this file.

1 /* $Id: editing_action_biosource.hpp 45101 2020-05-29 20:53:24Z asztalos $
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: Igor Filippov
27  */
28 
29 #ifndef _EDITING_ACTION_BIOSOURCE_H_
30 #define _EDITING_ACTION_BIOSOURCE_H_
31 
32 #include <corelib/ncbistd.hpp>
45 
48 
50 
52 {
53 public:
54  IEditingActionBiosource(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature, const string &name);
55  void SetFeat(CSeq_feat_Handle fh);
56  void SetDesc(const CSeqdesc* desc);
57 protected:
58  virtual void Find(EActionType action);
59  virtual void FindRelated(EActionType action);
60  virtual void Modify(EActionType action);
61  virtual void SwapContext(IEditingAction* source);
62  virtual bool SameObject();
63 
67  const CSeqdesc* m_Desc;
72 };
73 
75 {
76 public:
77  CEditingActionBiosourceTaxname(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature);
78 protected:
79  virtual bool IsSetValue(void);
80  virtual void SetValue(const string &value);
81  virtual string GetValue(void);
82  virtual void ResetValue(void);
83 };
84 
86 {
87 public:
88  CEditingActionBiosourceTaxnameAfterBinomial(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature);
89 protected:
90  virtual bool IsSetValue(void);
91  virtual void SetValue(const string &value);
92  virtual string GetValue(void);
93  virtual void ResetValue(void);
94 private:
95  string x_GetTextAfterNomial(const string& taxname) const;
96 };
97 
99 {
100 public:
101  CEditingActionBiosourceCommonName(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature);
102 protected:
103  virtual bool IsSetValue(void);
104  virtual void SetValue(const string &value);
105  virtual string GetValue(void);
106  virtual void ResetValue(void);
107 };
108 
110 {
111 public:
112  CEditingActionBiosourceDivision(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature);
113 protected:
114  virtual bool IsSetValue(void);
115  virtual void SetValue(const string &value);
116  virtual string GetValue(void);
117  virtual void ResetValue(void);
118 };
119 
121 {
122 public:
123  CEditingActionBiosourceLineage(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature);
124 protected:
125  virtual bool IsSetValue(void);
126  virtual void SetValue(const string &value);
127  virtual string GetValue(void);
128  virtual void ResetValue(void);
129 };
130 
132 {
133 public:
134  CEditingActionBiosourceLocation(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature);
135 protected:
136  virtual bool IsSetValue(void);
137  virtual void SetValue(const string &value);
138  virtual string GetValue(void);
139  virtual void ResetValue(void);
140 };
141 
143 {
144 public:
145  CEditingActionBiosourceOrigin(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature);
146 protected:
147  virtual bool IsSetValue(void);
148  virtual void SetValue(const string &value);
149  virtual string GetValue(void);
150  virtual void ResetValue(void);
151 };
152 
154 {
155 public:
156  CEditingActionBiosourcePrimers(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature, bool is_fwd, bool is_rev, bool is_name, bool is_seq);
157 protected:
158  virtual void Modify(EActionType action);
159  virtual bool IsSetValue(void);
160  virtual void SetValue(const string &value);
161  virtual string GetValue(void);
162  virtual void ResetValue(void);
163 private:
165  string *m_val;
168 };
169 
170 
172 {
173 public:
174  CEditingActionBiosourceOrgMod(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature, const COrgMod::ESubtype subtype, const string &name = "CEditingActionBiosourceOrgMod");
175 protected:
176  virtual void Modify(EActionType action);
177  virtual bool IsSetValue(void);
178  virtual void SetValue(const string &value);
179  virtual string GetValue(void);
180  virtual void ResetValue(void);
181 protected:
184  bool m_erase;
185 };
186 
188 {
189 public:
190  CEditingActionBiosourceSubSource(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature, const CSubSource::ESubtype subtype, const string &name = "CEditingActionBiosourceSubSource");
191 protected:
192  virtual void Modify(EActionType action);
193  virtual bool IsSetValue(void);
194  virtual void SetValue(const string &value);
195  virtual string GetValue(void);
196  virtual void ResetValue(void);
197 protected:
200  bool m_erase;
201 };
202 
204 {
205 public:
206  CEditingActionBiosourceAllNotes(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature);
207 protected:
208  virtual void Modify(EActionType action);
209  virtual bool IsSetValue(void);
210  virtual void SetValue(const string &value);
211  virtual string GetValue(void);
212  virtual void ResetValue(void);
213 protected:
216  bool m_erase;
217 };
218 
220 {
221 public:
222  CEditingActionBiosourceStructuredVoucher(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature, const COrgMod::ESubtype subtype, const int voucher_type);
224  {
228  };
229 protected:
230  virtual bool IsSetValue(void);
231  virtual void SetValue(const string &value);
232  virtual string GetValue(void);
233  virtual void ResetValue(void);
234 
235 private:
236  void Parse(const string &str, string &inst, string &coll, string &id);
238 };
239 
241 {
242 public:
243  CEditingActionBiosourceDbxref(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature);
244 protected:
245  virtual void Modify(EActionType action);
246  virtual bool IsSetValue(void);
247  virtual void SetValue(const string &value);
248  virtual string GetValue(void);
249  virtual void ResetValue(void);
250 private:
252  bool m_erase;
253 };
254 
255 
257 
259 
260 #endif
261  // _EDITING_ACTION_BIOSOURCE_H_
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
virtual void Modify(EActionType action)
CEditingActionBiosourceAllNotes(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature)
virtual void SetValue(const string &value)
virtual void SetValue(const string &value)
CEditingActionBiosourceCommonName(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature)
CEditingActionBiosourceDbxref(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature)
virtual void SetValue(const string &value)
virtual void Modify(EActionType action)
virtual void SetValue(const string &value)
CEditingActionBiosourceDivision(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature)
CEditingActionBiosourceLineage(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature)
virtual void SetValue(const string &value)
virtual void SetValue(const string &value)
CEditingActionBiosourceLocation(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature)
CEditingActionBiosourceOrgMod(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature, const COrgMod::ESubtype subtype, const string &name="CEditingActionBiosourceOrgMod")
virtual void Modify(EActionType action)
virtual void SetValue(const string &value)
CEditingActionBiosourceOrigin(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature)
virtual void SetValue(const string &value)
CEditingActionBiosourcePrimers(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature, bool is_fwd, bool is_rev, bool is_name, bool is_seq)
virtual void SetValue(const string &value)
virtual void Modify(EActionType action)
void Parse(const string &str, string &inst, string &coll, string &id)
CEditingActionBiosourceStructuredVoucher(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature, const COrgMod::ESubtype subtype, const int voucher_type)
virtual void Modify(EActionType action)
virtual void SetValue(const string &value)
CEditingActionBiosourceSubSource(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature, const CSubSource::ESubtype subtype, const string &name="CEditingActionBiosourceSubSource")
string x_GetTextAfterNomial(const string &taxname) const
CEditingActionBiosourceTaxnameAfterBinomial(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature)
virtual void SetValue(const string &value)
CEditingActionBiosourceTaxname(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature)
CSeq_entry_Handle –.
CSeq_feat_Handle –.
virtual void Find(EActionType action)
virtual void Modify(EActionType action)
virtual void SwapContext(IEditingAction *source)
virtual void FindRelated(EActionType action)
void SetFeat(CSeq_feat_Handle fh)
void SetDesc(const CSeqdesc *desc)
IEditingActionBiosource(CSeq_entry_Handle seh, bool is_descriptor, bool is_feature, const string &name)
Include a standard set of the NCBI C++ Toolkit most basic headers.
USING_SCOPE(objects)
IEditingActionBiosource * CreateActionBiosource(CSeq_entry_Handle seh, string field)
static const char * str(char *buf, int n)
Definition: stats.c:84
#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
const CharType(& source)[N]
Definition: pointer.h:1149
Modified on Wed May 29 18:37:45 2024 by modify_doxy.py rev. 669887