NCBI C++ ToolKit
PluginValueConstraint_.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 PluginValueConstraint_.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/gui/objects/gui_objects.asn">gui_objects.asn</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/gui/objects/gui_objects.def">gui_objects.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 GUI_OBJECTS_PLUGINVALUECONSTRAINT_BASE_HPP
42 #define GUI_OBJECTS_PLUGINVALUECONSTRAINT_BASE_HPP
43 
44 // extra headers
45 #include <gui/gui_export.h>
46 
47 // standard includes
48 #include <serial/serialbase.hpp>
49 
50 // generated includes
51 #include <list>
52 #include <string>
53 
55 
56 #ifndef BEGIN_objects_SCOPE
57 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
58 # define END_objects_SCOPE END_SCOPE(objects)
59 #endif
60 BEGIN_objects_SCOPE // namespace ncbi::objects::
61 
62 
63 // forward declarations
65 
66 
67 // generated classes
68 
69 
70 /** @addtogroup dataspec_NCBI_Plugin
71  *
72  * @{
73  */
74 
75 /////////////////////////////////////////////////////////////////////////////
76 ///-
77 ///- Value constraints
78 ///-
79 ///
80 /// CPluginValueConstraint_Base --
81 ///
82 
84 {
86 public:
87  // constructor
89  // destructor
90  virtual ~CPluginValueConstraint_Base(void);
91 
92  // type info
94 
95 
96  /// Choice variants.
97  enum E_Choice {
98  e_not_set = 0, ///< No variant selected
99  e_Lower, ///<- simple constraints for built-in types
103  e_Seq_repr, ///<- bioseq constraints - segmented, raw, virtual, etc
104  e_Seq_mol, ///<- nucleic acid, protein, etc
110  e_Entry_type, ///<- seq-entry constraints - genprod set, nucprot set, etc
111  e_Annot_type, ///<- seq-annot constraints - feature table, alignments, graphs
112  e_Feat_type, ///<- seq-feat constraints - gene, rna, user, pub, etc.
113  e_Feat_subtype, ///<- any recognized subtype
114  e_Feat_has_product, ///<- only features with the product flag set
115  e_Project_item_type ///<- ProjectItem constraints - the type of item available in a project item - this should be available either from CTypeInfo - or from type_info<>.
116  };
117  /// Maximum+1 value of the choice variant enumerator.
119  e_MaxChoice = 18 ///< == e_Project_item_type+1
120  };
121 
122  /// Reset the whole object
123  virtual void Reset(void);
124 
125  /// Reset the selection (set it to e_not_set).
126  virtual void ResetSelection(void);
127 
128  /// Which variant is currently selected.
129  ///
130  /// @return
131  /// Choice state enumerator.
132  E_Choice Which(void) const;
133 
134  /// Verify selection, throw exception if it differs from the expected.
135  ///
136  /// @param index
137  /// Expected selection.
138  void CheckSelected(E_Choice index) const;
139 
140  /// Throw 'InvalidSelection' exception.
141  ///
142  /// @param index
143  /// Expected selection.
144  NCBI_NORETURN void ThrowInvalidSelection(E_Choice index) const;
145 
146  /// Retrieve selection name (for diagnostic purposes).
147  ///
148  /// @param index
149  /// One of possible selection states.
150  /// @return
151  /// Name string.
152  static string SelectionName(E_Choice index);
153 
154  /// Select the requested variant if needed.
155  ///
156  /// @param index
157  /// New selection state.
158  /// @param reset
159  /// Flag that defines the resetting of the variant data. The data will
160  /// be reset if either the current selection differs from the new one,
161  /// or the flag is set to eDoResetVariant.
163  /// Select the requested variant if needed,
164  /// allocating CObject variants from memory pool.
165  void Select(E_Choice index,
166  EResetVariant reset,
167  CObjectMemoryPool* pool);
168 
169  // types
170  typedef string TLower;
171  typedef string TUpper;
173  typedef list< string > TSet;
174  typedef list< int > TSeq_repr;
175  typedef list< int > TSeq_mol;
176  typedef int TSeq_length_lower;
177  typedef int TSeq_length_upper;
179  typedef int TEntry_type;
180  typedef int TAnnot_type;
181  typedef list< int > TFeat_type;
182  typedef list< int > TFeat_subtype;
183  typedef string TProject_item_type;
184 
185  // getters
186  // setters
187 
188 
189  /// Check if variant Lower is selected.
190  ///
191  /// Lower type is defined as 'typedef string TLower'.
192  /// @return
193  /// - true, if the variant is selected.
194  /// - false, otherwise.
195  bool IsLower(void) const;
196 
197  /// Get the variant data.
198  ///
199  /// @return
200  /// Reference to the data.
201  const TLower& GetLower(void) const;
202 
203  /// Select the variant.
204  ///
205  /// @return
206  /// Reference to the variant data.
207  TLower& SetLower(void);
208 
209  /// Select the variant and set its data.
210  ///
211  /// @param value
212  /// Variant data.
213  void SetLower(const TLower& value);
214 
215 
216  /// Check if variant Upper is selected.
217  ///
218  /// Upper type is defined as 'typedef string TUpper'.
219  /// @return
220  /// - true, if the variant is selected.
221  /// - false, otherwise.
222  bool IsUpper(void) const;
223 
224  /// Get the variant data.
225  ///
226  /// @return
227  /// Reference to the data.
228  const TUpper& GetUpper(void) const;
229 
230  /// Select the variant.
231  ///
232  /// @return
233  /// Reference to the variant data.
234  TUpper& SetUpper(void);
235 
236  /// Select the variant and set its data.
237  ///
238  /// @param value
239  /// Variant data.
240  void SetUpper(const TUpper& value);
241 
242 
243  /// Check if variant Range is selected.
244  ///
245  /// Range type is defined as 'typedef CPluginValueRangeConstraint TRange'.
246  /// @return
247  /// - true, if the variant is selected.
248  /// - false, otherwise.
249  bool IsRange(void) const;
250 
251  /// Get the variant data.
252  ///
253  /// @return
254  /// Reference to the data.
255  const TRange& GetRange(void) const;
256 
257  /// Select the variant.
258  ///
259  /// @return
260  /// Reference to the variant data.
261  TRange& SetRange(void);
262  /// Select the variant and set its data.
263  ///
264  /// @param value
265  /// Reference to the data.
266  void SetRange(TRange& value);
267 
268 
269  /// Check if variant Set is selected.
270  ///
271  /// Set type is defined as 'typedef list< string > TSet'.
272  /// @return
273  /// - true, if the variant is selected.
274  /// - false, otherwise.
275  bool IsSet(void) const;
276 
277  /// Get the variant data.
278  ///
279  /// @return
280  /// Reference to the data.
281  const TSet& GetSet(void) const;
282 
283  /// Select the variant.
284  ///
285  /// @return
286  /// Reference to the variant data.
287  TSet& SetSet(void);
288 
289 
290  /// Check if variant Seq_repr is selected.
291  ///
292  /// Seq_repr type is defined as 'typedef list< int > TSeq_repr'.
293  /// @return
294  /// - true, if the variant is selected.
295  /// - false, otherwise.
296  bool IsSeq_repr(void) const;
297 
298  /// Get the variant data.
299  ///
300  /// @return
301  /// Reference to the data.
302  const TSeq_repr& GetSeq_repr(void) const;
303 
304  /// Select the variant.
305  ///
306  /// @return
307  /// Reference to the variant data.
308  TSeq_repr& SetSeq_repr(void);
309 
310 
311  /// Check if variant Seq_mol is selected.
312  ///
313  /// Seq_mol type is defined as 'typedef list< int > TSeq_mol'.
314  /// @return
315  /// - true, if the variant is selected.
316  /// - false, otherwise.
317  bool IsSeq_mol(void) const;
318 
319  /// Get the variant data.
320  ///
321  /// @return
322  /// Reference to the data.
323  const TSeq_mol& GetSeq_mol(void) const;
324 
325  /// Select the variant.
326  ///
327  /// @return
328  /// Reference to the variant data.
329  TSeq_mol& SetSeq_mol(void);
330 
331 
332  /// Check if variant Seq_mol_same_type is selected.
333  ///
334  /// @return
335  /// - true, if the variant is selected.
336  /// - false, otherwise.
337  bool IsSeq_mol_same_type(void) const;
338 
339  /// Select the variant.
340  void SetSeq_mol_same_type(void);
341 
342 
343  /// Check if variant Seq_length_lower is selected.
344  ///
345  /// Seq_length_lower type is defined as 'typedef int TSeq_length_lower'.
346  /// @return
347  /// - true, if the variant is selected.
348  /// - false, otherwise.
349  bool IsSeq_length_lower(void) const;
350 
351  /// Get the variant data.
352  ///
353  /// @return
354  /// Copy of the variant data.
355  TSeq_length_lower GetSeq_length_lower(void) const;
356 
357  /// Select the variant.
358  ///
359  /// @return
360  /// Reference to the variant data.
361  TSeq_length_lower& SetSeq_length_lower(void);
362 
363  /// Select the variant and set its data.
364  ///
365  /// @param value
366  /// Variant data.
367  void SetSeq_length_lower(TSeq_length_lower value);
368 
369 
370  /// Check if variant Seq_length_upper is selected.
371  ///
372  /// Seq_length_upper type is defined as 'typedef int TSeq_length_upper'.
373  /// @return
374  /// - true, if the variant is selected.
375  /// - false, otherwise.
376  bool IsSeq_length_upper(void) const;
377 
378  /// Get the variant data.
379  ///
380  /// @return
381  /// Copy of the variant data.
382  TSeq_length_upper GetSeq_length_upper(void) const;
383 
384  /// Select the variant.
385  ///
386  /// @return
387  /// Reference to the variant data.
388  TSeq_length_upper& SetSeq_length_upper(void);
389 
390  /// Select the variant and set its data.
391  ///
392  /// @param value
393  /// Variant data.
394  void SetSeq_length_upper(TSeq_length_upper value);
395 
396 
397  /// Check if variant Seq_length_range is selected.
398  ///
399  /// Seq_length_range type is defined as 'typedef CPluginValueRangeConstraint TSeq_length_range'.
400  /// @return
401  /// - true, if the variant is selected.
402  /// - false, otherwise.
403  bool IsSeq_length_range(void) const;
404 
405  /// Get the variant data.
406  ///
407  /// @return
408  /// Reference to the data.
409  const TSeq_length_range& GetSeq_length_range(void) const;
410 
411  /// Select the variant.
412  ///
413  /// @return
414  /// Reference to the variant data.
415  TSeq_length_range& SetSeq_length_range(void);
416  /// Select the variant and set its data.
417  ///
418  /// @param value
419  /// Reference to the data.
420  void SetSeq_length_range(TSeq_length_range& value);
421 
422 
423  /// Check if variant Seq_length_same is selected.
424  ///
425  /// @return
426  /// - true, if the variant is selected.
427  /// - false, otherwise.
428  bool IsSeq_length_same(void) const;
429 
430  /// Select the variant.
431  void SetSeq_length_same(void);
432 
433 
434  /// Check if variant Entry_type is selected.
435  ///
436  /// Entry_type type is defined as 'typedef int TEntry_type'.
437  /// @return
438  /// - true, if the variant is selected.
439  /// - false, otherwise.
440  bool IsEntry_type(void) const;
441 
442  /// Get the variant data.
443  ///
444  /// @return
445  /// Copy of the variant data.
446  TEntry_type GetEntry_type(void) const;
447 
448  /// Select the variant.
449  ///
450  /// @return
451  /// Reference to the variant data.
452  TEntry_type& SetEntry_type(void);
453 
454  /// Select the variant and set its data.
455  ///
456  /// @param value
457  /// Variant data.
458  void SetEntry_type(TEntry_type value);
459 
460 
461  /// Check if variant Annot_type is selected.
462  ///
463  /// Annot_type type is defined as 'typedef int TAnnot_type'.
464  /// @return
465  /// - true, if the variant is selected.
466  /// - false, otherwise.
467  bool IsAnnot_type(void) const;
468 
469  /// Get the variant data.
470  ///
471  /// @return
472  /// Copy of the variant data.
473  TAnnot_type GetAnnot_type(void) const;
474 
475  /// Select the variant.
476  ///
477  /// @return
478  /// Reference to the variant data.
479  TAnnot_type& SetAnnot_type(void);
480 
481  /// Select the variant and set its data.
482  ///
483  /// @param value
484  /// Variant data.
485  void SetAnnot_type(TAnnot_type value);
486 
487 
488  /// Check if variant Feat_type is selected.
489  ///
490  /// Feat_type type is defined as 'typedef list< int > TFeat_type'.
491  /// @return
492  /// - true, if the variant is selected.
493  /// - false, otherwise.
494  bool IsFeat_type(void) const;
495 
496  /// Get the variant data.
497  ///
498  /// @return
499  /// Reference to the data.
500  const TFeat_type& GetFeat_type(void) const;
501 
502  /// Select the variant.
503  ///
504  /// @return
505  /// Reference to the variant data.
506  TFeat_type& SetFeat_type(void);
507 
508 
509  /// Check if variant Feat_subtype is selected.
510  ///
511  /// Feat_subtype type is defined as 'typedef list< int > TFeat_subtype'.
512  /// @return
513  /// - true, if the variant is selected.
514  /// - false, otherwise.
515  bool IsFeat_subtype(void) const;
516 
517  /// Get the variant data.
518  ///
519  /// @return
520  /// Reference to the data.
521  const TFeat_subtype& GetFeat_subtype(void) const;
522 
523  /// Select the variant.
524  ///
525  /// @return
526  /// Reference to the variant data.
527  TFeat_subtype& SetFeat_subtype(void);
528 
529 
530  /// Check if variant Feat_has_product is selected.
531  ///
532  /// @return
533  /// - true, if the variant is selected.
534  /// - false, otherwise.
535  bool IsFeat_has_product(void) const;
536 
537  /// Select the variant.
538  void SetFeat_has_product(void);
539 
540 
541  /// Check if variant Project_item_type is selected.
542  ///
543  /// Project_item_type type is defined as 'typedef string TProject_item_type'.
544  /// @return
545  /// - true, if the variant is selected.
546  /// - false, otherwise.
547  bool IsProject_item_type(void) const;
548 
549  /// Get the variant data.
550  ///
551  /// @return
552  /// Reference to the data.
553  const TProject_item_type& GetProject_item_type(void) const;
554 
555  /// Select the variant.
556  ///
557  /// @return
558  /// Reference to the variant data.
559  TProject_item_type& SetProject_item_type(void);
560 
561  /// Select the variant and set its data.
562  ///
563  /// @param value
564  /// Variant data.
565  void SetProject_item_type(const TProject_item_type& value);
566 
567 
568 private:
569  // copy constructor and assignment operator
572  // choice state
574  // helper methods
575  void DoSelect(E_Choice index, CObjectMemoryPool* pool = 0);
576 
577  static const char* const sm_SelectionNames[];
578  // data
579  union {
580  NCBI_NS_NCBI::CUnionBuffer<TSet> m_Set;
581  NCBI_NS_NCBI::CUnionBuffer<TSeq_repr> m_Seq_repr;
582  NCBI_NS_NCBI::CUnionBuffer<TSeq_mol> m_Seq_mol;
587  NCBI_NS_NCBI::CUnionBuffer<TFeat_type> m_Feat_type;
588  NCBI_NS_NCBI::CUnionBuffer<TFeat_subtype> m_Feat_subtype;
589  NCBI_NS_NCBI::CUnionBuffer<NCBI_NS_STD::string> m_string;
590  NCBI_NS_NCBI::CSerialObject *m_object;
591  };
592 };
593 
594 /* @} */
595 
596 
597 
598 
599 
600 ///////////////////////////////////////////////////////////
601 ///////////////////// inline methods //////////////////////
602 ///////////////////////////////////////////////////////////
603 inline
605 {
606  return m_choice;
607 }
608 
609 inline
611 {
612  if ( m_choice != index )
613  ThrowInvalidSelection(index);
614 }
615 
616 inline
617 void CPluginValueConstraint_Base::Select(E_Choice index, NCBI_NS_NCBI::EResetVariant reset, NCBI_NS_NCBI::CObjectMemoryPool* pool)
618 {
619  if ( reset == NCBI_NS_NCBI::eDoResetVariant || m_choice != index ) {
620  if ( m_choice != e_not_set )
621  ResetSelection();
622  DoSelect(index, pool);
623  }
624 }
625 
626 inline
628 {
629  Select(index, reset, 0);
630 }
631 
632 inline
634 {
635  return m_choice == e_Lower;
636 }
637 
638 inline
640 {
642  return *m_string;
643 }
644 
645 inline
647 {
649  return *m_string;
650 }
651 
652 inline
654 {
655  return m_choice == e_Upper;
656 }
657 
658 inline
660 {
662  return *m_string;
663 }
664 
665 inline
667 {
669  return *m_string;
670 }
671 
672 inline
674 {
675  return m_choice == e_Range;
676 }
677 
678 inline
680 {
681  return m_choice == e_Set;
682 }
683 
684 inline
686 {
688  return *m_Set;
689 }
690 
691 inline
693 {
695  return *m_Set;
696 }
697 
698 inline
700 {
701  return m_choice == e_Seq_repr;
702 }
703 
704 inline
706 {
708  return *m_Seq_repr;
709 }
710 
711 inline
713 {
715  return *m_Seq_repr;
716 }
717 
718 inline
720 {
721  return m_choice == e_Seq_mol;
722 }
723 
724 inline
726 {
728  return *m_Seq_mol;
729 }
730 
731 inline
733 {
735  return *m_Seq_mol;
736 }
737 
738 inline
740 {
741  return m_choice == e_Seq_mol_same_type;
742 }
743 
744 inline
746 {
748 }
749 
750 inline
752 {
753  return m_choice == e_Seq_length_lower;
754 }
755 
756 inline
758 {
760  return m_Seq_length_lower;
761 }
762 
763 inline
765 {
767  return m_Seq_length_lower;
768 }
769 
770 inline
772 {
775 }
776 
777 inline
779 {
780  return m_choice == e_Seq_length_upper;
781 }
782 
783 inline
785 {
787  return m_Seq_length_upper;
788 }
789 
790 inline
792 {
794  return m_Seq_length_upper;
795 }
796 
797 inline
799 {
802 }
803 
804 inline
806 {
807  return m_choice == e_Seq_length_range;
808 }
809 
810 inline
812 {
813  return m_choice == e_Seq_length_same;
814 }
815 
816 inline
818 {
820 }
821 
822 inline
824 {
825  return m_choice == e_Entry_type;
826 }
827 
828 inline
830 {
832  return m_Entry_type;
833 }
834 
835 inline
837 {
839  return m_Entry_type;
840 }
841 
842 inline
844 {
847 }
848 
849 inline
851 {
852  return m_choice == e_Annot_type;
853 }
854 
855 inline
857 {
859  return m_Annot_type;
860 }
861 
862 inline
864 {
866  return m_Annot_type;
867 }
868 
869 inline
871 {
874 }
875 
876 inline
878 {
879  return m_choice == e_Feat_type;
880 }
881 
882 inline
884 {
886  return *m_Feat_type;
887 }
888 
889 inline
891 {
893  return *m_Feat_type;
894 }
895 
896 inline
898 {
899  return m_choice == e_Feat_subtype;
900 }
901 
902 inline
904 {
906  return *m_Feat_subtype;
907 }
908 
909 inline
911 {
913  return *m_Feat_subtype;
914 }
915 
916 inline
918 {
919  return m_choice == e_Feat_has_product;
920 }
921 
922 inline
924 {
926 }
927 
928 inline
930 {
931  return m_choice == e_Project_item_type;
932 }
933 
934 inline
936 {
938  return *m_string;
939 }
940 
941 inline
943 {
945  return *m_string;
946 }
947 
948 ///////////////////////////////////////////////////////////
949 ////////////////// end of inline methods //////////////////
950 ///////////////////////////////////////////////////////////
951 
952 
953 
954 
955 
956 END_objects_SCOPE // namespace ncbi::objects::
957 
959 
960 
961 #endif // GUI_OBJECTS_PLUGINVALUECONSTRAINT_BASE_HPP
Base class for all serializable objects.
Definition: serialbase.hpp:150
EResetVariant
Definition: serialbase.hpp:76
@ eDoResetVariant
Definition: serialbase.hpp:77
@ eDoNotResetVariant
Definition: serialbase.hpp:78
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define NCBI_GUIOBJECTS_EXPORT
Definition: gui_export.h:511
bool IsLower(void) const
Check if variant Lower is selected.
TFeat_subtype & SetFeat_subtype(void)
Select the variant.
bool IsAnnot_type(void) const
Check if variant Annot_type is selected.
bool IsRange(void) const
Check if variant Range is selected.
TSeq_length_upper & SetSeq_length_upper(void)
Select the variant.
TSeq_length_lower GetSeq_length_lower(void) const
Get the variant data.
TEntry_type & SetEntry_type(void)
Select the variant.
const TSet & GetSet(void) const
Get the variant data.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
NCBI_NS_NCBI::CUnionBuffer< TSeq_mol > m_Seq_mol
TSet & SetSet(void)
Select the variant.
const TProject_item_type & GetProject_item_type(void) const
Get the variant data.
bool IsSeq_mol(void) const
Check if variant Seq_mol is selected.
bool IsSeq_length_lower(void) const
Check if variant Seq_length_lower is selected.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
TSeq_length_lower & SetSeq_length_lower(void)
Select the variant.
NCBI_NS_NCBI::CUnionBuffer< TFeat_type > m_Feat_type
TSeq_repr & SetSeq_repr(void)
Select the variant.
TUpper & SetUpper(void)
Select the variant.
TAnnot_type & SetAnnot_type(void)
Select the variant.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
void SetSeq_length_same(void)
Select the variant.
bool IsSeq_length_upper(void) const
Check if variant Seq_length_upper is selected.
NCBI_NS_NCBI::CUnionBuffer< TSeq_repr > m_Seq_repr
TFeat_type & SetFeat_type(void)
Select the variant.
NCBI_NS_NCBI::CUnionBuffer< TFeat_type > m_Feat_type
bool IsSeq_length_range(void) const
Check if variant Seq_length_range is selected.
CPluginValueConstraint_Base & operator=(const CPluginValueConstraint_Base &)
E_Choice Which(void) const
Which variant is currently selected.
TSeq_length_upper GetSeq_length_upper(void) const
Get the variant data.
TEntry_type GetEntry_type(void) const
Get the variant data.
NCBI_NS_NCBI::CUnionBuffer< TFeat_subtype > m_Feat_subtype
NCBI_NS_NCBI::CSerialObject * m_object
bool IsSet(void) const
Check if variant Set is selected.
NCBI_NS_NCBI::CUnionBuffer< TSeq_mol > m_Seq_mol
bool IsFeat_subtype(void) const
Check if variant Feat_subtype is selected.
const TLower & GetLower(void) const
Get the variant data.
bool IsSeq_repr(void) const
Check if variant Seq_repr is selected.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
NCBI_NS_NCBI::CUnionBuffer< TSet > m_Set
CPluginValueRangeConstraint TRange
bool IsSeq_mol_same_type(void) const
Check if variant Seq_mol_same_type is selected.
void SetSeq_mol_same_type(void)
Select the variant.
const TSeq_mol & GetSeq_mol(void) const
Get the variant data.
const TFeat_type & GetFeat_type(void) const
Get the variant data.
NCBI_NS_NCBI::CUnionBuffer< TFeat_subtype > m_Feat_subtype
const TFeat_subtype & GetFeat_subtype(void) const
Get the variant data.
bool IsFeat_has_product(void) const
Check if variant Feat_has_product is selected.
void SetFeat_has_product(void)
Select the variant.
TSeq_mol & SetSeq_mol(void)
Select the variant.
NCBI_NS_NCBI::CUnionBuffer< TSeq_repr > m_Seq_repr
const TSeq_repr & GetSeq_repr(void) const
Get the variant data.
bool IsSeq_length_same(void) const
Check if variant Seq_length_same is selected.
TLower & SetLower(void)
Select the variant.
CPluginValueRangeConstraint TSeq_length_range
CPluginValueConstraint_Base(const CPluginValueConstraint_Base &)
NCBI_NS_NCBI::CUnionBuffer< TSet > m_Set
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
bool IsUpper(void) const
Check if variant Upper is selected.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
bool IsProject_item_type(void) const
Check if variant Project_item_type is selected.
TProject_item_type & SetProject_item_type(void)
Select the variant.
const TUpper & GetUpper(void) const
Get the variant data.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
bool IsFeat_type(void) const
Check if variant Feat_type is selected.
bool IsEntry_type(void) const
Check if variant Entry_type is selected.
TAnnot_type GetAnnot_type(void) const
Get the variant data.
Defines to provide correct exporting from DLLs in Windows.
@ e_not_set
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Wed Apr 17 13:10:09 2024 by modify_doxy.py rev. 669887