NCBI C++ ToolKit
Macro_action_choice_.cpp
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  * File Description:
27  * This code was generated by application DATATOOL
28  * using the following specifications:
29  * 'macro.asn'.
30  *
31  * ATTENTION:
32  * Don't edit or commit this file into CVS as this file will
33  * be overridden (by DATATOOL) without warning!
34  * ===========================================================================
35  */
36 
37 // standard includes
38 #include <ncbi_pch.hpp>
39 #include <serial/serialimpl.hpp>
40 
41 // generated includes
71 
72 BEGIN_objects_SCOPE // namespace ncbi::objects::
73 
74 
75 // generated classes
76 
78 {
79  if ( m_choice != e_not_set )
81 }
82 
84 {
85  switch ( m_choice ) {
86  case e_Aecr:
87  case e_Parse:
88  case e_Add_feature:
89  case e_Remove_feature:
90  case e_Convert_feature:
91  case e_Edit_location:
93  case e_Autodef:
94  case e_Fix_pub_caps:
95  case e_Sort_fields:
97  case e_Fix_caps:
98  case e_Fix_format:
100  case e_Remove_xrefs:
101  case e_Make_gene_xrefs:
102  case e_Fix_author:
103  case e_Update_sequences:
104  case e_Create_tsa_ids:
105  case e_Perform_autofix:
106  case e_Fix_sets:
107  case e_Apply_table:
108  case e_Remove_sequences:
111  case e_Retranslate_cds:
113  m_object->RemoveReference();
114  break;
115  default:
116  break;
117  }
119 }
120 
121 void CMacro_action_choice_Base::DoSelect(E_Choice index, NCBI_NS_NCBI::CObjectMemoryPool* pool)
122 {
123  switch ( index ) {
124  case e_Aecr:
125  (m_object = new(pool) ncbi::objects::CAECR_action())->AddReference();
126  break;
127  case e_Parse:
128  (m_object = new(pool) ncbi::objects::CParse_action())->AddReference();
129  break;
130  case e_Add_feature:
131  (m_object = new(pool) ncbi::objects::CApply_feature_action())->AddReference();
132  break;
133  case e_Remove_feature:
134  (m_object = new(pool) ncbi::objects::CRemove_feature_action())->AddReference();
135  break;
136  case e_Convert_feature:
137  (m_object = new(pool) ncbi::objects::CConvert_feature_action())->AddReference();
138  break;
139  case e_Edit_location:
140  (m_object = new(pool) ncbi::objects::CEdit_feature_location_action())->AddReference();
141  break;
142  case e_Remove_descriptor:
143  (m_object = new(pool) ncbi::objects::CRemove_descriptor_action())->AddReference();
144  break;
145  case e_Autodef:
146  (m_object = new(pool) ncbi::objects::CAutodef_action())->AddReference();
147  break;
148  case e_Fix_pub_caps:
149  (m_object = new(pool) ncbi::objects::CFix_pub_caps_action())->AddReference();
150  break;
151  case e_Sort_fields:
152  (m_object = new(pool) ncbi::objects::CSort_fields_action())->AddReference();
153  break;
155  (m_object = new(pool) ncbi::objects::CMolinfo_block())->AddReference();
156  break;
157  case e_Fix_caps:
158  (m_object = new(pool) ncbi::objects::CFix_caps_action())->AddReference();
159  break;
160  case e_Fix_format:
161  (m_object = new(pool) ncbi::objects::CFix_format_action())->AddReference();
162  break;
164  (m_object = new(pool) ncbi::objects::CRemove_duplicate_feature_action())->AddReference();
165  break;
166  case e_Remove_xrefs:
167  (m_object = new(pool) ncbi::objects::CRemove_xrefs_action())->AddReference();
168  break;
169  case e_Make_gene_xrefs:
170  (m_object = new(pool) ncbi::objects::CMake_gene_xref_action())->AddReference();
171  break;
172  case e_Fix_author:
173  (m_object = new(pool) ncbi::objects::CAuthor_fix_action())->AddReference();
174  break;
175  case e_Update_sequences:
176  (m_object = new(pool) ncbi::objects::CUpdate_sequences_action())->AddReference();
177  break;
178  case e_Create_tsa_ids:
179  (m_object = new(pool) ncbi::objects::CCreate_TSA_ids_action())->AddReference();
180  break;
181  case e_Perform_autofix:
182  (m_object = new(pool) ncbi::objects::CAutofix_action())->AddReference();
183  break;
184  case e_Fix_sets:
185  (m_object = new(pool) ncbi::objects::CFix_sets_action())->AddReference();
186  break;
187  case e_Apply_table:
188  (m_object = new(pool) ncbi::objects::CApply_table_action())->AddReference();
189  break;
190  case e_Remove_sequences:
191  (m_object = new(pool) ncbi::objects::CRemove_sequences_action())->AddReference();
192  break;
194  (m_object = new(pool) ncbi::objects::CAdd_descriptor_list_action())->AddReference();
195  break;
197  (m_object = new(pool) ncbi::objects::CUpdate_replaced_ec_numbers_action())->AddReference();
198  break;
199  case e_Retranslate_cds:
200  (m_object = new(pool) ncbi::objects::CRetranslate_cds_action())->AddReference();
201  break;
203  (m_object = new(pool) ncbi::objects::CAdjust_features_for_gaps_action())->AddReference();
204  break;
205  default:
206  break;
207  }
208  m_choice = index;
209 }
210 
211 const char* const CMacro_action_choice_Base::sm_SelectionNames[] = {
212  "not set",
213  "aecr",
214  "parse",
215  "add-feature",
216  "remove-feature",
217  "convert-feature",
218  "edit-location",
219  "remove-descriptor",
220  "autodef",
221  "removesets",
222  "trim-junk-from-primer-seq",
223  "trim-stop-from-complete-cds",
224  "fix-usa-and-states",
225  "synchronize-cds-partials",
226  "adjust-for-consensus-splice",
227  "fix-pub-caps",
228  "remove-seg-gaps",
229  "sort-fields",
230  "apply-molinfo-block",
231  "fix-caps",
232  "fix-format",
233  "fix-spell",
234  "remove-duplicate-features",
235  "remove-lineage-notes",
236  "remove-xrefs",
237  "make-gene-xrefs",
238  "make-bold-xrefs",
239  "fix-author",
240  "update-sequences",
241  "add-trans-splicing",
242  "remove-invalid-ecnumbers",
243  "create-tsa-ids",
244  "perform-autofix",
245  "fix-sets",
246  "apply-table",
247  "remove-sequences",
248  "propagate-sequence-technology",
249  "add-file-descriptors",
250  "propagate-missing-old-name",
251  "autoapply-structured-comments",
252  "reorder-structured-comments",
253  "remove-duplicate-structured-comments",
254  "lookup-taxonomy",
255  "lookup-pubs",
256  "trim-terminal-ns",
257  "update-replaced-ecnumbers",
258  "instantiate-protein-titles",
259  "retranslate-cds",
260  "add-selenocysteine-except",
261  "join-short-trnas",
262  "adjust-features-for-gaps"
263 };
264 
266 {
267  return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames, sizeof(sm_SelectionNames)/sizeof(sm_SelectionNames[0]));
268 }
269 
271 {
272  throw NCBI_NS_NCBI::CInvalidChoiceSelection(DIAG_COMPILE_INFO, this, m_choice, index, sm_SelectionNames, sizeof(sm_SelectionNames)/sizeof(sm_SelectionNames[0]));
273 }
274 
276 {
278  return *static_cast<const TAecr*>(m_object);
279 }
280 
282 {
284  return *static_cast<TAecr*>(m_object);
285 }
286 
288 {
289  TAecr* ptr = &value;
290  if ( m_choice != e_Aecr || m_object != ptr ) {
291  ResetSelection();
292  (m_object = ptr)->AddReference();
293  m_choice = e_Aecr;
294  }
295 }
296 
298 {
300  return *static_cast<const TParse*>(m_object);
301 }
302 
304 {
306  return *static_cast<TParse*>(m_object);
307 }
308 
310 {
311  TParse* ptr = &value;
312  if ( m_choice != e_Parse || m_object != ptr ) {
313  ResetSelection();
314  (m_object = ptr)->AddReference();
315  m_choice = e_Parse;
316  }
317 }
318 
320 {
322  return *static_cast<const TAdd_feature*>(m_object);
323 }
324 
326 {
328  return *static_cast<TAdd_feature*>(m_object);
329 }
330 
332 {
333  TAdd_feature* ptr = &value;
334  if ( m_choice != e_Add_feature || m_object != ptr ) {
335  ResetSelection();
336  (m_object = ptr)->AddReference();
338  }
339 }
340 
342 {
344  return *static_cast<const TRemove_feature*>(m_object);
345 }
346 
348 {
350  return *static_cast<TRemove_feature*>(m_object);
351 }
352 
354 {
355  TRemove_feature* ptr = &value;
356  if ( m_choice != e_Remove_feature || m_object != ptr ) {
357  ResetSelection();
358  (m_object = ptr)->AddReference();
360  }
361 }
362 
364 {
366  return *static_cast<const TConvert_feature*>(m_object);
367 }
368 
370 {
372  return *static_cast<TConvert_feature*>(m_object);
373 }
374 
376 {
377  TConvert_feature* ptr = &value;
378  if ( m_choice != e_Convert_feature || m_object != ptr ) {
379  ResetSelection();
380  (m_object = ptr)->AddReference();
382  }
383 }
384 
386 {
388  return *static_cast<const TEdit_location*>(m_object);
389 }
390 
392 {
394  return *static_cast<TEdit_location*>(m_object);
395 }
396 
398 {
399  TEdit_location* ptr = &value;
400  if ( m_choice != e_Edit_location || m_object != ptr ) {
401  ResetSelection();
402  (m_object = ptr)->AddReference();
404  }
405 }
406 
408 {
410  return *static_cast<const TRemove_descriptor*>(m_object);
411 }
412 
414 {
416  return *static_cast<TRemove_descriptor*>(m_object);
417 }
418 
420 {
421  TRemove_descriptor* ptr = &value;
422  if ( m_choice != e_Remove_descriptor || m_object != ptr ) {
423  ResetSelection();
424  (m_object = ptr)->AddReference();
426  }
427 }
428 
430 {
432  return *static_cast<const TAutodef*>(m_object);
433 }
434 
436 {
438  return *static_cast<TAutodef*>(m_object);
439 }
440 
442 {
443  TAutodef* ptr = &value;
444  if ( m_choice != e_Autodef || m_object != ptr ) {
445  ResetSelection();
446  (m_object = ptr)->AddReference();
448  }
449 }
450 
452 {
454  return *static_cast<const TFix_pub_caps*>(m_object);
455 }
456 
458 {
460  return *static_cast<TFix_pub_caps*>(m_object);
461 }
462 
464 {
465  TFix_pub_caps* ptr = &value;
466  if ( m_choice != e_Fix_pub_caps || m_object != ptr ) {
467  ResetSelection();
468  (m_object = ptr)->AddReference();
470  }
471 }
472 
474 {
476  return *static_cast<const TSort_fields*>(m_object);
477 }
478 
480 {
482  return *static_cast<TSort_fields*>(m_object);
483 }
484 
486 {
487  TSort_fields* ptr = &value;
488  if ( m_choice != e_Sort_fields || m_object != ptr ) {
489  ResetSelection();
490  (m_object = ptr)->AddReference();
492  }
493 }
494 
496 {
498  return *static_cast<const TApply_molinfo_block*>(m_object);
499 }
500 
502 {
504  return *static_cast<TApply_molinfo_block*>(m_object);
505 }
506 
508 {
509  TApply_molinfo_block* ptr = &value;
510  if ( m_choice != e_Apply_molinfo_block || m_object != ptr ) {
511  ResetSelection();
512  (m_object = ptr)->AddReference();
514  }
515 }
516 
518 {
520  return *static_cast<const TFix_caps*>(m_object);
521 }
522 
524 {
526  return *static_cast<TFix_caps*>(m_object);
527 }
528 
530 {
531  TFix_caps* ptr = &value;
532  if ( m_choice != e_Fix_caps || m_object != ptr ) {
533  ResetSelection();
534  (m_object = ptr)->AddReference();
536  }
537 }
538 
540 {
542  return *static_cast<const TFix_format*>(m_object);
543 }
544 
546 {
548  return *static_cast<TFix_format*>(m_object);
549 }
550 
552 {
553  TFix_format* ptr = &value;
554  if ( m_choice != e_Fix_format || m_object != ptr ) {
555  ResetSelection();
556  (m_object = ptr)->AddReference();
558  }
559 }
560 
562 {
564  return *static_cast<const TRemove_duplicate_features*>(m_object);
565 }
566 
568 {
570  return *static_cast<TRemove_duplicate_features*>(m_object);
571 }
572 
574 {
576  if ( m_choice != e_Remove_duplicate_features || m_object != ptr ) {
577  ResetSelection();
578  (m_object = ptr)->AddReference();
580  }
581 }
582 
584 {
586  return *static_cast<const TRemove_xrefs*>(m_object);
587 }
588 
590 {
592  return *static_cast<TRemove_xrefs*>(m_object);
593 }
594 
596 {
597  TRemove_xrefs* ptr = &value;
598  if ( m_choice != e_Remove_xrefs || m_object != ptr ) {
599  ResetSelection();
600  (m_object = ptr)->AddReference();
602  }
603 }
604 
606 {
608  return *static_cast<const TMake_gene_xrefs*>(m_object);
609 }
610 
612 {
614  return *static_cast<TMake_gene_xrefs*>(m_object);
615 }
616 
618 {
619  TMake_gene_xrefs* ptr = &value;
620  if ( m_choice != e_Make_gene_xrefs || m_object != ptr ) {
621  ResetSelection();
622  (m_object = ptr)->AddReference();
624  }
625 }
626 
628 {
630  return *static_cast<const TFix_author*>(m_object);
631 }
632 
634 {
636  return *static_cast<TFix_author*>(m_object);
637 }
638 
640 {
641  TFix_author* ptr = &value;
642  if ( m_choice != e_Fix_author || m_object != ptr ) {
643  ResetSelection();
644  (m_object = ptr)->AddReference();
646  }
647 }
648 
650 {
652  return *static_cast<const TUpdate_sequences*>(m_object);
653 }
654 
656 {
658  return *static_cast<TUpdate_sequences*>(m_object);
659 }
660 
662 {
663  TUpdate_sequences* ptr = &value;
664  if ( m_choice != e_Update_sequences || m_object != ptr ) {
665  ResetSelection();
666  (m_object = ptr)->AddReference();
668  }
669 }
670 
672 {
674  return *static_cast<const TCreate_tsa_ids*>(m_object);
675 }
676 
678 {
680  return *static_cast<TCreate_tsa_ids*>(m_object);
681 }
682 
684 {
685  TCreate_tsa_ids* ptr = &value;
686  if ( m_choice != e_Create_tsa_ids || m_object != ptr ) {
687  ResetSelection();
688  (m_object = ptr)->AddReference();
690  }
691 }
692 
694 {
696  return *static_cast<const TPerform_autofix*>(m_object);
697 }
698 
700 {
702  return *static_cast<TPerform_autofix*>(m_object);
703 }
704 
706 {
707  TPerform_autofix* ptr = &value;
708  if ( m_choice != e_Perform_autofix || m_object != ptr ) {
709  ResetSelection();
710  (m_object = ptr)->AddReference();
712  }
713 }
714 
716 {
718  return *static_cast<const TFix_sets*>(m_object);
719 }
720 
722 {
724  return *static_cast<TFix_sets*>(m_object);
725 }
726 
728 {
729  TFix_sets* ptr = &value;
730  if ( m_choice != e_Fix_sets || m_object != ptr ) {
731  ResetSelection();
732  (m_object = ptr)->AddReference();
734  }
735 }
736 
738 {
740  return *static_cast<const TApply_table*>(m_object);
741 }
742 
744 {
746  return *static_cast<TApply_table*>(m_object);
747 }
748 
750 {
751  TApply_table* ptr = &value;
752  if ( m_choice != e_Apply_table || m_object != ptr ) {
753  ResetSelection();
754  (m_object = ptr)->AddReference();
756  }
757 }
758 
760 {
762  return *static_cast<const TRemove_sequences*>(m_object);
763 }
764 
766 {
768  return *static_cast<TRemove_sequences*>(m_object);
769 }
770 
772 {
773  TRemove_sequences* ptr = &value;
774  if ( m_choice != e_Remove_sequences || m_object != ptr ) {
775  ResetSelection();
776  (m_object = ptr)->AddReference();
778  }
779 }
780 
782 {
784  return *static_cast<const TAdd_file_descriptors*>(m_object);
785 }
786 
788 {
790  return *static_cast<TAdd_file_descriptors*>(m_object);
791 }
792 
794 {
796  if ( m_choice != e_Add_file_descriptors || m_object != ptr ) {
797  ResetSelection();
798  (m_object = ptr)->AddReference();
800  }
801 }
802 
804 {
806  return *static_cast<const TUpdate_replaced_ecnumbers*>(m_object);
807 }
808 
810 {
812  return *static_cast<TUpdate_replaced_ecnumbers*>(m_object);
813 }
814 
816 {
818  if ( m_choice != e_Update_replaced_ecnumbers || m_object != ptr ) {
819  ResetSelection();
820  (m_object = ptr)->AddReference();
822  }
823 }
824 
826 {
828  return *static_cast<const TRetranslate_cds*>(m_object);
829 }
830 
832 {
834  return *static_cast<TRetranslate_cds*>(m_object);
835 }
836 
838 {
839  TRetranslate_cds* ptr = &value;
840  if ( m_choice != e_Retranslate_cds || m_object != ptr ) {
841  ResetSelection();
842  (m_object = ptr)->AddReference();
844  }
845 }
846 
848 {
850  return *static_cast<const TAdjust_features_for_gaps*>(m_object);
851 }
852 
854 {
856  return *static_cast<TAdjust_features_for_gaps*>(m_object);
857 }
858 
860 {
862  if ( m_choice != e_Adjust_features_for_gaps || m_object != ptr ) {
863  ResetSelection();
864  (m_object = ptr)->AddReference();
866  }
867 }
868 
869 // helper methods
870 
871 // type info
873 {
874  SET_CHOICE_MODULE("NCBI-Macro");
875  ADD_NAMED_REF_CHOICE_VARIANT("aecr", m_object, CAECR_action);
876  ADD_NAMED_REF_CHOICE_VARIANT("parse", m_object, CParse_action);
877  ADD_NAMED_REF_CHOICE_VARIANT("add-feature", m_object, CApply_feature_action);
878  ADD_NAMED_REF_CHOICE_VARIANT("remove-feature", m_object, CRemove_feature_action);
879  ADD_NAMED_REF_CHOICE_VARIANT("convert-feature", m_object, CConvert_feature_action);
881  ADD_NAMED_REF_CHOICE_VARIANT("remove-descriptor", m_object, CRemove_descriptor_action);
882  ADD_NAMED_REF_CHOICE_VARIANT("autodef", m_object, CAutodef_action);
883  ADD_NAMED_NULL_CHOICE_VARIANT("removesets", null, ());
884  ADD_NAMED_NULL_CHOICE_VARIANT("trim-junk-from-primer-seq", null, ());
885  ADD_NAMED_NULL_CHOICE_VARIANT("trim-stop-from-complete-cds", null, ());
886  ADD_NAMED_NULL_CHOICE_VARIANT("fix-usa-and-states", null, ());
887  ADD_NAMED_NULL_CHOICE_VARIANT("synchronize-cds-partials", null, ());
888  ADD_NAMED_NULL_CHOICE_VARIANT("adjust-for-consensus-splice", null, ());
889  ADD_NAMED_REF_CHOICE_VARIANT("fix-pub-caps", m_object, CFix_pub_caps_action);
890  ADD_NAMED_NULL_CHOICE_VARIANT("remove-seg-gaps", null, ());
891  ADD_NAMED_REF_CHOICE_VARIANT("sort-fields", m_object, CSort_fields_action);
892  ADD_NAMED_REF_CHOICE_VARIANT("apply-molinfo-block", m_object, CMolinfo_block);
893  ADD_NAMED_REF_CHOICE_VARIANT("fix-caps", m_object, CFix_caps_action);
894  ADD_NAMED_REF_CHOICE_VARIANT("fix-format", m_object, CFix_format_action);
895  ADD_NAMED_NULL_CHOICE_VARIANT("fix-spell", null, ());
896  ADD_NAMED_REF_CHOICE_VARIANT("remove-duplicate-features", m_object, CRemove_duplicate_feature_action);
897  ADD_NAMED_NULL_CHOICE_VARIANT("remove-lineage-notes", null, ());
898  ADD_NAMED_REF_CHOICE_VARIANT("remove-xrefs", m_object, CRemove_xrefs_action);
899  ADD_NAMED_REF_CHOICE_VARIANT("make-gene-xrefs", m_object, CMake_gene_xref_action);
900  ADD_NAMED_NULL_CHOICE_VARIANT("make-bold-xrefs", null, ());
901  ADD_NAMED_REF_CHOICE_VARIANT("fix-author", m_object, CAuthor_fix_action);
902  ADD_NAMED_REF_CHOICE_VARIANT("update-sequences", m_object, CUpdate_sequences_action);
903  ADD_NAMED_NULL_CHOICE_VARIANT("add-trans-splicing", null, ());
904  ADD_NAMED_NULL_CHOICE_VARIANT("remove-invalid-ecnumbers", null, ());
905  ADD_NAMED_REF_CHOICE_VARIANT("create-tsa-ids", m_object, CCreate_TSA_ids_action);
906  ADD_NAMED_REF_CHOICE_VARIANT("perform-autofix", m_object, CAutofix_action);
907  ADD_NAMED_REF_CHOICE_VARIANT("fix-sets", m_object, CFix_sets_action);
908  ADD_NAMED_REF_CHOICE_VARIANT("apply-table", m_object, CApply_table_action);
909  ADD_NAMED_REF_CHOICE_VARIANT("remove-sequences", m_object, CRemove_sequences_action);
910  ADD_NAMED_NULL_CHOICE_VARIANT("propagate-sequence-technology", null, ());
911  ADD_NAMED_REF_CHOICE_VARIANT("add-file-descriptors", m_object, CAdd_descriptor_list_action);
912  ADD_NAMED_NULL_CHOICE_VARIANT("propagate-missing-old-name", null, ());
913  ADD_NAMED_NULL_CHOICE_VARIANT("autoapply-structured-comments", null, ());
914  ADD_NAMED_NULL_CHOICE_VARIANT("reorder-structured-comments", null, ());
915  ADD_NAMED_NULL_CHOICE_VARIANT("remove-duplicate-structured-comments", null, ());
916  ADD_NAMED_NULL_CHOICE_VARIANT("lookup-taxonomy", null, ());
917  ADD_NAMED_NULL_CHOICE_VARIANT("lookup-pubs", null, ());
918  ADD_NAMED_NULL_CHOICE_VARIANT("trim-terminal-ns", null, ());
919  ADD_NAMED_REF_CHOICE_VARIANT("update-replaced-ecnumbers", m_object, CUpdate_replaced_ec_numbers_action);
920  ADD_NAMED_NULL_CHOICE_VARIANT("instantiate-protein-titles", null, ());
921  ADD_NAMED_REF_CHOICE_VARIANT("retranslate-cds", m_object, CRetranslate_cds_action);
922  ADD_NAMED_NULL_CHOICE_VARIANT("add-selenocysteine-except", null, ());
923  ADD_NAMED_NULL_CHOICE_VARIANT("join-short-trnas", null, ());
924  ADD_NAMED_REF_CHOICE_VARIANT("adjust-features-for-gaps", m_object, CAdjust_features_for_gaps_action);
925  info->CodeVersion(22400);
926  info->DataSpec(ncbi::EDataSpec::eASN);
927 }
929 
930 // constructor
932  : m_choice(e_not_set)
933 {
934 }
935 
936 // destructor
938 {
939  Reset();
940 }
941 
942 
943 
944 END_objects_SCOPE // namespace ncbi::objects::
945 
947 
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CHOICE_INFO("Macro-action-choice", CMacro_action_choice)
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CAECR_action –.
Definition: AECR_action.hpp:66
CAdd_descriptor_list_action –.
CAdjust_features_for_gaps_action –.
CApply_feature_action –.
CApply_table_action –.
CAuthor_fix_action –.
CAutodef_action –.
CAutofix_action –.
CConvert_feature_action –.
CCreate_TSA_ids_action –.
CEdit_feature_location_action –.
CFix_caps_action –.
CFix_format_action –.
CFix_pub_caps_action –.
CFix_sets_action –.
CMacro_action_choice –.
CMake_gene_xref_action –.
CMolinfo_block –.
CParse_action –.
CRemove_descriptor_action –.
CRemove_duplicate_feature_action –.
CRemove_feature_action –.
CRemove_sequences_action –.
CRemove_xrefs_action –.
CRetranslate_cds_action –.
CSort_fields_action –.
CUpdate_replaced_ec_numbers_action –.
CUpdate_sequences_action –.
string
Definition: cgiapp.hpp:687
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
Definition: ncbidiag.hpp:170
#define ADD_NAMED_REF_CHOICE_VARIANT(MemberAlias, MemberName, ClassName)
Definition: serialimpl.hpp:400
#define END_CHOICE_INFO
Definition: serialimpl.hpp:506
#define SET_CHOICE_MODULE(ModuleName)
Definition: serialimpl.hpp:500
#define ADD_NAMED_NULL_CHOICE_VARIANT(MemberAlias, TypeMacro, TypeMacroArgs)
Definition: serialimpl.hpp:379
@ eDoNotResetVariant
Definition: serialbase.hpp:78
void AddReference(void) const
Add reference to object.
Definition: ncbiobj.hpp:489
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
TRemove_sequences & SetRemove_sequences(void)
Select the variant.
TRemove_descriptor & SetRemove_descriptor(void)
Select the variant.
const TRemove_feature & GetRemove_feature(void) const
Get the variant data.
TUpdate_replaced_ecnumbers & SetUpdate_replaced_ecnumbers(void)
Select the variant.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
const TAdd_file_descriptors & GetAdd_file_descriptors(void) const
Get the variant data.
const TRemove_duplicate_features & GetRemove_duplicate_features(void) const
Get the variant data.
const TRetranslate_cds & GetRetranslate_cds(void) const
Get the variant data.
TRemove_duplicate_features & SetRemove_duplicate_features(void)
Select the variant.
const TAecr & GetAecr(void) const
Get the variant data.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
TRemove_xrefs & SetRemove_xrefs(void)
Select the variant.
const TRemove_sequences & GetRemove_sequences(void) const
Get the variant data.
TRemove_feature & SetRemove_feature(void)
Select the variant.
TConvert_feature & SetConvert_feature(void)
Select the variant.
TAdjust_features_for_gaps & SetAdjust_features_for_gaps(void)
Select the variant.
TMake_gene_xrefs & SetMake_gene_xrefs(void)
Select the variant.
TRetranslate_cds & SetRetranslate_cds(void)
Select the variant.
TParse & SetParse(void)
Select the variant.
TUpdate_sequences & SetUpdate_sequences(void)
Select the variant.
const TUpdate_sequences & GetUpdate_sequences(void) const
Get the variant data.
const TUpdate_replaced_ecnumbers & GetUpdate_replaced_ecnumbers(void) const
Get the variant data.
const TFix_pub_caps & GetFix_pub_caps(void) const
Get the variant data.
virtual void Reset(void)
Reset the whole object.
TFix_pub_caps & SetFix_pub_caps(void)
Select the variant.
TAdd_feature & SetAdd_feature(void)
Select the variant.
TSort_fields & SetSort_fields(void)
Select the variant.
const TAdd_feature & GetAdd_feature(void) const
Get the variant data.
TAdd_file_descriptors & SetAdd_file_descriptors(void)
Select the variant.
TFix_format & SetFix_format(void)
Select the variant.
TPerform_autofix & SetPerform_autofix(void)
Select the variant.
static const char *const sm_SelectionNames[]
TAutodef & SetAutodef(void)
Select the variant.
TApply_molinfo_block & SetApply_molinfo_block(void)
Select the variant.
TFix_sets & SetFix_sets(void)
Select the variant.
const TFix_sets & GetFix_sets(void) const
Get the variant data.
const TRemove_descriptor & GetRemove_descriptor(void) const
Get the variant data.
const TPerform_autofix & GetPerform_autofix(void) const
Get the variant data.
const TFix_format & GetFix_format(void) const
Get the variant data.
const TAutodef & GetAutodef(void) const
Get the variant data.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
TFix_caps & SetFix_caps(void)
Select the variant.
const TMake_gene_xrefs & GetMake_gene_xrefs(void) const
Get the variant data.
NCBI_NS_NCBI::CSerialObject * m_object
const TSort_fields & GetSort_fields(void) const
Get the variant data.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
const TEdit_location & GetEdit_location(void) const
Get the variant data.
const TParse & GetParse(void) const
Get the variant data.
const TAdjust_features_for_gaps & GetAdjust_features_for_gaps(void) const
Get the variant data.
TCreate_tsa_ids & SetCreate_tsa_ids(void)
Select the variant.
const TConvert_feature & GetConvert_feature(void) const
Get the variant data.
const TFix_caps & GetFix_caps(void) const
Get the variant data.
const TRemove_xrefs & GetRemove_xrefs(void) const
Get the variant data.
const TCreate_tsa_ids & GetCreate_tsa_ids(void) const
Get the variant data.
TApply_table & SetApply_table(void)
Select the variant.
TEdit_location & SetEdit_location(void)
Select the variant.
TAecr & SetAecr(void)
Select the variant.
const TApply_molinfo_block & GetApply_molinfo_block(void) const
Get the variant data.
const TApply_table & GetApply_table(void) const
Get the variant data.
const TFix_author & GetFix_author(void) const
Get the variant data.
TFix_author & SetFix_author(void)
Select the variant.
@ e_not_set
No variant selected.
@ e_not_set
static MDB_envinfo info
Definition: mdb_load.c:37
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Wed Sep 04 15:01:33 2024 by modify_doxy.py rev. 669887