NCBI C++ ToolKit
PIR_block_.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 PIR_block_.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/seqblock/seqblock.asn">seqblock.asn</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/seqblock/seqblock.def">seqblock.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_SEQBLOCK_PIR_BLOCK_BASE_HPP
42 #define OBJECTS_SEQBLOCK_PIR_BLOCK_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #include <list>
49 #include <string>
50 
52 
53 #ifndef BEGIN_objects_SCOPE
54 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
55 # define END_objects_SCOPE END_SCOPE(objects)
56 #endif
57 BEGIN_objects_SCOPE // namespace ncbi::objects::
58 
59 
60 // forward declarations
61 class CSeq_id;
62 
63 
64 // generated classes
65 
66 
67 /** @addtogroup dataspec_PIR_General
68  *
69  * @{
70  */
71 
72 /////////////////////////////////////////////////////////////////////////////
73 /// PIR specific descriptions
74 ///
75 /// CPIR_block_Base --
76 ///
77 
79 {
81 public:
82  // constructor
83  CPIR_block_Base(void);
84  // destructor
85  virtual ~CPIR_block_Base(void);
86 
87  // type info
89 
90  // types
91  typedef bool THad_punct;
92  typedef string THost;
93  typedef string TSource;
94  typedef string TSummary;
95  typedef string TGenetic;
96  typedef string TIncludes;
97  typedef string TPlacement;
98  typedef string TSuperfamily;
99  typedef list< string > TKeywords;
100  typedef string TCross_reference;
101  typedef string TDate;
102  typedef string TSeq_raw;
103  typedef list< CRef< CSeq_id > > TSeqref;
104 
105  // member index
106  enum class E_memberIndex {
107  e__allMandatory = 0,
108  e_had_punct,
109  e_host,
110  e_source,
111  e_summary,
112  e_genetic,
113  e_includes,
114  e_placement,
115  e_superfamily,
116  e_keywords,
117  e_cross_reference,
118  e_date,
119  e_seq_raw,
120  e_seqref
121  };
123 
124  // getters
125  // setters
126 
127  /// had punctuation in sequence ?
128  /// Check if a value has been assigned to Had_punct data member.
129  ///
130  /// Data member Had_punct is optional;
131  /// its type is defined as 'typedef bool THad_punct'
132  /// @return
133  /// - true, if a value has been assigned.
134  /// - false, otherwise.
135  bool IsSetHad_punct(void) const;
136 
137  /// Check if it is safe to call GetHad_punct method.
138  ///
139  /// @return
140  /// - true, if the data member is getatable.
141  /// - false, otherwise.
142  bool CanGetHad_punct(void) const;
143 
144  /// Reset Had_punct data member.
145  void ResetHad_punct(void);
146 
147  /// Get the Had_punct member data.
148  ///
149  /// @return
150  /// Copy of the member data.
151  THad_punct GetHad_punct(void) const;
152 
153  /// Assign a value to Had_punct data member.
154  ///
155  /// @param value
156  /// Value to assign
157  void SetHad_punct(THad_punct value);
158 
159  /// Assign a value to Had_punct data member.
160  ///
161  /// @return
162  /// Reference to the data value.
163  THad_punct& SetHad_punct(void);
164 
165  /// Check if a value has been assigned to Host data member.
166  ///
167  /// Data member Host is optional;
168  /// its type is defined as 'typedef string THost'
169  /// @return
170  /// - true, if a value has been assigned.
171  /// - false, otherwise.
172  bool IsSetHost(void) const;
173 
174  /// Check if it is safe to call GetHost method.
175  ///
176  /// @return
177  /// - true, if the data member is getatable.
178  /// - false, otherwise.
179  bool CanGetHost(void) const;
180 
181  /// Reset Host data member.
182  void ResetHost(void);
183 
184  /// Get the Host member data.
185  ///
186  /// @return
187  /// Reference to the member data.
188  const THost& GetHost(void) const;
189 
190  /// Assign a value to Host data member.
191  ///
192  /// @param value
193  /// Value to assign
194  void SetHost(const THost& value);
195  void SetHost(THost&& value);
196 
197  /// Assign a value to Host data member.
198  ///
199  /// @return
200  /// Reference to the data value.
201  THost& SetHost(void);
202 
203  /// source line
204  /// Check if a value has been assigned to Source data member.
205  ///
206  /// Data member Source is optional;
207  /// its type is defined as 'typedef string TSource'
208  /// @return
209  /// - true, if a value has been assigned.
210  /// - false, otherwise.
211  bool IsSetSource(void) const;
212 
213  /// Check if it is safe to call GetSource method.
214  ///
215  /// @return
216  /// - true, if the data member is getatable.
217  /// - false, otherwise.
218  bool CanGetSource(void) const;
219 
220  /// Reset Source data member.
221  void ResetSource(void);
222 
223  /// Get the Source member data.
224  ///
225  /// @return
226  /// Reference to the member data.
227  const TSource& GetSource(void) const;
228 
229  /// Assign a value to Source data member.
230  ///
231  /// @param value
232  /// Value to assign
233  void SetSource(const TSource& value);
234  void SetSource(TSource&& value);
235 
236  /// Assign a value to Source data member.
237  ///
238  /// @return
239  /// Reference to the data value.
240  TSource& SetSource(void);
241 
242  /// Check if a value has been assigned to Summary data member.
243  ///
244  /// Data member Summary is optional;
245  /// its type is defined as 'typedef string TSummary'
246  /// @return
247  /// - true, if a value has been assigned.
248  /// - false, otherwise.
249  bool IsSetSummary(void) const;
250 
251  /// Check if it is safe to call GetSummary method.
252  ///
253  /// @return
254  /// - true, if the data member is getatable.
255  /// - false, otherwise.
256  bool CanGetSummary(void) const;
257 
258  /// Reset Summary data member.
259  void ResetSummary(void);
260 
261  /// Get the Summary member data.
262  ///
263  /// @return
264  /// Reference to the member data.
265  const TSummary& GetSummary(void) const;
266 
267  /// Assign a value to Summary data member.
268  ///
269  /// @param value
270  /// Value to assign
271  void SetSummary(const TSummary& value);
272  void SetSummary(TSummary&& value);
273 
274  /// Assign a value to Summary data member.
275  ///
276  /// @return
277  /// Reference to the data value.
278  TSummary& SetSummary(void);
279 
280  /// Check if a value has been assigned to Genetic data member.
281  ///
282  /// Data member Genetic is optional;
283  /// its type is defined as 'typedef string TGenetic'
284  /// @return
285  /// - true, if a value has been assigned.
286  /// - false, otherwise.
287  bool IsSetGenetic(void) const;
288 
289  /// Check if it is safe to call GetGenetic method.
290  ///
291  /// @return
292  /// - true, if the data member is getatable.
293  /// - false, otherwise.
294  bool CanGetGenetic(void) const;
295 
296  /// Reset Genetic data member.
297  void ResetGenetic(void);
298 
299  /// Get the Genetic member data.
300  ///
301  /// @return
302  /// Reference to the member data.
303  const TGenetic& GetGenetic(void) const;
304 
305  /// Assign a value to Genetic data member.
306  ///
307  /// @param value
308  /// Value to assign
309  void SetGenetic(const TGenetic& value);
310  void SetGenetic(TGenetic&& value);
311 
312  /// Assign a value to Genetic data member.
313  ///
314  /// @return
315  /// Reference to the data value.
316  TGenetic& SetGenetic(void);
317 
318  /// Check if a value has been assigned to Includes data member.
319  ///
320  /// Data member Includes is optional;
321  /// its type is defined as 'typedef string TIncludes'
322  /// @return
323  /// - true, if a value has been assigned.
324  /// - false, otherwise.
325  bool IsSetIncludes(void) const;
326 
327  /// Check if it is safe to call GetIncludes method.
328  ///
329  /// @return
330  /// - true, if the data member is getatable.
331  /// - false, otherwise.
332  bool CanGetIncludes(void) const;
333 
334  /// Reset Includes data member.
335  void ResetIncludes(void);
336 
337  /// Get the Includes member data.
338  ///
339  /// @return
340  /// Reference to the member data.
341  const TIncludes& GetIncludes(void) const;
342 
343  /// Assign a value to Includes data member.
344  ///
345  /// @param value
346  /// Value to assign
347  void SetIncludes(const TIncludes& value);
348  void SetIncludes(TIncludes&& value);
349 
350  /// Assign a value to Includes data member.
351  ///
352  /// @return
353  /// Reference to the data value.
354  TIncludes& SetIncludes(void);
355 
356  /// Check if a value has been assigned to Placement data member.
357  ///
358  /// Data member Placement is optional;
359  /// its type is defined as 'typedef string TPlacement'
360  /// @return
361  /// - true, if a value has been assigned.
362  /// - false, otherwise.
363  bool IsSetPlacement(void) const;
364 
365  /// Check if it is safe to call GetPlacement method.
366  ///
367  /// @return
368  /// - true, if the data member is getatable.
369  /// - false, otherwise.
370  bool CanGetPlacement(void) const;
371 
372  /// Reset Placement data member.
373  void ResetPlacement(void);
374 
375  /// Get the Placement member data.
376  ///
377  /// @return
378  /// Reference to the member data.
379  const TPlacement& GetPlacement(void) const;
380 
381  /// Assign a value to Placement data member.
382  ///
383  /// @param value
384  /// Value to assign
385  void SetPlacement(const TPlacement& value);
386  void SetPlacement(TPlacement&& value);
387 
388  /// Assign a value to Placement data member.
389  ///
390  /// @return
391  /// Reference to the data value.
392  TPlacement& SetPlacement(void);
393 
394  /// Check if a value has been assigned to Superfamily data member.
395  ///
396  /// Data member Superfamily is optional;
397  /// its type is defined as 'typedef string TSuperfamily'
398  /// @return
399  /// - true, if a value has been assigned.
400  /// - false, otherwise.
401  bool IsSetSuperfamily(void) const;
402 
403  /// Check if it is safe to call GetSuperfamily method.
404  ///
405  /// @return
406  /// - true, if the data member is getatable.
407  /// - false, otherwise.
408  bool CanGetSuperfamily(void) const;
409 
410  /// Reset Superfamily data member.
411  void ResetSuperfamily(void);
412 
413  /// Get the Superfamily member data.
414  ///
415  /// @return
416  /// Reference to the member data.
417  const TSuperfamily& GetSuperfamily(void) const;
418 
419  /// Assign a value to Superfamily data member.
420  ///
421  /// @param value
422  /// Value to assign
423  void SetSuperfamily(const TSuperfamily& value);
424  void SetSuperfamily(TSuperfamily&& value);
425 
426  /// Assign a value to Superfamily data member.
427  ///
428  /// @return
429  /// Reference to the data value.
430  TSuperfamily& SetSuperfamily(void);
431 
432  /// Check if a value has been assigned to Keywords data member.
433  ///
434  /// Data member Keywords is optional;
435  /// its type is defined as 'typedef list< string > TKeywords'
436  /// @return
437  /// - true, if a value has been assigned.
438  /// - false, otherwise.
439  bool IsSetKeywords(void) const;
440 
441  /// Check if it is safe to call GetKeywords method.
442  ///
443  /// @return
444  /// - true, if the data member is getatable.
445  /// - false, otherwise.
446  bool CanGetKeywords(void) const;
447 
448  /// Reset Keywords data member.
449  void ResetKeywords(void);
450 
451  /// Get the Keywords member data.
452  ///
453  /// @return
454  /// Reference to the member data.
455  const TKeywords& GetKeywords(void) const;
456 
457  /// Assign a value to Keywords data member.
458  ///
459  /// @return
460  /// Reference to the data value.
461  TKeywords& SetKeywords(void);
462 
463  /// Check if a value has been assigned to Cross_reference data member.
464  ///
465  /// Data member Cross_reference is optional;
466  /// its type is defined as 'typedef string TCross_reference'
467  /// @return
468  /// - true, if a value has been assigned.
469  /// - false, otherwise.
470  bool IsSetCross_reference(void) const;
471 
472  /// Check if it is safe to call GetCross_reference method.
473  ///
474  /// @return
475  /// - true, if the data member is getatable.
476  /// - false, otherwise.
477  bool CanGetCross_reference(void) const;
478 
479  /// Reset Cross_reference data member.
480  void ResetCross_reference(void);
481 
482  /// Get the Cross_reference member data.
483  ///
484  /// @return
485  /// Reference to the member data.
486  const TCross_reference& GetCross_reference(void) const;
487 
488  /// Assign a value to Cross_reference data member.
489  ///
490  /// @param value
491  /// Value to assign
492  void SetCross_reference(const TCross_reference& value);
493  void SetCross_reference(TCross_reference&& value);
494 
495  /// Assign a value to Cross_reference data member.
496  ///
497  /// @return
498  /// Reference to the data value.
499  TCross_reference& SetCross_reference(void);
500 
501  /// Check if a value has been assigned to Date data member.
502  ///
503  /// Data member Date is optional;
504  /// its type is defined as 'typedef string TDate'
505  /// @return
506  /// - true, if a value has been assigned.
507  /// - false, otherwise.
508  bool IsSetDate(void) const;
509 
510  /// Check if it is safe to call GetDate method.
511  ///
512  /// @return
513  /// - true, if the data member is getatable.
514  /// - false, otherwise.
515  bool CanGetDate(void) const;
516 
517  /// Reset Date data member.
518  void ResetDate(void);
519 
520  /// Get the Date member data.
521  ///
522  /// @return
523  /// Reference to the member data.
524  const TDate& GetDate(void) const;
525 
526  /// Assign a value to Date data member.
527  ///
528  /// @param value
529  /// Value to assign
530  void SetDate(const TDate& value);
531  void SetDate(TDate&& value);
532 
533  /// Assign a value to Date data member.
534  ///
535  /// @return
536  /// Reference to the data value.
537  TDate& SetDate(void);
538 
539  /// seq with punctuation
540  /// Check if a value has been assigned to Seq_raw data member.
541  ///
542  /// Data member Seq_raw is optional;
543  /// its type is defined as 'typedef string TSeq_raw'
544  /// @return
545  /// - true, if a value has been assigned.
546  /// - false, otherwise.
547  bool IsSetSeq_raw(void) const;
548 
549  /// Check if it is safe to call GetSeq_raw method.
550  ///
551  /// @return
552  /// - true, if the data member is getatable.
553  /// - false, otherwise.
554  bool CanGetSeq_raw(void) const;
555 
556  /// Reset Seq_raw data member.
557  void ResetSeq_raw(void);
558 
559  /// Get the Seq_raw member data.
560  ///
561  /// @return
562  /// Reference to the member data.
563  const TSeq_raw& GetSeq_raw(void) const;
564 
565  /// Assign a value to Seq_raw data member.
566  ///
567  /// @param value
568  /// Value to assign
569  void SetSeq_raw(const TSeq_raw& value);
570  void SetSeq_raw(TSeq_raw&& value);
571 
572  /// Assign a value to Seq_raw data member.
573  ///
574  /// @return
575  /// Reference to the data value.
576  TSeq_raw& SetSeq_raw(void);
577 
578  /// xref to other sequences
579  /// Check if a value has been assigned to Seqref data member.
580  ///
581  /// Data member Seqref is optional;
582  /// its type is defined as 'typedef list< CRef< CSeq_id > > TSeqref'
583  /// @return
584  /// - true, if a value has been assigned.
585  /// - false, otherwise.
586  bool IsSetSeqref(void) const;
587 
588  /// Check if it is safe to call GetSeqref method.
589  ///
590  /// @return
591  /// - true, if the data member is getatable.
592  /// - false, otherwise.
593  bool CanGetSeqref(void) const;
594 
595  /// Reset Seqref data member.
596  void ResetSeqref(void);
597 
598  /// Get the Seqref member data.
599  ///
600  /// @return
601  /// Reference to the member data.
602  const TSeqref& GetSeqref(void) const;
603 
604  /// Assign a value to Seqref data member.
605  ///
606  /// @return
607  /// Reference to the data value.
608  TSeqref& SetSeqref(void);
609 
610  /// Reset the whole object
611  virtual void Reset(void);
612 
613 
614 private:
615  // Prohibit copy constructor and assignment operator
618 
619  // data
620  Uint4 m_set_State[1];
622  string m_Host;
623  string m_Source;
624  string m_Summary;
625  string m_Genetic;
626  string m_Includes;
627  string m_Placement;
629  list< string > m_Keywords;
631  string m_Date;
632  string m_Seq_raw;
633  list< CRef< CSeq_id > > m_Seqref;
634 };
635 
636 /* @} */
637 
638 
639 
640 
641 
642 ///////////////////////////////////////////////////////////
643 ///////////////////// inline methods //////////////////////
644 ///////////////////////////////////////////////////////////
645 inline
647 {
648  return ((m_set_State[0] & 0x3) != 0);
649 }
650 
651 inline
653 {
654  return IsSetHad_punct();
655 }
656 
657 inline
659 {
660  m_Had_punct = 0;
661  m_set_State[0] &= ~0x3;
662 }
663 
664 inline
666 {
667  if (!CanGetHad_punct()) {
668  ThrowUnassigned(0);
669  }
670  return m_Had_punct;
671 }
672 
673 inline
675 {
676  m_Had_punct = value;
677  m_set_State[0] |= 0x3;
678 }
679 
680 inline
682 {
683 #ifdef _DEBUG
684  if (!IsSetHad_punct()) {
685  memset(&m_Had_punct,UnassignedByte(),sizeof(m_Had_punct));
686  }
687 #endif
688  m_set_State[0] |= 0x1;
689  return m_Had_punct;
690 }
691 
692 inline
694 {
695  return ((m_set_State[0] & 0xc) != 0);
696 }
697 
698 inline
700 {
701  return IsSetHost();
702 }
703 
704 inline
706 {
707  if (!CanGetHost()) {
708  ThrowUnassigned(1);
709  }
710  return m_Host;
711 }
712 
713 inline
715 {
716  m_Host = value;
717  m_set_State[0] |= 0xc;
718 }
719 
720 inline
722 {
723  m_Host = std::forward<CPIR_block_Base::THost>(value);
724  m_set_State[0] |= 0xc;
725 }
726 
727 inline
729 {
730 #ifdef _DEBUG
731  if (!IsSetHost()) {
733  }
734 #endif
735  m_set_State[0] |= 0x4;
736  return m_Host;
737 }
738 
739 inline
741 {
742  return ((m_set_State[0] & 0x30) != 0);
743 }
744 
745 inline
747 {
748  return IsSetSource();
749 }
750 
751 inline
753 {
754  if (!CanGetSource()) {
755  ThrowUnassigned(2);
756  }
757  return m_Source;
758 }
759 
760 inline
762 {
763  m_Source = value;
764  m_set_State[0] |= 0x30;
765 }
766 
767 inline
769 {
770  m_Source = std::forward<CPIR_block_Base::TSource>(value);
771  m_set_State[0] |= 0x30;
772 }
773 
774 inline
776 {
777 #ifdef _DEBUG
778  if (!IsSetSource()) {
780  }
781 #endif
782  m_set_State[0] |= 0x10;
783  return m_Source;
784 }
785 
786 inline
788 {
789  return ((m_set_State[0] & 0xc0) != 0);
790 }
791 
792 inline
794 {
795  return IsSetSummary();
796 }
797 
798 inline
800 {
801  if (!CanGetSummary()) {
802  ThrowUnassigned(3);
803  }
804  return m_Summary;
805 }
806 
807 inline
809 {
810  m_Summary = value;
811  m_set_State[0] |= 0xc0;
812 }
813 
814 inline
816 {
817  m_Summary = std::forward<CPIR_block_Base::TSummary>(value);
818  m_set_State[0] |= 0xc0;
819 }
820 
821 inline
823 {
824 #ifdef _DEBUG
825  if (!IsSetSummary()) {
827  }
828 #endif
829  m_set_State[0] |= 0x40;
830  return m_Summary;
831 }
832 
833 inline
835 {
836  return ((m_set_State[0] & 0x300) != 0);
837 }
838 
839 inline
841 {
842  return IsSetGenetic();
843 }
844 
845 inline
847 {
848  if (!CanGetGenetic()) {
849  ThrowUnassigned(4);
850  }
851  return m_Genetic;
852 }
853 
854 inline
856 {
857  m_Genetic = value;
858  m_set_State[0] |= 0x300;
859 }
860 
861 inline
863 {
864  m_Genetic = std::forward<CPIR_block_Base::TGenetic>(value);
865  m_set_State[0] |= 0x300;
866 }
867 
868 inline
870 {
871 #ifdef _DEBUG
872  if (!IsSetGenetic()) {
874  }
875 #endif
876  m_set_State[0] |= 0x100;
877  return m_Genetic;
878 }
879 
880 inline
882 {
883  return ((m_set_State[0] & 0xc00) != 0);
884 }
885 
886 inline
888 {
889  return IsSetIncludes();
890 }
891 
892 inline
894 {
895  if (!CanGetIncludes()) {
896  ThrowUnassigned(5);
897  }
898  return m_Includes;
899 }
900 
901 inline
903 {
904  m_Includes = value;
905  m_set_State[0] |= 0xc00;
906 }
907 
908 inline
910 {
911  m_Includes = std::forward<CPIR_block_Base::TIncludes>(value);
912  m_set_State[0] |= 0xc00;
913 }
914 
915 inline
917 {
918 #ifdef _DEBUG
919  if (!IsSetIncludes()) {
921  }
922 #endif
923  m_set_State[0] |= 0x400;
924  return m_Includes;
925 }
926 
927 inline
929 {
930  return ((m_set_State[0] & 0x3000) != 0);
931 }
932 
933 inline
935 {
936  return IsSetPlacement();
937 }
938 
939 inline
941 {
942  if (!CanGetPlacement()) {
943  ThrowUnassigned(6);
944  }
945  return m_Placement;
946 }
947 
948 inline
950 {
951  m_Placement = value;
952  m_set_State[0] |= 0x3000;
953 }
954 
955 inline
957 {
958  m_Placement = std::forward<CPIR_block_Base::TPlacement>(value);
959  m_set_State[0] |= 0x3000;
960 }
961 
962 inline
964 {
965 #ifdef _DEBUG
966  if (!IsSetPlacement()) {
968  }
969 #endif
970  m_set_State[0] |= 0x1000;
971  return m_Placement;
972 }
973 
974 inline
976 {
977  return ((m_set_State[0] & 0xc000) != 0);
978 }
979 
980 inline
982 {
983  return IsSetSuperfamily();
984 }
985 
986 inline
988 {
989  if (!CanGetSuperfamily()) {
990  ThrowUnassigned(7);
991  }
992  return m_Superfamily;
993 }
994 
995 inline
997 {
999  m_set_State[0] |= 0xc000;
1000 }
1001 
1002 inline
1004 {
1005  m_Superfamily = std::forward<CPIR_block_Base::TSuperfamily>(value);
1006  m_set_State[0] |= 0xc000;
1007 }
1008 
1009 inline
1011 {
1012 #ifdef _DEBUG
1013  if (!IsSetSuperfamily()) {
1015  }
1016 #endif
1017  m_set_State[0] |= 0x4000;
1018  return m_Superfamily;
1019 }
1020 
1021 inline
1023 {
1024  return ((m_set_State[0] & 0x30000) != 0);
1025 }
1026 
1027 inline
1029 {
1030  return true;
1031 }
1032 
1033 inline
1035 {
1036  return m_Keywords;
1037 }
1038 
1039 inline
1041 {
1042  m_set_State[0] |= 0x10000;
1043  return m_Keywords;
1044 }
1045 
1046 inline
1048 {
1049  return ((m_set_State[0] & 0xc0000) != 0);
1050 }
1051 
1052 inline
1054 {
1055  return IsSetCross_reference();
1056 }
1057 
1058 inline
1060 {
1061  if (!CanGetCross_reference()) {
1062  ThrowUnassigned(9);
1063  }
1064  return m_Cross_reference;
1065 }
1066 
1067 inline
1069 {
1071  m_set_State[0] |= 0xc0000;
1072 }
1073 
1074 inline
1076 {
1077  m_Cross_reference = std::forward<CPIR_block_Base::TCross_reference>(value);
1078  m_set_State[0] |= 0xc0000;
1079 }
1080 
1081 inline
1083 {
1084 #ifdef _DEBUG
1085  if (!IsSetCross_reference()) {
1087  }
1088 #endif
1089  m_set_State[0] |= 0x40000;
1090  return m_Cross_reference;
1091 }
1092 
1093 inline
1095 {
1096  return ((m_set_State[0] & 0x300000) != 0);
1097 }
1098 
1099 inline
1101 {
1102  return IsSetDate();
1103 }
1104 
1105 inline
1107 {
1108  if (!CanGetDate()) {
1109  ThrowUnassigned(10);
1110  }
1111  return m_Date;
1112 }
1113 
1114 inline
1116 {
1117  m_Date = value;
1118  m_set_State[0] |= 0x300000;
1119 }
1120 
1121 inline
1123 {
1124  m_Date = std::forward<CPIR_block_Base::TDate>(value);
1125  m_set_State[0] |= 0x300000;
1126 }
1127 
1128 inline
1130 {
1131 #ifdef _DEBUG
1132  if (!IsSetDate()) {
1134  }
1135 #endif
1136  m_set_State[0] |= 0x100000;
1137  return m_Date;
1138 }
1139 
1140 inline
1142 {
1143  return ((m_set_State[0] & 0xc00000) != 0);
1144 }
1145 
1146 inline
1148 {
1149  return IsSetSeq_raw();
1150 }
1151 
1152 inline
1154 {
1155  if (!CanGetSeq_raw()) {
1156  ThrowUnassigned(11);
1157  }
1158  return m_Seq_raw;
1159 }
1160 
1161 inline
1163 {
1164  m_Seq_raw = value;
1165  m_set_State[0] |= 0xc00000;
1166 }
1167 
1168 inline
1170 {
1171  m_Seq_raw = std::forward<CPIR_block_Base::TSeq_raw>(value);
1172  m_set_State[0] |= 0xc00000;
1173 }
1174 
1175 inline
1177 {
1178 #ifdef _DEBUG
1179  if (!IsSetSeq_raw()) {
1181  }
1182 #endif
1183  m_set_State[0] |= 0x400000;
1184  return m_Seq_raw;
1185 }
1186 
1187 inline
1189 {
1190  return ((m_set_State[0] & 0x3000000) != 0);
1191 }
1192 
1193 inline
1195 {
1196  return true;
1197 }
1198 
1199 inline
1201 {
1202  return m_Seqref;
1203 }
1204 
1205 inline
1207 {
1208  m_set_State[0] |= 0x1000000;
1209  return m_Seqref;
1210 }
1211 
1212 ///////////////////////////////////////////////////////////
1213 ////////////////// end of inline methods //////////////////
1214 ///////////////////////////////////////////////////////////
1215 
1216 
1217 
1218 
1219 
1220 END_objects_SCOPE // namespace ncbi::objects::
1221 
1223 
1224 
1225 #endif // OBJECTS_SEQBLOCK_PIR_BLOCK_BASE_HPP
PIR specific descriptions.
Definition: PIR_block_.hpp:79
Base class for all serializable objects.
Definition: serialbase.hpp:150
static char UnassignedByte(void)
Definition: serialbase.hpp:181
void ThrowUnassigned(TMemberIndex index) const
static string UnassignedString(void)
Definition: serialbase.hpp:175
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
#define NCBI_SEQBLOCK_EXPORT
Definition: ncbi_export.h:752
bool CanGetSeqref(void) const
Check if it is safe to call GetSeqref method.
bool CanGetSeq_raw(void) const
Check if it is safe to call GetSeq_raw method.
TSummary & SetSummary(void)
Assign a value to Summary data member.
Definition: PIR_block_.hpp:822
string TCross_reference
Definition: PIR_block_.hpp:100
const TCross_reference & GetCross_reference(void) const
Get the Cross_reference member data.
list< string > m_Keywords
Definition: PIR_block_.hpp:629
bool IsSetGenetic(void) const
Check if a value has been assigned to Genetic data member.
Definition: PIR_block_.hpp:834
TSeq_raw & SetSeq_raw(void)
Assign a value to Seq_raw data member.
bool IsSetSeq_raw(void) const
seq with punctuation Check if a value has been assigned to Seq_raw data member.
THad_punct GetHad_punct(void) const
Get the Had_punct member data.
Definition: PIR_block_.hpp:665
bool IsSetHost(void) const
Check if a value has been assigned to Host data member.
Definition: PIR_block_.hpp:693
const TIncludes & GetIncludes(void) const
Get the Includes member data.
Definition: PIR_block_.hpp:893
const TSummary & GetSummary(void) const
Get the Summary member data.
Definition: PIR_block_.hpp:799
const TPlacement & GetPlacement(void) const
Get the Placement member data.
Definition: PIR_block_.hpp:940
bool IsSetSource(void) const
source line Check if a value has been assigned to Source data member.
Definition: PIR_block_.hpp:740
CPIR_block_Base & operator=(const CPIR_block_Base &)
bool CanGetSummary(void) const
Check if it is safe to call GetSummary method.
Definition: PIR_block_.hpp:793
TPlacement & SetPlacement(void)
Assign a value to Placement data member.
Definition: PIR_block_.hpp:963
CPIR_block_Base(const CPIR_block_Base &)
bool CanGetHad_punct(void) const
Check if it is safe to call GetHad_punct method.
Definition: PIR_block_.hpp:652
TIncludes & SetIncludes(void)
Assign a value to Includes data member.
Definition: PIR_block_.hpp:916
bool IsSetPlacement(void) const
Check if a value has been assigned to Placement data member.
Definition: PIR_block_.hpp:928
TDate & SetDate(void)
Assign a value to Date data member.
THad_punct & SetHad_punct(void)
Assign a value to Had_punct data member.
Definition: PIR_block_.hpp:681
list< CRef< CSeq_id > > m_Seqref
Definition: PIR_block_.hpp:633
TCross_reference & SetCross_reference(void)
Assign a value to Cross_reference data member.
bool CanGetCross_reference(void) const
Check if it is safe to call GetCross_reference method.
bool CanGetKeywords(void) const
Check if it is safe to call GetKeywords method.
Tparent::CMemberIndex< E_memberIndex, 14 > TmemberIndex
Definition: PIR_block_.hpp:122
string TSuperfamily
Definition: PIR_block_.hpp:98
bool CanGetSource(void) const
Check if it is safe to call GetSource method.
Definition: PIR_block_.hpp:746
bool IsSetHad_punct(void) const
had punctuation in sequence ? Check if a value has been assigned to Had_punct data member.
Definition: PIR_block_.hpp:646
bool IsSetKeywords(void) const
Check if a value has been assigned to Keywords data member.
void ResetHad_punct(void)
Reset Had_punct data member.
Definition: PIR_block_.hpp:658
const THost & GetHost(void) const
Get the Host member data.
Definition: PIR_block_.hpp:705
CSerialObject Tparent
Definition: PIR_block_.hpp:80
Uint4 m_set_State[1]
Definition: PIR_block_.hpp:620
THost & SetHost(void)
Assign a value to Host data member.
Definition: PIR_block_.hpp:728
bool CanGetDate(void) const
Check if it is safe to call GetDate method.
bool CanGetPlacement(void) const
Check if it is safe to call GetPlacement method.
Definition: PIR_block_.hpp:934
string m_Superfamily
Definition: PIR_block_.hpp:628
string m_Cross_reference
Definition: PIR_block_.hpp:630
bool IsSetSummary(void) const
Check if a value has been assigned to Summary data member.
Definition: PIR_block_.hpp:787
TKeywords & SetKeywords(void)
Assign a value to Keywords data member.
bool CanGetSuperfamily(void) const
Check if it is safe to call GetSuperfamily method.
Definition: PIR_block_.hpp:981
TSeqref & SetSeqref(void)
Assign a value to Seqref data member.
TSource & SetSource(void)
Assign a value to Source data member.
Definition: PIR_block_.hpp:775
const TSeq_raw & GetSeq_raw(void) const
Get the Seq_raw member data.
bool IsSetSuperfamily(void) const
Check if a value has been assigned to Superfamily data member.
Definition: PIR_block_.hpp:975
const TSource & GetSource(void) const
Get the Source member data.
Definition: PIR_block_.hpp:752
TSuperfamily & SetSuperfamily(void)
Assign a value to Superfamily data member.
bool CanGetHost(void) const
Check if it is safe to call GetHost method.
Definition: PIR_block_.hpp:699
bool IsSetSeqref(void) const
xref to other sequences Check if a value has been assigned to Seqref data member.
list< CRef< CSeq_id > > TSeqref
Definition: PIR_block_.hpp:103
bool IsSetIncludes(void) const
Check if a value has been assigned to Includes data member.
Definition: PIR_block_.hpp:881
const TSeqref & GetSeqref(void) const
Get the Seqref member data.
const TSuperfamily & GetSuperfamily(void) const
Get the Superfamily member data.
Definition: PIR_block_.hpp:987
bool IsSetCross_reference(void) const
Check if a value has been assigned to Cross_reference data member.
bool CanGetIncludes(void) const
Check if it is safe to call GetIncludes method.
Definition: PIR_block_.hpp:887
TGenetic & SetGenetic(void)
Assign a value to Genetic data member.
Definition: PIR_block_.hpp:869
bool IsSetDate(void) const
Check if a value has been assigned to Date data member.
const TDate & GetDate(void) const
Get the Date member data.
const TGenetic & GetGenetic(void) const
Get the Genetic member data.
Definition: PIR_block_.hpp:846
list< string > TKeywords
Definition: PIR_block_.hpp:99
const TKeywords & GetKeywords(void) const
Get the Keywords member data.
bool CanGetGenetic(void) const
Check if it is safe to call GetGenetic method.
Definition: PIR_block_.hpp:840
Uint4 GetHost(TEndpointKey key)
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Fri Sep 20 14:58:07 2024 by modify_doxy.py rev. 669887