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

Go to the SVN repository for this file.

1 /* $Id$
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  */
27 
28 /// @file Apply_feature_action_.hpp
29 /// Data storage class.
30 ///
31 /// This file was generated by application DATATOOL
32 /// using the following specifications:
33 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/macro/macro.asn">macro.asn</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/macro/macro.def">macro.def</a>
36 ///
37 /// ATTENTION:
38 /// Don't edit or commit this file into CVS as this file will
39 /// be overridden (by DATATOOL) without warning!
40 
41 #ifndef OBJECTS_MACRO_APPLY_FEATURE_ACTION_BASE_HPP
42 #define OBJECTS_MACRO_APPLY_FEATURE_ACTION_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
49 
51 
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
55 #endif
56 BEGIN_objects_SCOPE // namespace ncbi::objects::
57 
58 
59 // forward declarations
61 class CLocation_choice;
64 
65 
66 // generated classes
67 
68 
69 /** @addtogroup dataspec_NCBI_Macro
70  *
71  * @{
72  */
73 
74 /////////////////////////////////////////////////////////////////////////////
75 ///
76 /// CApply_feature_action_Base --
77 ///
78 
80 {
82 public:
83  // constructor
85  // destructor
86  virtual ~CApply_feature_action_Base(void);
87 
88  // type info
90 
91  // types
93  typedef bool TPartial5;
94  typedef bool TPartial3;
95  typedef bool TPlus_strand;
98  typedef bool TAdd_redundant;
99  typedef bool TAdd_mrna;
100  typedef bool TApply_to_parts;
101  typedef int TOnly_seg_num;
104 
105  // member index
106  enum class E_memberIndex {
107  e__allMandatory = 0,
108  e_type,
109  e_partial5,
110  e_partial3,
112  e_location,
113  e_seq_list,
115  e_add_mrna,
118  e_fields,
120  };
122 
123  // getters
124  // setters
125 
126  /// Check if a value has been assigned to Type data member.
127  ///
128  /// Data member Type is mandatory;
129  /// its type is defined as 'typedef EMacro_feature_type TType'
130  /// @return
131  /// - true, if a value has been assigned.
132  /// - false, otherwise.
133  bool IsSetType(void) const;
134 
135  /// Check if it is safe to call GetType method.
136  ///
137  /// @return
138  /// - true, if the data member is getatable.
139  /// - false, otherwise.
140  bool CanGetType(void) const;
141 
142  /// Reset Type data member.
143  void ResetType(void);
144 
145  /// Get the Type member data.
146  ///
147  /// @return
148  /// Copy of the member data.
149  TType GetType(void) const;
150 
151  /// Assign a value to Type data member.
152  ///
153  /// @param value
154  /// Value to assign
155  void SetType(TType value);
156 
157  /// Assign a value to Type data member.
158  ///
159  /// @return
160  /// Reference to the data value.
161  TType& SetType(void);
162 
163  /// Check if a value has been assigned to Partial5 data member.
164  ///
165  /// Data member Partial5 is optional with default false;
166  /// its type is defined as 'typedef bool TPartial5'
167  /// @return
168  /// - true, if a value has been assigned.
169  /// - false, otherwise.
170  bool IsSetPartial5(void) const;
171 
172  /// Check if it is safe to call GetPartial5 method.
173  ///
174  /// @return
175  /// - true, if the data member is getatable.
176  /// - false, otherwise.
177  bool CanGetPartial5(void) const;
178 
179  /// Reset Partial5 data member.
180  void ResetPartial5(void);
181 
182  /// Assign default value to Partial5 data member.
183  void SetDefaultPartial5(void);
184 
185  /// Get the Partial5 member data.
186  ///
187  /// @return
188  /// Copy of the member data.
189  TPartial5 GetPartial5(void) const;
190 
191  /// Assign a value to Partial5 data member.
192  ///
193  /// @param value
194  /// Value to assign
196 
197  /// Assign a value to Partial5 data member.
198  ///
199  /// @return
200  /// Reference to the data value.
201  TPartial5& SetPartial5(void);
202 
203  /// Check if a value has been assigned to Partial3 data member.
204  ///
205  /// Data member Partial3 is optional with default false;
206  /// its type is defined as 'typedef bool TPartial3'
207  /// @return
208  /// - true, if a value has been assigned.
209  /// - false, otherwise.
210  bool IsSetPartial3(void) const;
211 
212  /// Check if it is safe to call GetPartial3 method.
213  ///
214  /// @return
215  /// - true, if the data member is getatable.
216  /// - false, otherwise.
217  bool CanGetPartial3(void) const;
218 
219  /// Reset Partial3 data member.
220  void ResetPartial3(void);
221 
222  /// Assign default value to Partial3 data member.
223  void SetDefaultPartial3(void);
224 
225  /// Get the Partial3 member data.
226  ///
227  /// @return
228  /// Copy of the member data.
229  TPartial3 GetPartial3(void) const;
230 
231  /// Assign a value to Partial3 data member.
232  ///
233  /// @param value
234  /// Value to assign
236 
237  /// Assign a value to Partial3 data member.
238  ///
239  /// @return
240  /// Reference to the data value.
241  TPartial3& SetPartial3(void);
242 
243  /// Check if a value has been assigned to Plus_strand data member.
244  ///
245  /// Data member Plus_strand is optional with default true;
246  /// its type is defined as 'typedef bool TPlus_strand'
247  /// @return
248  /// - true, if a value has been assigned.
249  /// - false, otherwise.
250  bool IsSetPlus_strand(void) const;
251 
252  /// Check if it is safe to call GetPlus_strand method.
253  ///
254  /// @return
255  /// - true, if the data member is getatable.
256  /// - false, otherwise.
257  bool CanGetPlus_strand(void) const;
258 
259  /// Reset Plus_strand data member.
260  void ResetPlus_strand(void);
261 
262  /// Assign default value to Plus_strand data member.
263  void SetDefaultPlus_strand(void);
264 
265  /// Get the Plus_strand member data.
266  ///
267  /// @return
268  /// Copy of the member data.
269  TPlus_strand GetPlus_strand(void) const;
270 
271  /// Assign a value to Plus_strand data member.
272  ///
273  /// @param value
274  /// Value to assign
276 
277  /// Assign a value to Plus_strand data member.
278  ///
279  /// @return
280  /// Reference to the data value.
282 
283  /// Check if a value has been assigned to Location data member.
284  ///
285  /// Data member Location is mandatory;
286  /// its type is defined as 'typedef CLocation_choice TLocation'
287  /// @return
288  /// - true, if a value has been assigned.
289  /// - false, otherwise.
290  bool IsSetLocation(void) const;
291 
292  /// Check if it is safe to call GetLocation method.
293  ///
294  /// @return
295  /// - true, if the data member is getatable.
296  /// - false, otherwise.
297  bool CanGetLocation(void) const;
298 
299  /// Reset Location data member.
300  void ResetLocation(void);
301 
302  /// Get the Location member data.
303  ///
304  /// @return
305  /// Reference to the member data.
306  const TLocation& GetLocation(void) const;
307 
308  /// Assign a value to Location data member.
309  ///
310  /// @param value
311  /// Reference to value.
312  void SetLocation(TLocation& value);
313 
314  /// Assign a value to Location data member.
315  ///
316  /// @return
317  /// Reference to the data value.
318  TLocation& SetLocation(void);
319 
320  /// Check if a value has been assigned to Seq_list data member.
321  ///
322  /// Data member Seq_list is mandatory;
323  /// its type is defined as 'typedef CSequence_list_choice TSeq_list'
324  /// @return
325  /// - true, if a value has been assigned.
326  /// - false, otherwise.
327  bool IsSetSeq_list(void) const;
328 
329  /// Check if it is safe to call GetSeq_list method.
330  ///
331  /// @return
332  /// - true, if the data member is getatable.
333  /// - false, otherwise.
334  bool CanGetSeq_list(void) const;
335 
336  /// Reset Seq_list data member.
337  void ResetSeq_list(void);
338 
339  /// Get the Seq_list member data.
340  ///
341  /// @return
342  /// Reference to the member data.
343  const TSeq_list& GetSeq_list(void) const;
344 
345  /// Assign a value to Seq_list data member.
346  ///
347  /// @param value
348  /// Reference to value.
349  void SetSeq_list(TSeq_list& value);
350 
351  /// Assign a value to Seq_list data member.
352  ///
353  /// @return
354  /// Reference to the data value.
355  TSeq_list& SetSeq_list(void);
356 
357  /// Check if a value has been assigned to Add_redundant data member.
358  ///
359  /// Data member Add_redundant is optional with default true;
360  /// its type is defined as 'typedef bool TAdd_redundant'
361  /// @return
362  /// - true, if a value has been assigned.
363  /// - false, otherwise.
364  bool IsSetAdd_redundant(void) const;
365 
366  /// Check if it is safe to call GetAdd_redundant method.
367  ///
368  /// @return
369  /// - true, if the data member is getatable.
370  /// - false, otherwise.
371  bool CanGetAdd_redundant(void) const;
372 
373  /// Reset Add_redundant data member.
374  void ResetAdd_redundant(void);
375 
376  /// Assign default value to Add_redundant data member.
377  void SetDefaultAdd_redundant(void);
378 
379  /// Get the Add_redundant member data.
380  ///
381  /// @return
382  /// Copy of the member data.
383  TAdd_redundant GetAdd_redundant(void) const;
384 
385  /// Assign a value to Add_redundant data member.
386  ///
387  /// @param value
388  /// Value to assign
390 
391  /// Assign a value to Add_redundant data member.
392  ///
393  /// @return
394  /// Reference to the data value.
396 
397  /// Check if a value has been assigned to Add_mrna data member.
398  ///
399  /// Data member Add_mrna is optional with default false;
400  /// its type is defined as 'typedef bool TAdd_mrna'
401  /// @return
402  /// - true, if a value has been assigned.
403  /// - false, otherwise.
404  bool IsSetAdd_mrna(void) const;
405 
406  /// Check if it is safe to call GetAdd_mrna method.
407  ///
408  /// @return
409  /// - true, if the data member is getatable.
410  /// - false, otherwise.
411  bool CanGetAdd_mrna(void) const;
412 
413  /// Reset Add_mrna data member.
414  void ResetAdd_mrna(void);
415 
416  /// Assign default value to Add_mrna data member.
417  void SetDefaultAdd_mrna(void);
418 
419  /// Get the Add_mrna member data.
420  ///
421  /// @return
422  /// Copy of the member data.
423  TAdd_mrna GetAdd_mrna(void) const;
424 
425  /// Assign a value to Add_mrna data member.
426  ///
427  /// @param value
428  /// Value to assign
430 
431  /// Assign a value to Add_mrna data member.
432  ///
433  /// @return
434  /// Reference to the data value.
435  TAdd_mrna& SetAdd_mrna(void);
436 
437  /// Check if a value has been assigned to Apply_to_parts data member.
438  ///
439  /// Data member Apply_to_parts is optional with default false;
440  /// its type is defined as 'typedef bool TApply_to_parts'
441  /// @return
442  /// - true, if a value has been assigned.
443  /// - false, otherwise.
444  bool IsSetApply_to_parts(void) const;
445 
446  /// Check if it is safe to call GetApply_to_parts method.
447  ///
448  /// @return
449  /// - true, if the data member is getatable.
450  /// - false, otherwise.
451  bool CanGetApply_to_parts(void) const;
452 
453  /// Reset Apply_to_parts data member.
454  void ResetApply_to_parts(void);
455 
456  /// Assign default value to Apply_to_parts data member.
457  void SetDefaultApply_to_parts(void);
458 
459  /// Get the Apply_to_parts member data.
460  ///
461  /// @return
462  /// Copy of the member data.
464 
465  /// Assign a value to Apply_to_parts data member.
466  ///
467  /// @param value
468  /// Value to assign
470 
471  /// Assign a value to Apply_to_parts data member.
472  ///
473  /// @return
474  /// Reference to the data value.
476 
477  /// Check if a value has been assigned to Only_seg_num data member.
478  ///
479  /// Data member Only_seg_num is optional with default -1;
480  /// its type is defined as 'typedef int TOnly_seg_num'
481  /// @return
482  /// - true, if a value has been assigned.
483  /// - false, otherwise.
484  bool IsSetOnly_seg_num(void) const;
485 
486  /// Check if it is safe to call GetOnly_seg_num method.
487  ///
488  /// @return
489  /// - true, if the data member is getatable.
490  /// - false, otherwise.
491  bool CanGetOnly_seg_num(void) const;
492 
493  /// Reset Only_seg_num data member.
494  void ResetOnly_seg_num(void);
495 
496  /// Assign default value to Only_seg_num data member.
497  void SetDefaultOnly_seg_num(void);
498 
499  /// Get the Only_seg_num member data.
500  ///
501  /// @return
502  /// Copy of the member data.
503  TOnly_seg_num GetOnly_seg_num(void) const;
504 
505  /// Assign a value to Only_seg_num data member.
506  ///
507  /// @param value
508  /// Value to assign
510 
511  /// Assign a value to Only_seg_num data member.
512  ///
513  /// @return
514  /// Reference to the data value.
516 
517  /// Check if a value has been assigned to Fields data member.
518  ///
519  /// Data member Fields is optional;
520  /// its type is defined as 'typedef CFeat_qual_legal_set TFields'
521  /// @return
522  /// - true, if a value has been assigned.
523  /// - false, otherwise.
524  bool IsSetFields(void) const;
525 
526  /// Check if it is safe to call GetFields method.
527  ///
528  /// @return
529  /// - true, if the data member is getatable.
530  /// - false, otherwise.
531  bool CanGetFields(void) const;
532 
533  /// Reset Fields data member.
534  void ResetFields(void);
535 
536  /// Get the Fields member data.
537  ///
538  /// @return
539  /// Reference to the member data.
540  const TFields& GetFields(void) const;
541 
542  /// Assign a value to Fields data member.
543  ///
544  /// @param value
545  /// Reference to value.
546  void SetFields(TFields& value);
547 
548  /// Assign a value to Fields data member.
549  ///
550  /// @return
551  /// Reference to the data value.
552  TFields& SetFields(void);
553 
554  /// Check if a value has been assigned to Src_fields data member.
555  ///
556  /// Data member Src_fields is optional;
557  /// its type is defined as 'typedef CSource_qual_val_set TSrc_fields'
558  /// @return
559  /// - true, if a value has been assigned.
560  /// - false, otherwise.
561  bool IsSetSrc_fields(void) const;
562 
563  /// Check if it is safe to call GetSrc_fields method.
564  ///
565  /// @return
566  /// - true, if the data member is getatable.
567  /// - false, otherwise.
568  bool CanGetSrc_fields(void) const;
569 
570  /// Reset Src_fields data member.
571  void ResetSrc_fields(void);
572 
573  /// Get the Src_fields member data.
574  ///
575  /// @return
576  /// Reference to the member data.
577  const TSrc_fields& GetSrc_fields(void) const;
578 
579  /// Assign a value to Src_fields data member.
580  ///
581  /// @param value
582  /// Reference to value.
584 
585  /// Assign a value to Src_fields data member.
586  ///
587  /// @return
588  /// Reference to the data value.
589  TSrc_fields& SetSrc_fields(void);
590 
591  /// Reset the whole object
592  virtual void Reset(void);
593 
594 
595 private:
596  // Prohibit copy constructor and assignment operator
599 
600  // data
614 };
615 
616 /* @} */
617 
618 
619 
620 
621 
622 ///////////////////////////////////////////////////////////
623 ///////////////////// inline methods //////////////////////
624 ///////////////////////////////////////////////////////////
625 inline
627 {
628  return ((m_set_State[0] & 0x3) != 0);
629 }
630 
631 inline
633 {
634  return IsSetType();
635 }
636 
637 inline
639 {
641  m_set_State[0] &= ~0x3;
642 }
643 
644 inline
646 {
647  if (!CanGetType()) {
648  ThrowUnassigned(0);
649  }
650  return m_Type;
651 }
652 
653 inline
655 {
656  m_Type = value;
657  m_set_State[0] |= 0x3;
658 }
659 
660 inline
662 {
663 #ifdef _DEBUG
664  if (!IsSetType()) {
665  memset(&m_Type,UnassignedByte(),sizeof(m_Type));
666  }
667 #endif
668  m_set_State[0] |= 0x1;
669  return m_Type;
670 }
671 
672 inline
674 {
675  return ((m_set_State[0] & 0xc) != 0);
676 }
677 
678 inline
680 {
681  return true;
682 }
683 
684 inline
686 {
687  m_Partial5 = false;
688  m_set_State[0] &= ~0xc;
689 }
690 
691 inline
693 {
694  ResetPartial5();
695 }
696 
697 inline
699 {
700  return m_Partial5;
701 }
702 
703 inline
705 {
706  m_Partial5 = value;
707  m_set_State[0] |= 0xc;
708 }
709 
710 inline
712 {
713 #ifdef _DEBUG
714  if (!IsSetPartial5()) {
715  memset(&m_Partial5,UnassignedByte(),sizeof(m_Partial5));
716  }
717 #endif
718  m_set_State[0] |= 0x4;
719  return m_Partial5;
720 }
721 
722 inline
724 {
725  return ((m_set_State[0] & 0x30) != 0);
726 }
727 
728 inline
730 {
731  return true;
732 }
733 
734 inline
736 {
737  m_Partial3 = false;
738  m_set_State[0] &= ~0x30;
739 }
740 
741 inline
743 {
744  ResetPartial3();
745 }
746 
747 inline
749 {
750  return m_Partial3;
751 }
752 
753 inline
755 {
756  m_Partial3 = value;
757  m_set_State[0] |= 0x30;
758 }
759 
760 inline
762 {
763 #ifdef _DEBUG
764  if (!IsSetPartial3()) {
765  memset(&m_Partial3,UnassignedByte(),sizeof(m_Partial3));
766  }
767 #endif
768  m_set_State[0] |= 0x10;
769  return m_Partial3;
770 }
771 
772 inline
774 {
775  return ((m_set_State[0] & 0xc0) != 0);
776 }
777 
778 inline
780 {
781  return true;
782 }
783 
784 inline
786 {
787  m_Plus_strand = true;
788  m_set_State[0] &= ~0xc0;
789 }
790 
791 inline
793 {
795 }
796 
797 inline
799 {
800  return m_Plus_strand;
801 }
802 
803 inline
805 {
807  m_set_State[0] |= 0xc0;
808 }
809 
810 inline
812 {
813 #ifdef _DEBUG
814  if (!IsSetPlus_strand()) {
815  memset(&m_Plus_strand,UnassignedByte(),sizeof(m_Plus_strand));
816  }
817 #endif
818  m_set_State[0] |= 0x40;
819  return m_Plus_strand;
820 }
821 
822 inline
824 {
825  return m_Location.NotEmpty();
826 }
827 
828 inline
830 {
831  return true;
832 }
833 
834 inline
836 {
837  if ( !m_Location ) {
838  const_cast<CApply_feature_action_Base*>(this)->ResetLocation();
839  }
840  return (*m_Location);
841 }
842 
843 inline
845 {
846  if ( !m_Location ) {
847  ResetLocation();
848  }
849  return (*m_Location);
850 }
851 
852 inline
854 {
855  return m_Seq_list.NotEmpty();
856 }
857 
858 inline
860 {
861  return true;
862 }
863 
864 inline
866 {
867  if ( !m_Seq_list ) {
868  const_cast<CApply_feature_action_Base*>(this)->ResetSeq_list();
869  }
870  return (*m_Seq_list);
871 }
872 
873 inline
875 {
876  if ( !m_Seq_list ) {
877  ResetSeq_list();
878  }
879  return (*m_Seq_list);
880 }
881 
882 inline
884 {
885  return ((m_set_State[0] & 0x3000) != 0);
886 }
887 
888 inline
890 {
891  return true;
892 }
893 
894 inline
896 {
897  m_Add_redundant = true;
898  m_set_State[0] &= ~0x3000;
899 }
900 
901 inline
903 {
905 }
906 
907 inline
909 {
910  return m_Add_redundant;
911 }
912 
913 inline
915 {
917  m_set_State[0] |= 0x3000;
918 }
919 
920 inline
922 {
923 #ifdef _DEBUG
924  if (!IsSetAdd_redundant()) {
926  }
927 #endif
928  m_set_State[0] |= 0x1000;
929  return m_Add_redundant;
930 }
931 
932 inline
934 {
935  return ((m_set_State[0] & 0xc000) != 0);
936 }
937 
938 inline
940 {
941  return true;
942 }
943 
944 inline
946 {
947  m_Add_mrna = false;
948  m_set_State[0] &= ~0xc000;
949 }
950 
951 inline
953 {
954  ResetAdd_mrna();
955 }
956 
957 inline
959 {
960  return m_Add_mrna;
961 }
962 
963 inline
965 {
966  m_Add_mrna = value;
967  m_set_State[0] |= 0xc000;
968 }
969 
970 inline
972 {
973 #ifdef _DEBUG
974  if (!IsSetAdd_mrna()) {
975  memset(&m_Add_mrna,UnassignedByte(),sizeof(m_Add_mrna));
976  }
977 #endif
978  m_set_State[0] |= 0x4000;
979  return m_Add_mrna;
980 }
981 
982 inline
984 {
985  return ((m_set_State[0] & 0x30000) != 0);
986 }
987 
988 inline
990 {
991  return true;
992 }
993 
994 inline
996 {
997  m_Apply_to_parts = false;
998  m_set_State[0] &= ~0x30000;
999 }
1000 
1001 inline
1003 {
1005 }
1006 
1007 inline
1009 {
1010  return m_Apply_to_parts;
1011 }
1012 
1013 inline
1015 {
1017  m_set_State[0] |= 0x30000;
1018 }
1019 
1020 inline
1022 {
1023 #ifdef _DEBUG
1024  if (!IsSetApply_to_parts()) {
1026  }
1027 #endif
1028  m_set_State[0] |= 0x10000;
1029  return m_Apply_to_parts;
1030 }
1031 
1032 inline
1034 {
1035  return ((m_set_State[0] & 0xc0000) != 0);
1036 }
1037 
1038 inline
1040 {
1041  return true;
1042 }
1043 
1044 inline
1046 {
1047  m_Only_seg_num = -1;
1048  m_set_State[0] &= ~0xc0000;
1049 }
1050 
1051 inline
1053 {
1055 }
1056 
1057 inline
1059 {
1060  return m_Only_seg_num;
1061 }
1062 
1063 inline
1065 {
1067  m_set_State[0] |= 0xc0000;
1068 }
1069 
1070 inline
1072 {
1073 #ifdef _DEBUG
1074  if (!IsSetOnly_seg_num()) {
1075  memset(&m_Only_seg_num,UnassignedByte(),sizeof(m_Only_seg_num));
1076  }
1077 #endif
1078  m_set_State[0] |= 0x40000;
1079  return m_Only_seg_num;
1080 }
1081 
1082 inline
1084 {
1085  return m_Fields.NotEmpty();
1086 }
1087 
1088 inline
1090 {
1091  return IsSetFields();
1092 }
1093 
1094 inline
1096 {
1097  if (!CanGetFields()) {
1098  ThrowUnassigned(10);
1099  }
1100  return (*m_Fields);
1101 }
1102 
1103 inline
1105 {
1106  return m_Src_fields.NotEmpty();
1107 }
1108 
1109 inline
1111 {
1112  return IsSetSrc_fields();
1113 }
1114 
1115 inline
1117 {
1118  if (!CanGetSrc_fields()) {
1119  ThrowUnassigned(11);
1120  }
1121  return (*m_Src_fields);
1122 }
1123 
1124 ///////////////////////////////////////////////////////////
1125 ////////////////// end of inline methods //////////////////
1126 ///////////////////////////////////////////////////////////
1127 
1128 
1129 
1130 
1131 
1132 END_objects_SCOPE // namespace ncbi::objects::
1133 
1135 
1136 
1137 #endif // OBJECTS_MACRO_APPLY_FEATURE_ACTION_BASE_HPP
User-defined methods of the data storage class.
CApply_feature_action_Base –.
CLocation_choice –.
CRef –.
Definition: ncbiobj.hpp:618
CSequence_list_choice –.
Base class for all serializable objects.
Definition: serialbase.hpp:150
CSource_qual_val_set –.
static char UnassignedByte(void)
Definition: serialbase.hpp:181
void ThrowUnassigned(TMemberIndex index) const
uint32_t Uint4
4-byte (32-bit) unsigned integer
Definition: ncbitype.h:103
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
bool IsSetPlus_strand(void) const
Check if a value has been assigned to Plus_strand data member.
TPartial3 & SetPartial3(void)
Assign a value to Partial3 data member.
TSeq_list & SetSeq_list(void)
Assign a value to Seq_list data member.
bool IsSetAdd_mrna(void) const
Check if a value has been assigned to Add_mrna data member.
TPlus_strand GetPlus_strand(void) const
Get the Plus_strand member data.
TSrc_fields & SetSrc_fields(void)
Assign a value to Src_fields data member.
void ResetType(void)
Reset Type data member.
void SetDefaultPlus_strand(void)
Assign default value to Plus_strand data member.
bool CanGetAdd_mrna(void) const
Check if it is safe to call GetAdd_mrna method.
bool CanGetSeq_list(void) const
Check if it is safe to call GetSeq_list method.
void ResetAdd_mrna(void)
Reset Add_mrna data member.
void ResetSeq_list(void)
Reset Seq_list data member.
void SetDefaultAdd_redundant(void)
Assign default value to Add_redundant data member.
const TLocation & GetLocation(void) const
Get the Location member data.
void SetDefaultPartial5(void)
Assign default value to Partial5 data member.
TType GetType(void) const
Get the Type member data.
bool IsSetSeq_list(void) const
Check if a value has been assigned to Seq_list data member.
bool CanGetType(void) const
Check if it is safe to call GetType method.
TAdd_mrna & SetAdd_mrna(void)
Assign a value to Add_mrna data member.
TAdd_redundant GetAdd_redundant(void) const
Get the Add_redundant member data.
bool CanGetFields(void) const
Check if it is safe to call GetFields method.
void ResetApply_to_parts(void)
Reset Apply_to_parts data member.
void ResetFields(void)
Reset Fields data member.
bool IsSetType(void) const
Check if a value has been assigned to Type data member.
TPartial3 GetPartial3(void) const
Get the Partial3 member data.
TPlus_strand & SetPlus_strand(void)
Assign a value to Plus_strand data member.
void ResetSrc_fields(void)
Reset Src_fields data member.
bool CanGetAdd_redundant(void) const
Check if it is safe to call GetAdd_redundant method.
bool CanGetPartial5(void) const
Check if it is safe to call GetPartial5 method.
bool CanGetLocation(void) const
Check if it is safe to call GetLocation method.
TPartial5 & SetPartial5(void)
Assign a value to Partial5 data member.
void SetDefaultOnly_seg_num(void)
Assign default value to Only_seg_num data member.
CApply_feature_action_Base & operator=(const CApply_feature_action_Base &)
bool IsSetApply_to_parts(void) const
Check if a value has been assigned to Apply_to_parts data member.
bool CanGetSrc_fields(void) const
Check if it is safe to call GetSrc_fields method.
bool CanGetPlus_strand(void) const
Check if it is safe to call GetPlus_strand method.
TApply_to_parts & SetApply_to_parts(void)
Assign a value to Apply_to_parts data member.
bool IsSetAdd_redundant(void) const
Check if a value has been assigned to Add_redundant data member.
void ResetOnly_seg_num(void)
Reset Only_seg_num data member.
void ResetPartial3(void)
Reset Partial3 data member.
void SetDefaultApply_to_parts(void)
Assign default value to Apply_to_parts data member.
void SetDefaultAdd_mrna(void)
Assign default value to Add_mrna data member.
TOnly_seg_num GetOnly_seg_num(void) const
Get the Only_seg_num member data.
void ResetPartial5(void)
Reset Partial5 data member.
TLocation & SetLocation(void)
Assign a value to Location data member.
EMacro_feature_type
feature values
TType & SetType(void)
Assign a value to Type data member.
TFields & SetFields(void)
Assign a value to Fields data member.
bool IsSetOnly_seg_num(void) const
Check if a value has been assigned to Only_seg_num data member.
bool IsSetLocation(void) const
Check if a value has been assigned to Location data member.
Tparent::CMemberIndex< E_memberIndex, 13 > TmemberIndex
bool IsSetPartial3(void) const
Check if a value has been assigned to Partial3 data member.
bool CanGetPartial3(void) const
Check if it is safe to call GetPartial3 method.
bool CanGetApply_to_parts(void) const
Check if it is safe to call GetApply_to_parts method.
virtual void Reset(void)
Reset the whole object.
TApply_to_parts GetApply_to_parts(void) const
Get the Apply_to_parts member data.
void SetDefaultPartial3(void)
Assign default value to Partial3 data member.
TAdd_redundant & SetAdd_redundant(void)
Assign a value to Add_redundant data member.
TAdd_mrna GetAdd_mrna(void) const
Get the Add_mrna member data.
bool IsSetFields(void) const
Check if a value has been assigned to Fields data member.
TPartial5 GetPartial5(void) const
Get the Partial5 member data.
void ResetLocation(void)
Reset Location data member.
const TSeq_list & GetSeq_list(void) const
Get the Seq_list member data.
void ResetPlus_strand(void)
Reset Plus_strand data member.
bool IsSetPartial5(void) const
Check if a value has been assigned to Partial5 data member.
void ResetAdd_redundant(void)
Reset Add_redundant data member.
bool IsSetSrc_fields(void) const
Check if a value has been assigned to Src_fields data member.
CApply_feature_action_Base(const CApply_feature_action_Base &)
bool CanGetOnly_seg_num(void) const
Check if it is safe to call GetOnly_seg_num method.
const TFields & GetFields(void) const
Get the Fields member data.
const TSrc_fields & GetSrc_fields(void) const
Get the Src_fields member data.
TOnly_seg_num & SetOnly_seg_num(void)
Assign a value to Only_seg_num data member.
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Wed Sep 04 14:58:56 2024 by modify_doxy.py rev. 669887