NCBI C++ ToolKit
Set_.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 Set_.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/objtools/eutils/efetch/pubmed_mathml3.xsd">pubmed_mathml3.xsd</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objtools/eutils/efetch/pubmed_mathml3.def">pubmed_mathml3.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 OBJTOOLS_EUTILS_EFETCH_SET_BASE_HPP
42 #define OBJTOOLS_EUTILS_EFETCH_SET_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #include <list>
49 #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 // generated classes
64 
65 
66 /** @addtogroup dataspec_pubmed_mathml3
67  *
68  * @{
69  */
70 
71 /////////////////////////////////////////////////////////////////////////////
72 ///
73 /// CSet_Base --
74 ///
75 
76 class CSet_Base : public CSerialObject
77 {
79 public:
80  // constructor
81  CSet_Base(void);
82  // destructor
83  virtual ~CSet_Base(void);
84 
85  // type info
87 
88  /////////////////////////////////////////////////////////////////////////////
89  ///
90  /// C_Attlist --
91  ///
92 
93  class C_Attlist : public CSerialObject
94  {
96  public:
97  // constructor
98  C_Attlist(void);
99  // destructor
100  ~C_Attlist(void);
101 
102  // type info
104 
105  // types
106  typedef string TId;
107  typedef string TXref;
108  typedef string TClass;
109  typedef string TStyle;
110  typedef string THref;
111  typedef string TEncoding;
112  typedef string TDefinitionURL;
113  typedef string TType;
114 
115  // member index
116  enum class E_memberIndex {
117  e__allMandatory = 0,
118  e_id,
119  e_xref,
120  e_class,
121  e_style,
122  e_href,
123  e_encoding,
125  e_type
126  };
128 
129  // getters
130  // setters
131 
132  /// Check if a value has been assigned to Id data member.
133  ///
134  /// Data member Id is optional;
135  /// its type is defined as 'typedef string TId'
136  /// @return
137  /// - true, if a value has been assigned.
138  /// - false, otherwise.
139  bool IsSetId(void) const;
140 
141  /// Check if it is safe to call GetId method.
142  ///
143  /// @return
144  /// - true, if the data member is getatable.
145  /// - false, otherwise.
146  bool CanGetId(void) const;
147 
148  /// Reset Id data member.
149  void ResetId(void);
150 
151  /// Get the Id member data.
152  ///
153  /// @return
154  /// Reference to the member data.
155  const TId& GetId(void) const;
156 
157  /// Assign a value to Id data member.
158  ///
159  /// @param value
160  /// Value to assign
161  void SetId(const TId& value);
162  void SetId(TId&& value);
163 
164  /// Assign a value to Id data member.
165  ///
166  /// @return
167  /// Reference to the data value.
168  TId& SetId(void);
169 
170  /// Check if a value has been assigned to Xref data member.
171  ///
172  /// Data member Xref is optional;
173  /// its type is defined as 'typedef string TXref'
174  /// @return
175  /// - true, if a value has been assigned.
176  /// - false, otherwise.
177  bool IsSetXref(void) const;
178 
179  /// Check if it is safe to call GetXref method.
180  ///
181  /// @return
182  /// - true, if the data member is getatable.
183  /// - false, otherwise.
184  bool CanGetXref(void) const;
185 
186  /// Reset Xref data member.
187  void ResetXref(void);
188 
189  /// Get the Xref member data.
190  ///
191  /// @return
192  /// Reference to the member data.
193  const TXref& GetXref(void) const;
194 
195  /// Assign a value to Xref data member.
196  ///
197  /// @param value
198  /// Value to assign
199  void SetXref(const TXref& value);
200  void SetXref(TXref&& value);
201 
202  /// Assign a value to Xref data member.
203  ///
204  /// @return
205  /// Reference to the data value.
206  TXref& SetXref(void);
207 
208  /// Check if a value has been assigned to Class data member.
209  ///
210  /// Data member Class is optional;
211  /// its type is defined as 'typedef string TClass'
212  /// @return
213  /// - true, if a value has been assigned.
214  /// - false, otherwise.
215  bool IsSetClass(void) const;
216 
217  /// Check if it is safe to call GetClass method.
218  ///
219  /// @return
220  /// - true, if the data member is getatable.
221  /// - false, otherwise.
222  bool CanGetClass(void) const;
223 
224  /// Reset Class data member.
225  void ResetClass(void);
226 
227  /// Get the Class member data.
228  ///
229  /// @return
230  /// Reference to the member data.
231  const TClass& GetClass(void) const;
232 
233  /// Assign a value to Class data member.
234  ///
235  /// @param value
236  /// Value to assign
237  void SetClass(const TClass& value);
238  void SetClass(TClass&& value);
239 
240  /// Assign a value to Class data member.
241  ///
242  /// @return
243  /// Reference to the data value.
244  TClass& SetClass(void);
245 
246  /// Check if a value has been assigned to Style data member.
247  ///
248  /// Data member Style is optional;
249  /// its type is defined as 'typedef string TStyle'
250  /// @return
251  /// - true, if a value has been assigned.
252  /// - false, otherwise.
253  bool IsSetStyle(void) const;
254 
255  /// Check if it is safe to call GetStyle method.
256  ///
257  /// @return
258  /// - true, if the data member is getatable.
259  /// - false, otherwise.
260  bool CanGetStyle(void) const;
261 
262  /// Reset Style data member.
263  void ResetStyle(void);
264 
265  /// Get the Style member data.
266  ///
267  /// @return
268  /// Reference to the member data.
269  const TStyle& GetStyle(void) const;
270 
271  /// Assign a value to Style data member.
272  ///
273  /// @param value
274  /// Value to assign
275  void SetStyle(const TStyle& value);
276  void SetStyle(TStyle&& value);
277 
278  /// Assign a value to Style data member.
279  ///
280  /// @return
281  /// Reference to the data value.
282  TStyle& SetStyle(void);
283 
284  /// Check if a value has been assigned to Href data member.
285  ///
286  /// Data member Href is optional;
287  /// its type is defined as 'typedef string THref'
288  /// @return
289  /// - true, if a value has been assigned.
290  /// - false, otherwise.
291  bool IsSetHref(void) const;
292 
293  /// Check if it is safe to call GetHref method.
294  ///
295  /// @return
296  /// - true, if the data member is getatable.
297  /// - false, otherwise.
298  bool CanGetHref(void) const;
299 
300  /// Reset Href data member.
301  void ResetHref(void);
302 
303  /// Get the Href member data.
304  ///
305  /// @return
306  /// Reference to the member data.
307  const THref& GetHref(void) const;
308 
309  /// Assign a value to Href data member.
310  ///
311  /// @param value
312  /// Value to assign
313  void SetHref(const THref& value);
314  void SetHref(THref&& value);
315 
316  /// Assign a value to Href data member.
317  ///
318  /// @return
319  /// Reference to the data value.
320  THref& SetHref(void);
321 
322  /// Check if a value has been assigned to Encoding data member.
323  ///
324  /// Data member Encoding is optional;
325  /// its type is defined as 'typedef string TEncoding'
326  /// @return
327  /// - true, if a value has been assigned.
328  /// - false, otherwise.
329  bool IsSetEncoding(void) const;
330 
331  /// Check if it is safe to call GetEncoding method.
332  ///
333  /// @return
334  /// - true, if the data member is getatable.
335  /// - false, otherwise.
336  bool CanGetEncoding(void) const;
337 
338  /// Reset Encoding data member.
339  void ResetEncoding(void);
340 
341  /// Get the Encoding member data.
342  ///
343  /// @return
344  /// Reference to the member data.
345  const TEncoding& GetEncoding(void) const;
346 
347  /// Assign a value to Encoding data member.
348  ///
349  /// @param value
350  /// Value to assign
351  void SetEncoding(const TEncoding& value);
352  void SetEncoding(TEncoding&& value);
353 
354  /// Assign a value to Encoding data member.
355  ///
356  /// @return
357  /// Reference to the data value.
358  TEncoding& SetEncoding(void);
359 
360  /// Check if a value has been assigned to DefinitionURL data member.
361  ///
362  /// Data member DefinitionURL is optional;
363  /// its type is defined as 'typedef string TDefinitionURL'
364  /// @return
365  /// - true, if a value has been assigned.
366  /// - false, otherwise.
367  bool IsSetDefinitionURL(void) const;
368 
369  /// Check if it is safe to call GetDefinitionURL method.
370  ///
371  /// @return
372  /// - true, if the data member is getatable.
373  /// - false, otherwise.
374  bool CanGetDefinitionURL(void) const;
375 
376  /// Reset DefinitionURL data member.
377  void ResetDefinitionURL(void);
378 
379  /// Get the DefinitionURL member data.
380  ///
381  /// @return
382  /// Reference to the member data.
383  const TDefinitionURL& GetDefinitionURL(void) const;
384 
385  /// Assign a value to DefinitionURL data member.
386  ///
387  /// @param value
388  /// Value to assign
391 
392  /// Assign a value to DefinitionURL data member.
393  ///
394  /// @return
395  /// Reference to the data value.
397 
398  /// Check if a value has been assigned to Type data member.
399  ///
400  /// Data member Type is optional;
401  /// its type is defined as 'typedef string TType'
402  /// @return
403  /// - true, if a value has been assigned.
404  /// - false, otherwise.
405  bool IsSetType(void) const;
406 
407  /// Check if it is safe to call GetType method.
408  ///
409  /// @return
410  /// - true, if the data member is getatable.
411  /// - false, otherwise.
412  bool CanGetType(void) const;
413 
414  /// Reset Type data member.
415  void ResetType(void);
416 
417  /// Get the Type member data.
418  ///
419  /// @return
420  /// Reference to the member data.
421  const TType& GetType(void) const;
422 
423  /// Assign a value to Type data member.
424  ///
425  /// @param value
426  /// Value to assign
427  void SetType(const TType& value);
428  void SetType(TType&& value);
429 
430  /// Assign a value to Type data member.
431  ///
432  /// @return
433  /// Reference to the data value.
434  TType& SetType(void);
435 
436  /// Reset the whole object
437  void Reset(void);
438 
439 
440  private:
441  // Prohibit copy constructor and assignment operator
444 
445  // data
447  string m_Id;
448  string m_Xref;
449  string m_Class;
450  string m_Style;
451  string m_Href;
452  string m_Encoding;
454  string m_Type;
455  };
456  /////////////////////////////////////////////////////////////////////////////
457  ///
458  /// C_E_BvarQ --
459  ///
460 
461  class C_E_BvarQ : public CBvarQ
462  {
463  typedef CBvarQ Tparent;
464  public:
465  C_E_BvarQ(void);
466 
467  // type info
469 
470  };
471  /////////////////////////////////////////////////////////////////////////////
472  ///
473  /// C_E_DomainQ --
474  ///
475 
476  class C_E_DomainQ : public CDomainQ
477  {
478  typedef CDomainQ Tparent;
479  public:
480  C_E_DomainQ(void);
481 
482  // type info
484 
485  };
486  /////////////////////////////////////////////////////////////////////////////
487  ///
488  /// C_E_ContExp --
489  ///
490 
491  class C_E_ContExp : public CContExp
492  {
493  typedef CContExp Tparent;
494  public:
495  C_E_ContExp(void);
496 
497  // type info
499 
500  };
501  // types
503  typedef list< CRef< C_E_BvarQ > > TBvarQ;
504  typedef list< CRef< C_E_DomainQ > > TDomainQ;
505  typedef list< CRef< C_E_ContExp > > TContExp;
506 
507  // member index
508  enum class E_memberIndex {
509  e__allMandatory = 0,
510  e_Attlist,
511  e_BvarQ,
512  e_DomainQ,
513  e_ContExp
514  };
516 
517  // getters
518  // setters
519 
520  /// Check if a value has been assigned to Attlist data member.
521  ///
522  /// Data member Attlist is mandatory;
523  /// its type is defined as 'typedef C_Attlist TAttlist'
524  /// @return
525  /// - true, if a value has been assigned.
526  /// - false, otherwise.
527  bool IsSetAttlist(void) const;
528 
529  /// Check if it is safe to call GetAttlist method.
530  ///
531  /// @return
532  /// - true, if the data member is getatable.
533  /// - false, otherwise.
534  bool CanGetAttlist(void) const;
535 
536  /// Reset Attlist data member.
537  void ResetAttlist(void);
538 
539  /// Get the Attlist member data.
540  ///
541  /// @return
542  /// Reference to the member data.
543  const TAttlist& GetAttlist(void) const;
544 
545  /// Assign a value to Attlist data member.
546  ///
547  /// @param value
548  /// Reference to value.
549  void SetAttlist(TAttlist& value);
550 
551  /// Assign a value to Attlist data member.
552  ///
553  /// @return
554  /// Reference to the data value.
555  TAttlist& SetAttlist(void);
556 
557  /// Check if a value has been assigned to BvarQ data member.
558  ///
559  /// Data member BvarQ is optional;
560  /// its type is defined as 'typedef list< CRef< C_E_BvarQ > > TBvarQ'
561  /// @return
562  /// - true, if a value has been assigned.
563  /// - false, otherwise.
564  bool IsSetBvarQ(void) const;
565 
566  /// Check if it is safe to call GetBvarQ method.
567  ///
568  /// @return
569  /// - true, if the data member is getatable.
570  /// - false, otherwise.
571  bool CanGetBvarQ(void) const;
572 
573  /// Reset BvarQ data member.
574  void ResetBvarQ(void);
575 
576  /// Get the BvarQ member data.
577  ///
578  /// @return
579  /// Reference to the member data.
580  const TBvarQ& GetBvarQ(void) const;
581 
582  /// Assign a value to BvarQ data member.
583  ///
584  /// @return
585  /// Reference to the data value.
586  TBvarQ& SetBvarQ(void);
587 
588  /// Check if a value has been assigned to DomainQ data member.
589  ///
590  /// Data member DomainQ is optional;
591  /// its type is defined as 'typedef list< CRef< C_E_DomainQ > > TDomainQ'
592  /// @return
593  /// - true, if a value has been assigned.
594  /// - false, otherwise.
595  bool IsSetDomainQ(void) const;
596 
597  /// Check if it is safe to call GetDomainQ method.
598  ///
599  /// @return
600  /// - true, if the data member is getatable.
601  /// - false, otherwise.
602  bool CanGetDomainQ(void) const;
603 
604  /// Reset DomainQ data member.
605  void ResetDomainQ(void);
606 
607  /// Get the DomainQ member data.
608  ///
609  /// @return
610  /// Reference to the member data.
611  const TDomainQ& GetDomainQ(void) const;
612 
613  /// Assign a value to DomainQ data member.
614  ///
615  /// @return
616  /// Reference to the data value.
617  TDomainQ& SetDomainQ(void);
618 
619  /// Check if a value has been assigned to ContExp data member.
620  ///
621  /// Data member ContExp is optional;
622  /// its type is defined as 'typedef list< CRef< C_E_ContExp > > TContExp'
623  /// @return
624  /// - true, if a value has been assigned.
625  /// - false, otherwise.
626  bool IsSetContExp(void) const;
627 
628  /// Check if it is safe to call GetContExp method.
629  ///
630  /// @return
631  /// - true, if the data member is getatable.
632  /// - false, otherwise.
633  bool CanGetContExp(void) const;
634 
635  /// Reset ContExp data member.
636  void ResetContExp(void);
637 
638  /// Get the ContExp member data.
639  ///
640  /// @return
641  /// Reference to the member data.
642  const TContExp& GetContExp(void) const;
643 
644  /// Assign a value to ContExp data member.
645  ///
646  /// @return
647  /// Reference to the data value.
648  TContExp& SetContExp(void);
649 
650  /// Reset the whole object
651  virtual void Reset(void);
652 
653 
654 private:
655  // Prohibit copy constructor and assignment operator
658 
659  // data
662  list< CRef< C_E_BvarQ > > m_BvarQ;
663  list< CRef< C_E_DomainQ > > m_DomainQ;
664  list< CRef< C_E_ContExp > > m_ContExp;
665 };
666 
667 /* @} */
668 
669 
670 
671 
672 
673 ///////////////////////////////////////////////////////////
674 ///////////////////// inline methods //////////////////////
675 ///////////////////////////////////////////////////////////
676 inline
678 {
679  return ((m_set_State[0] & 0x3) != 0);
680 }
681 
682 inline
684 {
685  return IsSetId();
686 }
687 
688 inline
690 {
691  if (!CanGetId()) {
692  ThrowUnassigned(0);
693  }
694  return m_Id;
695 }
696 
697 inline
699 {
700  m_Id = value;
701  m_set_State[0] |= 0x3;
702 }
703 
704 inline
706 {
707  m_Id = std::forward<CSet_Base::C_Attlist::TId>(value);
708  m_set_State[0] |= 0x3;
709 }
710 
711 inline
713 {
714 #ifdef _DEBUG
715  if (!IsSetId()) {
716  m_Id = UnassignedString();
717  }
718 #endif
719  m_set_State[0] |= 0x1;
720  return m_Id;
721 }
722 
723 inline
725 {
726  return ((m_set_State[0] & 0xc) != 0);
727 }
728 
729 inline
731 {
732  return IsSetXref();
733 }
734 
735 inline
737 {
738  if (!CanGetXref()) {
739  ThrowUnassigned(1);
740  }
741  return m_Xref;
742 }
743 
744 inline
746 {
747  m_Xref = value;
748  m_set_State[0] |= 0xc;
749 }
750 
751 inline
753 {
754  m_Xref = std::forward<CSet_Base::C_Attlist::TXref>(value);
755  m_set_State[0] |= 0xc;
756 }
757 
758 inline
760 {
761 #ifdef _DEBUG
762  if (!IsSetXref()) {
763  m_Xref = UnassignedString();
764  }
765 #endif
766  m_set_State[0] |= 0x4;
767  return m_Xref;
768 }
769 
770 inline
772 {
773  return ((m_set_State[0] & 0x30) != 0);
774 }
775 
776 inline
778 {
779  return IsSetClass();
780 }
781 
782 inline
784 {
785  if (!CanGetClass()) {
786  ThrowUnassigned(2);
787  }
788  return m_Class;
789 }
790 
791 inline
793 {
794  m_Class = value;
795  m_set_State[0] |= 0x30;
796 }
797 
798 inline
800 {
801  m_Class = std::forward<CSet_Base::C_Attlist::TClass>(value);
802  m_set_State[0] |= 0x30;
803 }
804 
805 inline
807 {
808 #ifdef _DEBUG
809  if (!IsSetClass()) {
810  m_Class = UnassignedString();
811  }
812 #endif
813  m_set_State[0] |= 0x10;
814  return m_Class;
815 }
816 
817 inline
819 {
820  return ((m_set_State[0] & 0xc0) != 0);
821 }
822 
823 inline
825 {
826  return IsSetStyle();
827 }
828 
829 inline
831 {
832  if (!CanGetStyle()) {
833  ThrowUnassigned(3);
834  }
835  return m_Style;
836 }
837 
838 inline
840 {
841  m_Style = value;
842  m_set_State[0] |= 0xc0;
843 }
844 
845 inline
847 {
848  m_Style = std::forward<CSet_Base::C_Attlist::TStyle>(value);
849  m_set_State[0] |= 0xc0;
850 }
851 
852 inline
854 {
855 #ifdef _DEBUG
856  if (!IsSetStyle()) {
857  m_Style = UnassignedString();
858  }
859 #endif
860  m_set_State[0] |= 0x40;
861  return m_Style;
862 }
863 
864 inline
866 {
867  return ((m_set_State[0] & 0x300) != 0);
868 }
869 
870 inline
872 {
873  return IsSetHref();
874 }
875 
876 inline
878 {
879  if (!CanGetHref()) {
880  ThrowUnassigned(4);
881  }
882  return m_Href;
883 }
884 
885 inline
887 {
888  m_Href = value;
889  m_set_State[0] |= 0x300;
890 }
891 
892 inline
894 {
895  m_Href = std::forward<CSet_Base::C_Attlist::THref>(value);
896  m_set_State[0] |= 0x300;
897 }
898 
899 inline
901 {
902 #ifdef _DEBUG
903  if (!IsSetHref()) {
904  m_Href = UnassignedString();
905  }
906 #endif
907  m_set_State[0] |= 0x100;
908  return m_Href;
909 }
910 
911 inline
913 {
914  return ((m_set_State[0] & 0xc00) != 0);
915 }
916 
917 inline
919 {
920  return IsSetEncoding();
921 }
922 
923 inline
925 {
926  if (!CanGetEncoding()) {
927  ThrowUnassigned(5);
928  }
929  return m_Encoding;
930 }
931 
932 inline
934 {
935  m_Encoding = value;
936  m_set_State[0] |= 0xc00;
937 }
938 
939 inline
941 {
942  m_Encoding = std::forward<CSet_Base::C_Attlist::TEncoding>(value);
943  m_set_State[0] |= 0xc00;
944 }
945 
946 inline
948 {
949 #ifdef _DEBUG
950  if (!IsSetEncoding()) {
951  m_Encoding = UnassignedString();
952  }
953 #endif
954  m_set_State[0] |= 0x400;
955  return m_Encoding;
956 }
957 
958 inline
960 {
961  return ((m_set_State[0] & 0x3000) != 0);
962 }
963 
964 inline
966 {
967  return IsSetDefinitionURL();
968 }
969 
970 inline
972 {
973  if (!CanGetDefinitionURL()) {
974  ThrowUnassigned(6);
975  }
976  return m_DefinitionURL;
977 }
978 
979 inline
981 {
982  m_DefinitionURL = value;
983  m_set_State[0] |= 0x3000;
984 }
985 
986 inline
988 {
989  m_DefinitionURL = std::forward<CSet_Base::C_Attlist::TDefinitionURL>(value);
990  m_set_State[0] |= 0x3000;
991 }
992 
993 inline
995 {
996 #ifdef _DEBUG
997  if (!IsSetDefinitionURL()) {
998  m_DefinitionURL = UnassignedString();
999  }
1000 #endif
1001  m_set_State[0] |= 0x1000;
1002  return m_DefinitionURL;
1003 }
1004 
1005 inline
1007 {
1008  return ((m_set_State[0] & 0xc000) != 0);
1009 }
1010 
1011 inline
1013 {
1014  return IsSetType();
1015 }
1016 
1017 inline
1019 {
1020  if (!CanGetType()) {
1021  ThrowUnassigned(7);
1022  }
1023  return m_Type;
1024 }
1025 
1026 inline
1028 {
1029  m_Type = value;
1030  m_set_State[0] |= 0xc000;
1031 }
1032 
1033 inline
1035 {
1036  m_Type = std::forward<CSet_Base::C_Attlist::TType>(value);
1037  m_set_State[0] |= 0xc000;
1038 }
1039 
1040 inline
1042 {
1043 #ifdef _DEBUG
1044  if (!IsSetType()) {
1045  m_Type = UnassignedString();
1046  }
1047 #endif
1048  m_set_State[0] |= 0x4000;
1049  return m_Type;
1050 }
1051 
1052 inline
1054 {
1055 }
1056 
1057 inline
1059 {
1060 }
1061 
1062 inline
1064 {
1065 }
1066 
1067 inline
1068 bool CSet_Base::IsSetAttlist(void) const
1069 {
1070  return m_Attlist.NotEmpty();
1071 }
1072 
1073 inline
1075 {
1076  return true;
1077 }
1078 
1079 inline
1081 {
1082  if ( !m_Attlist ) {
1083  const_cast<CSet_Base*>(this)->ResetAttlist();
1084  }
1085  return (*m_Attlist);
1086 }
1087 
1088 inline
1090 {
1091  if ( !m_Attlist ) {
1092  ResetAttlist();
1093  }
1094  return (*m_Attlist);
1095 }
1096 
1097 inline
1098 bool CSet_Base::IsSetBvarQ(void) const
1099 {
1100  return ((m_set_State[0] & 0xc) != 0);
1101 }
1102 
1103 inline
1104 bool CSet_Base::CanGetBvarQ(void) const
1105 {
1106  return true;
1107 }
1108 
1109 inline
1111 {
1112  return m_BvarQ;
1113 }
1114 
1115 inline
1117 {
1118  m_set_State[0] |= 0x4;
1119  return m_BvarQ;
1120 }
1121 
1122 inline
1123 bool CSet_Base::IsSetDomainQ(void) const
1124 {
1125  return ((m_set_State[0] & 0x30) != 0);
1126 }
1127 
1128 inline
1130 {
1131  return true;
1132 }
1133 
1134 inline
1136 {
1137  return m_DomainQ;
1138 }
1139 
1140 inline
1142 {
1143  m_set_State[0] |= 0x10;
1144  return m_DomainQ;
1145 }
1146 
1147 inline
1148 bool CSet_Base::IsSetContExp(void) const
1149 {
1150  return ((m_set_State[0] & 0xc0) != 0);
1151 }
1152 
1153 inline
1155 {
1156  return true;
1157 }
1158 
1159 inline
1161 {
1162  return m_ContExp;
1163 }
1164 
1165 inline
1167 {
1168  m_set_State[0] |= 0x40;
1169  return m_ContExp;
1170 }
1171 
1172 ///////////////////////////////////////////////////////////
1173 ////////////////// end of inline methods //////////////////
1174 ///////////////////////////////////////////////////////////
1175 
1176 
1177 
1178 
1179 
1180 END_objects_SCOPE // namespace ncbi::objects::
1181 
1183 
1184 
1185 #endif // OBJTOOLS_EUTILS_EFETCH_SET_BASE_HPP
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CBvarQ –.
Definition: BvarQ.hpp:66
CContExp –.
Definition: ContExp.hpp:66
CDomainQ –.
Definition: DomainQ.hpp:66
CRef –.
Definition: ncbiobj.hpp:618
Base class for all serializable objects.
Definition: serialbase.hpp:150
C_Attlist –.
Definition: Set_.hpp:94
C_E_BvarQ –.
Definition: Set_.hpp:462
C_E_ContExp –.
Definition: Set_.hpp:492
C_E_DomainQ –.
Definition: Set_.hpp:477
CSet_Base –.
Definition: Set_.hpp:77
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
bool CanGetContExp(void) const
Check if it is safe to call GetContExp method.
Definition: Set_.hpp:1154
CSet_Base(const CSet_Base &)
TEncoding & SetEncoding(void)
Assign a value to Encoding data member.
Definition: Set_.hpp:947
bool CanGetClass(void) const
Check if it is safe to call GetClass method.
Definition: Set_.hpp:777
virtual ~CSet_Base(void)
Definition: Set_.cpp:234
bool IsSetType(void) const
Check if a value has been assigned to Type data member.
Definition: Set_.hpp:1006
CSerialObject Tparent
Definition: Set_.hpp:95
const TXref & GetXref(void) const
Get the Xref member data.
Definition: Set_.hpp:736
C_Attlist TAttlist
Definition: Set_.hpp:502
list< CRef< C_E_BvarQ > > m_BvarQ
Definition: Set_.hpp:662
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
Definition: Set_.hpp:1089
virtual void Reset(void)
Reset the whole object.
Definition: Set_.cpp:202
void ResetBvarQ(void)
Reset BvarQ data member.
Definition: Set_.cpp:184
const TEncoding & GetEncoding(void) const
Get the Encoding member data.
Definition: Set_.hpp:924
list< CRef< C_E_ContExp > > m_ContExp
Definition: Set_.hpp:664
bool IsSetEncoding(void) const
Check if a value has been assigned to Encoding data member.
Definition: Set_.hpp:912
void ResetType(void)
Reset Type data member.
Definition: Set_.cpp:92
void ResetXref(void)
Reset Xref data member.
Definition: Set_.cpp:56
void ResetAttlist(void)
Reset Attlist data member.
Definition: Set_.cpp:170
list< CRef< C_E_ContExp > > TContExp
Definition: Set_.hpp:505
const TStyle & GetStyle(void) const
Get the Style member data.
Definition: Set_.hpp:830
TDefinitionURL & SetDefinitionURL(void)
Assign a value to DefinitionURL data member.
Definition: Set_.hpp:994
E_memberIndex
Definition: Set_.hpp:508
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
Definition: Set_.hpp:1074
void ResetId(void)
Reset Id data member.
Definition: Set_.cpp:50
const TDefinitionURL & GetDefinitionURL(void) const
Get the DefinitionURL member data.
Definition: Set_.hpp:971
Uint4 m_set_State[1]
Definition: Set_.hpp:446
string m_DefinitionURL
Definition: Set_.hpp:453
bool IsSetDomainQ(void) const
Check if a value has been assigned to DomainQ data member.
Definition: Set_.hpp:1123
list< CRef< C_E_DomainQ > > m_DomainQ
Definition: Set_.hpp:663
string TDefinitionURL
Definition: Set_.hpp:112
bool CanGetXref(void) const
Check if it is safe to call GetXref method.
Definition: Set_.hpp:730
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
Definition: Set_.hpp:1068
CSet_Base(void)
Definition: Set_.cpp:225
bool CanGetId(void) const
Check if it is safe to call GetId method.
Definition: Set_.hpp:683
void ResetStyle(void)
Reset Style data member.
Definition: Set_.cpp:68
void Reset(void)
Reset the whole object.
Definition: Set_.cpp:98
TContExp & SetContExp(void)
Assign a value to ContExp data member.
Definition: Set_.hpp:1166
CSerialObject Tparent
Definition: Set_.hpp:78
TStyle & SetStyle(void)
Assign a value to Style data member.
Definition: Set_.hpp:853
const TContExp & GetContExp(void) const
Get the ContExp member data.
Definition: Set_.hpp:1160
THref & SetHref(void)
Assign a value to Href data member.
Definition: Set_.hpp:900
const TType & GetType(void) const
Get the Type member data.
Definition: Set_.hpp:1018
bool IsSetStyle(void) const
Check if a value has been assigned to Style data member.
Definition: Set_.hpp:818
Tparent::CMemberIndex< E_memberIndex, 5 > TmemberIndex
Definition: Set_.hpp:515
bool CanGetHref(void) const
Check if it is safe to call GetHref method.
Definition: Set_.hpp:871
bool IsSetBvarQ(void) const
Check if a value has been assigned to BvarQ data member.
Definition: Set_.hpp:1098
const THref & GetHref(void) const
Get the Href member data.
Definition: Set_.hpp:877
const TBvarQ & GetBvarQ(void) const
Get the BvarQ member data.
Definition: Set_.hpp:1110
CRef< TAttlist > m_Attlist
Definition: Set_.hpp:661
bool IsSetDefinitionURL(void) const
Check if a value has been assigned to DefinitionURL data member.
Definition: Set_.hpp:959
TType & SetType(void)
Assign a value to Type data member.
Definition: Set_.hpp:1041
void ResetDomainQ(void)
Reset DomainQ data member.
Definition: Set_.cpp:190
TXref & SetXref(void)
Assign a value to Xref data member.
Definition: Set_.hpp:759
void ResetDefinitionURL(void)
Reset DefinitionURL data member.
Definition: Set_.cpp:86
C_Attlist(const C_Attlist &)
bool CanGetStyle(void) const
Check if it is safe to call GetStyle method.
Definition: Set_.hpp:824
list< CRef< C_E_DomainQ > > TDomainQ
Definition: Set_.hpp:504
bool CanGetBvarQ(void) const
Check if it is safe to call GetBvarQ method.
Definition: Set_.hpp:1104
TClass & SetClass(void)
Assign a value to Class data member.
Definition: Set_.hpp:806
bool IsSetClass(void) const
Check if a value has been assigned to Class data member.
Definition: Set_.hpp:771
const TClass & GetClass(void) const
Get the Class member data.
Definition: Set_.hpp:783
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
Definition: Set_.hpp:1080
void ResetEncoding(void)
Reset Encoding data member.
Definition: Set_.cpp:80
void ResetContExp(void)
Reset ContExp data member.
Definition: Set_.cpp:196
C_Attlist & operator=(const C_Attlist &)
bool CanGetEncoding(void) const
Check if it is safe to call GetEncoding method.
Definition: Set_.hpp:918
bool CanGetDomainQ(void) const
Check if it is safe to call GetDomainQ method.
Definition: Set_.hpp:1129
bool IsSetXref(void) const
Check if a value has been assigned to Xref data member.
Definition: Set_.hpp:724
const TId & GetId(void) const
Get the Id member data.
Definition: Set_.hpp:689
Tparent::CMemberIndex< E_memberIndex, 9 > TmemberIndex
Definition: Set_.hpp:127
bool IsSetHref(void) const
Check if a value has been assigned to Href data member.
Definition: Set_.hpp:865
TBvarQ & SetBvarQ(void)
Assign a value to BvarQ data member.
Definition: Set_.hpp:1116
TId & SetId(void)
Assign a value to Id data member.
Definition: Set_.hpp:712
Uint4 m_set_State[1]
Definition: Set_.hpp:660
bool CanGetType(void) const
Check if it is safe to call GetType method.
Definition: Set_.hpp:1012
bool IsSetContExp(void) const
Check if a value has been assigned to ContExp data member.
Definition: Set_.hpp:1148
void ResetClass(void)
Reset Class data member.
Definition: Set_.cpp:62
TDomainQ & SetDomainQ(void)
Assign a value to DomainQ data member.
Definition: Set_.hpp:1141
const TDomainQ & GetDomainQ(void) const
Get the DomainQ member data.
Definition: Set_.hpp:1135
bool CanGetDefinitionURL(void) const
Check if it is safe to call GetDefinitionURL method.
Definition: Set_.hpp:965
CSet_Base & operator=(const CSet_Base &)
bool IsSetId(void) const
Check if a value has been assigned to Id data member.
Definition: Set_.hpp:677
DECLARE_INTERNAL_TYPE_INFO()
void ResetHref(void)
Reset Href data member.
Definition: Set_.cpp:74
list< CRef< C_E_BvarQ > > TBvarQ
Definition: Set_.hpp:503
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Mon Jun 24 05:23:00 2024 by modify_doxy.py rev. 669887