NCBI C++ ToolKit
Munderover_.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 Munderover_.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_MUNDEROVER_BASE_HPP
42 #define OBJTOOLS_EUTILS_EFETCH_MUNDEROVER_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #include <list>
49 #include <string>
51 
53 
54 #ifndef BEGIN_objects_SCOPE
55 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
56 # define END_objects_SCOPE END_SCOPE(objects)
57 #endif
58 BEGIN_objects_SCOPE // namespace ncbi::objects::
59 
60 
61 // generated classes
62 
63 
64 /** @addtogroup dataspec_pubmed_mathml3
65  *
66  * @{
67  */
68 
69 /////////////////////////////////////////////////////////////////////////////
70 ///
71 /// CMunderover_Base --
72 ///
73 
75 {
77 public:
78  // constructor
79  CMunderover_Base(void);
80  // destructor
81  virtual ~CMunderover_Base(void);
82 
83  // type info
85 
86  /////////////////////////////////////////////////////////////////////////////
87  ///
88  /// C_Attlist --
89  ///
90 
91  class C_Attlist : public CSerialObject
92  {
94  public:
95  // constructor
96  C_Attlist(void);
97  // destructor
98  ~C_Attlist(void);
99 
100  // type info
102 
106  };
107 
108  /// Access to EAttlist_accent's attributes (values, names) as defined in spec
109  static const NCBI_NS_NCBI::CEnumeratedTypeValues* ENUM_METHOD_NAME(EAttlist_accent)(void);
110 
114  };
115 
116  /// Access to EAttlist_accentunder's attributes (values, names) as defined in spec
117  static const NCBI_NS_NCBI::CEnumeratedTypeValues* ENUM_METHOD_NAME(EAttlist_accentunder)(void);
118 
123  };
124 
125  /// Access to EAttlist_align's attributes (values, names) as defined in spec
126  static const NCBI_NS_NCBI::CEnumeratedTypeValues* ENUM_METHOD_NAME(EAttlist_align)(void);
127 
128  // types
129  typedef string TId;
130  typedef string TXref;
131  typedef string TClass;
132  typedef string TStyle;
133  typedef string THref;
134  typedef string TMathcolor;
135  typedef string TMathbackground;
139 
140  // member index
141  enum class E_memberIndex {
142  e__allMandatory = 0,
143  e_id,
144  e_xref,
145  e_class,
146  e_style,
147  e_href,
148  e_mathcolor,
150  e_accent,
152  e_align
153  };
155 
156  // getters
157  // setters
158 
159  /// Check if a value has been assigned to Id data member.
160  ///
161  /// Data member Id is optional;
162  /// its type is defined as 'typedef string TId'
163  /// @return
164  /// - true, if a value has been assigned.
165  /// - false, otherwise.
166  bool IsSetId(void) const;
167 
168  /// Check if it is safe to call GetId method.
169  ///
170  /// @return
171  /// - true, if the data member is getatable.
172  /// - false, otherwise.
173  bool CanGetId(void) const;
174 
175  /// Reset Id data member.
176  void ResetId(void);
177 
178  /// Get the Id member data.
179  ///
180  /// @return
181  /// Reference to the member data.
182  const TId& GetId(void) const;
183 
184  /// Assign a value to Id data member.
185  ///
186  /// @param value
187  /// Value to assign
188  void SetId(const TId& value);
189  void SetId(TId&& value);
190 
191  /// Assign a value to Id data member.
192  ///
193  /// @return
194  /// Reference to the data value.
195  TId& SetId(void);
196 
197  /// Check if a value has been assigned to Xref data member.
198  ///
199  /// Data member Xref is optional;
200  /// its type is defined as 'typedef string TXref'
201  /// @return
202  /// - true, if a value has been assigned.
203  /// - false, otherwise.
204  bool IsSetXref(void) const;
205 
206  /// Check if it is safe to call GetXref method.
207  ///
208  /// @return
209  /// - true, if the data member is getatable.
210  /// - false, otherwise.
211  bool CanGetXref(void) const;
212 
213  /// Reset Xref data member.
214  void ResetXref(void);
215 
216  /// Get the Xref member data.
217  ///
218  /// @return
219  /// Reference to the member data.
220  const TXref& GetXref(void) const;
221 
222  /// Assign a value to Xref data member.
223  ///
224  /// @param value
225  /// Value to assign
226  void SetXref(const TXref& value);
227  void SetXref(TXref&& value);
228 
229  /// Assign a value to Xref data member.
230  ///
231  /// @return
232  /// Reference to the data value.
233  TXref& SetXref(void);
234 
235  /// Check if a value has been assigned to Class data member.
236  ///
237  /// Data member Class is optional;
238  /// its type is defined as 'typedef string TClass'
239  /// @return
240  /// - true, if a value has been assigned.
241  /// - false, otherwise.
242  bool IsSetClass(void) const;
243 
244  /// Check if it is safe to call GetClass method.
245  ///
246  /// @return
247  /// - true, if the data member is getatable.
248  /// - false, otherwise.
249  bool CanGetClass(void) const;
250 
251  /// Reset Class data member.
252  void ResetClass(void);
253 
254  /// Get the Class member data.
255  ///
256  /// @return
257  /// Reference to the member data.
258  const TClass& GetClass(void) const;
259 
260  /// Assign a value to Class data member.
261  ///
262  /// @param value
263  /// Value to assign
264  void SetClass(const TClass& value);
265  void SetClass(TClass&& value);
266 
267  /// Assign a value to Class data member.
268  ///
269  /// @return
270  /// Reference to the data value.
271  TClass& SetClass(void);
272 
273  /// Check if a value has been assigned to Style data member.
274  ///
275  /// Data member Style is optional;
276  /// its type is defined as 'typedef string TStyle'
277  /// @return
278  /// - true, if a value has been assigned.
279  /// - false, otherwise.
280  bool IsSetStyle(void) const;
281 
282  /// Check if it is safe to call GetStyle method.
283  ///
284  /// @return
285  /// - true, if the data member is getatable.
286  /// - false, otherwise.
287  bool CanGetStyle(void) const;
288 
289  /// Reset Style data member.
290  void ResetStyle(void);
291 
292  /// Get the Style member data.
293  ///
294  /// @return
295  /// Reference to the member data.
296  const TStyle& GetStyle(void) const;
297 
298  /// Assign a value to Style data member.
299  ///
300  /// @param value
301  /// Value to assign
302  void SetStyle(const TStyle& value);
303  void SetStyle(TStyle&& value);
304 
305  /// Assign a value to Style data member.
306  ///
307  /// @return
308  /// Reference to the data value.
309  TStyle& SetStyle(void);
310 
311  /// Check if a value has been assigned to Href data member.
312  ///
313  /// Data member Href is optional;
314  /// its type is defined as 'typedef string THref'
315  /// @return
316  /// - true, if a value has been assigned.
317  /// - false, otherwise.
318  bool IsSetHref(void) const;
319 
320  /// Check if it is safe to call GetHref method.
321  ///
322  /// @return
323  /// - true, if the data member is getatable.
324  /// - false, otherwise.
325  bool CanGetHref(void) const;
326 
327  /// Reset Href data member.
328  void ResetHref(void);
329 
330  /// Get the Href member data.
331  ///
332  /// @return
333  /// Reference to the member data.
334  const THref& GetHref(void) const;
335 
336  /// Assign a value to Href data member.
337  ///
338  /// @param value
339  /// Value to assign
340  void SetHref(const THref& value);
341  void SetHref(THref&& value);
342 
343  /// Assign a value to Href data member.
344  ///
345  /// @return
346  /// Reference to the data value.
347  THref& SetHref(void);
348 
349  /// Check if a value has been assigned to Mathcolor data member.
350  ///
351  /// Data member Mathcolor is optional;
352  /// its type is defined as 'typedef string TMathcolor'
353  /// @return
354  /// - true, if a value has been assigned.
355  /// - false, otherwise.
356  bool IsSetMathcolor(void) const;
357 
358  /// Check if it is safe to call GetMathcolor method.
359  ///
360  /// @return
361  /// - true, if the data member is getatable.
362  /// - false, otherwise.
363  bool CanGetMathcolor(void) const;
364 
365  /// Reset Mathcolor data member.
366  void ResetMathcolor(void);
367 
368  /// Get the Mathcolor member data.
369  ///
370  /// @return
371  /// Reference to the member data.
372  const TMathcolor& GetMathcolor(void) const;
373 
374  /// Assign a value to Mathcolor data member.
375  ///
376  /// @param value
377  /// Value to assign
378  void SetMathcolor(const TMathcolor& value);
379  void SetMathcolor(TMathcolor&& value);
380 
381  /// Assign a value to Mathcolor data member.
382  ///
383  /// @return
384  /// Reference to the data value.
385  TMathcolor& SetMathcolor(void);
386 
387  /// Check if a value has been assigned to Mathbackground data member.
388  ///
389  /// Data member Mathbackground is optional;
390  /// its type is defined as 'typedef string TMathbackground'
391  /// @return
392  /// - true, if a value has been assigned.
393  /// - false, otherwise.
394  bool IsSetMathbackground(void) const;
395 
396  /// Check if it is safe to call GetMathbackground method.
397  ///
398  /// @return
399  /// - true, if the data member is getatable.
400  /// - false, otherwise.
401  bool CanGetMathbackground(void) const;
402 
403  /// Reset Mathbackground data member.
404  void ResetMathbackground(void);
405 
406  /// Get the Mathbackground member data.
407  ///
408  /// @return
409  /// Reference to the member data.
410  const TMathbackground& GetMathbackground(void) const;
411 
412  /// Assign a value to Mathbackground data member.
413  ///
414  /// @param value
415  /// Value to assign
418 
419  /// Assign a value to Mathbackground data member.
420  ///
421  /// @return
422  /// Reference to the data value.
424 
425  /// Check if a value has been assigned to Accent data member.
426  ///
427  /// Data member Accent is optional;
428  /// its type is defined as 'typedef EAttlist_accent TAccent'
429  /// @return
430  /// - true, if a value has been assigned.
431  /// - false, otherwise.
432  bool IsSetAccent(void) const;
433 
434  /// Check if it is safe to call GetAccent method.
435  ///
436  /// @return
437  /// - true, if the data member is getatable.
438  /// - false, otherwise.
439  bool CanGetAccent(void) const;
440 
441  /// Reset Accent data member.
442  void ResetAccent(void);
443 
444  /// Get the Accent member data.
445  ///
446  /// @return
447  /// Copy of the member data.
448  TAccent GetAccent(void) const;
449 
450  /// Assign a value to Accent data member.
451  ///
452  /// @param value
453  /// Value to assign
454  void SetAccent(TAccent value);
455 
456  /// Assign a value to Accent data member.
457  ///
458  /// @return
459  /// Reference to the data value.
460  TAccent& SetAccent(void);
461 
462  /// Check if a value has been assigned to Accentunder data member.
463  ///
464  /// Data member Accentunder is optional;
465  /// its type is defined as 'typedef EAttlist_accentunder TAccentunder'
466  /// @return
467  /// - true, if a value has been assigned.
468  /// - false, otherwise.
469  bool IsSetAccentunder(void) const;
470 
471  /// Check if it is safe to call GetAccentunder method.
472  ///
473  /// @return
474  /// - true, if the data member is getatable.
475  /// - false, otherwise.
476  bool CanGetAccentunder(void) const;
477 
478  /// Reset Accentunder data member.
479  void ResetAccentunder(void);
480 
481  /// Get the Accentunder member data.
482  ///
483  /// @return
484  /// Copy of the member data.
485  TAccentunder GetAccentunder(void) const;
486 
487  /// Assign a value to Accentunder data member.
488  ///
489  /// @param value
490  /// Value to assign
492 
493  /// Assign a value to Accentunder data member.
494  ///
495  /// @return
496  /// Reference to the data value.
498 
499  /// Check if a value has been assigned to Align data member.
500  ///
501  /// Data member Align is optional;
502  /// its type is defined as 'typedef EAttlist_align TAlign'
503  /// @return
504  /// - true, if a value has been assigned.
505  /// - false, otherwise.
506  bool IsSetAlign(void) const;
507 
508  /// Check if it is safe to call GetAlign method.
509  ///
510  /// @return
511  /// - true, if the data member is getatable.
512  /// - false, otherwise.
513  bool CanGetAlign(void) const;
514 
515  /// Reset Align data member.
516  void ResetAlign(void);
517 
518  /// Get the Align member data.
519  ///
520  /// @return
521  /// Copy of the member data.
522  TAlign GetAlign(void) const;
523 
524  /// Assign a value to Align data member.
525  ///
526  /// @param value
527  /// Value to assign
528  void SetAlign(TAlign value);
529 
530  /// Assign a value to Align data member.
531  ///
532  /// @return
533  /// Reference to the data value.
534  TAlign& SetAlign(void);
535 
536  /// Reset the whole object
537  void Reset(void);
538 
539 
540  private:
541  // Prohibit copy constructor and assignment operator
544 
545  // data
547  string m_Id;
548  string m_Xref;
549  string m_Class;
550  string m_Style;
551  string m_Href;
552  string m_Mathcolor;
557  };
558  /////////////////////////////////////////////////////////////////////////////
559  ///
560  /// C_E_MathExpression --
561  ///
562 
564  {
566  public:
567  C_E_MathExpression(void);
568 
569  // type info
571 
572  };
573  // types
575  typedef list< CRef< C_E_MathExpression > > TMathExpression;
576 
577  // member index
578  enum class E_memberIndex {
579  e__allMandatory = 0,
580  e_Attlist,
582  };
584 
585  // getters
586  // setters
587 
588  /// Check if a value has been assigned to Attlist data member.
589  ///
590  /// Data member Attlist is mandatory;
591  /// its type is defined as 'typedef C_Attlist TAttlist'
592  /// @return
593  /// - true, if a value has been assigned.
594  /// - false, otherwise.
595  bool IsSetAttlist(void) const;
596 
597  /// Check if it is safe to call GetAttlist method.
598  ///
599  /// @return
600  /// - true, if the data member is getatable.
601  /// - false, otherwise.
602  bool CanGetAttlist(void) const;
603 
604  /// Reset Attlist data member.
605  void ResetAttlist(void);
606 
607  /// Get the Attlist member data.
608  ///
609  /// @return
610  /// Reference to the member data.
611  const TAttlist& GetAttlist(void) const;
612 
613  /// Assign a value to Attlist data member.
614  ///
615  /// @param value
616  /// Reference to value.
617  void SetAttlist(TAttlist& value);
618 
619  /// Assign a value to Attlist data member.
620  ///
621  /// @return
622  /// Reference to the data value.
623  TAttlist& SetAttlist(void);
624 
625  /// Check if a value has been assigned to MathExpression data member.
626  ///
627  /// Data member MathExpression is mandatory;
628  /// its type is defined as 'typedef list< CRef< C_E_MathExpression > > TMathExpression'
629  /// @return
630  /// - true, if a value has been assigned.
631  /// - false, otherwise.
632  bool IsSetMathExpression(void) const;
633 
634  /// Check if it is safe to call GetMathExpression method.
635  ///
636  /// @return
637  /// - true, if the data member is getatable.
638  /// - false, otherwise.
639  bool CanGetMathExpression(void) const;
640 
641  /// Reset MathExpression data member.
642  void ResetMathExpression(void);
643 
644  /// Get the MathExpression member data.
645  ///
646  /// @return
647  /// Reference to the member data.
648  const TMathExpression& GetMathExpression(void) const;
649 
650  /// Assign a value to MathExpression data member.
651  ///
652  /// @return
653  /// Reference to the data value.
655 
656  /// Reset the whole object
657  virtual void Reset(void);
658 
659 
660 private:
661  // Prohibit copy constructor and assignment operator
664 
665  // data
668  list< CRef< C_E_MathExpression > > m_MathExpression;
669 };
670 
671 /* @} */
672 
673 
674 
675 
676 
677 ///////////////////////////////////////////////////////////
678 ///////////////////// inline methods //////////////////////
679 ///////////////////////////////////////////////////////////
680 inline
682 {
683  return ((m_set_State[0] & 0x3) != 0);
684 }
685 
686 inline
688 {
689  return IsSetId();
690 }
691 
692 inline
694 {
695  if (!CanGetId()) {
696  ThrowUnassigned(0);
697  }
698  return m_Id;
699 }
700 
701 inline
703 {
704  m_Id = value;
705  m_set_State[0] |= 0x3;
706 }
707 
708 inline
710 {
711  m_Id = std::forward<CMunderover_Base::C_Attlist::TId>(value);
712  m_set_State[0] |= 0x3;
713 }
714 
715 inline
717 {
718 #ifdef _DEBUG
719  if (!IsSetId()) {
720  m_Id = UnassignedString();
721  }
722 #endif
723  m_set_State[0] |= 0x1;
724  return m_Id;
725 }
726 
727 inline
729 {
730  return ((m_set_State[0] & 0xc) != 0);
731 }
732 
733 inline
735 {
736  return IsSetXref();
737 }
738 
739 inline
741 {
742  if (!CanGetXref()) {
743  ThrowUnassigned(1);
744  }
745  return m_Xref;
746 }
747 
748 inline
750 {
751  m_Xref = value;
752  m_set_State[0] |= 0xc;
753 }
754 
755 inline
757 {
758  m_Xref = std::forward<CMunderover_Base::C_Attlist::TXref>(value);
759  m_set_State[0] |= 0xc;
760 }
761 
762 inline
764 {
765 #ifdef _DEBUG
766  if (!IsSetXref()) {
767  m_Xref = UnassignedString();
768  }
769 #endif
770  m_set_State[0] |= 0x4;
771  return m_Xref;
772 }
773 
774 inline
776 {
777  return ((m_set_State[0] & 0x30) != 0);
778 }
779 
780 inline
782 {
783  return IsSetClass();
784 }
785 
786 inline
788 {
789  if (!CanGetClass()) {
790  ThrowUnassigned(2);
791  }
792  return m_Class;
793 }
794 
795 inline
797 {
798  m_Class = value;
799  m_set_State[0] |= 0x30;
800 }
801 
802 inline
804 {
805  m_Class = std::forward<CMunderover_Base::C_Attlist::TClass>(value);
806  m_set_State[0] |= 0x30;
807 }
808 
809 inline
811 {
812 #ifdef _DEBUG
813  if (!IsSetClass()) {
814  m_Class = UnassignedString();
815  }
816 #endif
817  m_set_State[0] |= 0x10;
818  return m_Class;
819 }
820 
821 inline
823 {
824  return ((m_set_State[0] & 0xc0) != 0);
825 }
826 
827 inline
829 {
830  return IsSetStyle();
831 }
832 
833 inline
835 {
836  if (!CanGetStyle()) {
837  ThrowUnassigned(3);
838  }
839  return m_Style;
840 }
841 
842 inline
844 {
845  m_Style = value;
846  m_set_State[0] |= 0xc0;
847 }
848 
849 inline
851 {
852  m_Style = std::forward<CMunderover_Base::C_Attlist::TStyle>(value);
853  m_set_State[0] |= 0xc0;
854 }
855 
856 inline
858 {
859 #ifdef _DEBUG
860  if (!IsSetStyle()) {
861  m_Style = UnassignedString();
862  }
863 #endif
864  m_set_State[0] |= 0x40;
865  return m_Style;
866 }
867 
868 inline
870 {
871  return ((m_set_State[0] & 0x300) != 0);
872 }
873 
874 inline
876 {
877  return IsSetHref();
878 }
879 
880 inline
882 {
883  if (!CanGetHref()) {
884  ThrowUnassigned(4);
885  }
886  return m_Href;
887 }
888 
889 inline
891 {
892  m_Href = value;
893  m_set_State[0] |= 0x300;
894 }
895 
896 inline
898 {
899  m_Href = std::forward<CMunderover_Base::C_Attlist::THref>(value);
900  m_set_State[0] |= 0x300;
901 }
902 
903 inline
905 {
906 #ifdef _DEBUG
907  if (!IsSetHref()) {
908  m_Href = UnassignedString();
909  }
910 #endif
911  m_set_State[0] |= 0x100;
912  return m_Href;
913 }
914 
915 inline
917 {
918  return ((m_set_State[0] & 0xc00) != 0);
919 }
920 
921 inline
923 {
924  return IsSetMathcolor();
925 }
926 
927 inline
929 {
930  if (!CanGetMathcolor()) {
931  ThrowUnassigned(5);
932  }
933  return m_Mathcolor;
934 }
935 
936 inline
938 {
939  m_Mathcolor = value;
940  m_set_State[0] |= 0xc00;
941 }
942 
943 inline
945 {
946  m_Mathcolor = std::forward<CMunderover_Base::C_Attlist::TMathcolor>(value);
947  m_set_State[0] |= 0xc00;
948 }
949 
950 inline
952 {
953 #ifdef _DEBUG
954  if (!IsSetMathcolor()) {
955  m_Mathcolor = UnassignedString();
956  }
957 #endif
958  m_set_State[0] |= 0x400;
959  return m_Mathcolor;
960 }
961 
962 inline
964 {
965  return ((m_set_State[0] & 0x3000) != 0);
966 }
967 
968 inline
970 {
971  return IsSetMathbackground();
972 }
973 
974 inline
976 {
977  if (!CanGetMathbackground()) {
978  ThrowUnassigned(6);
979  }
980  return m_Mathbackground;
981 }
982 
983 inline
985 {
986  m_Mathbackground = value;
987  m_set_State[0] |= 0x3000;
988 }
989 
990 inline
992 {
993  m_Mathbackground = std::forward<CMunderover_Base::C_Attlist::TMathbackground>(value);
994  m_set_State[0] |= 0x3000;
995 }
996 
997 inline
999 {
1000 #ifdef _DEBUG
1001  if (!IsSetMathbackground()) {
1002  m_Mathbackground = UnassignedString();
1003  }
1004 #endif
1005  m_set_State[0] |= 0x1000;
1006  return m_Mathbackground;
1007 }
1008 
1009 inline
1011 {
1012  return ((m_set_State[0] & 0xc000) != 0);
1013 }
1014 
1015 inline
1017 {
1018  return IsSetAccent();
1019 }
1020 
1021 inline
1023 {
1024  m_Accent = (EAttlist_accent)(0);
1025  m_set_State[0] &= ~0xc000;
1026 }
1027 
1028 inline
1030 {
1031  if (!CanGetAccent()) {
1032  ThrowUnassigned(7);
1033  }
1034  return m_Accent;
1035 }
1036 
1037 inline
1039 {
1040  m_Accent = value;
1041  m_set_State[0] |= 0xc000;
1042 }
1043 
1044 inline
1046 {
1047 #ifdef _DEBUG
1048  if (!IsSetAccent()) {
1049  memset(&m_Accent,UnassignedByte(),sizeof(m_Accent));
1050  }
1051 #endif
1052  m_set_State[0] |= 0x4000;
1053  return m_Accent;
1054 }
1055 
1056 inline
1058 {
1059  return ((m_set_State[0] & 0x30000) != 0);
1060 }
1061 
1062 inline
1064 {
1065  return IsSetAccentunder();
1066 }
1067 
1068 inline
1070 {
1071  m_Accentunder = (EAttlist_accentunder)(0);
1072  m_set_State[0] &= ~0x30000;
1073 }
1074 
1075 inline
1077 {
1078  if (!CanGetAccentunder()) {
1079  ThrowUnassigned(8);
1080  }
1081  return m_Accentunder;
1082 }
1083 
1084 inline
1086 {
1087  m_Accentunder = value;
1088  m_set_State[0] |= 0x30000;
1089 }
1090 
1091 inline
1093 {
1094 #ifdef _DEBUG
1095  if (!IsSetAccentunder()) {
1096  memset(&m_Accentunder,UnassignedByte(),sizeof(m_Accentunder));
1097  }
1098 #endif
1099  m_set_State[0] |= 0x10000;
1100  return m_Accentunder;
1101 }
1102 
1103 inline
1105 {
1106  return ((m_set_State[0] & 0xc0000) != 0);
1107 }
1108 
1109 inline
1111 {
1112  return IsSetAlign();
1113 }
1114 
1115 inline
1117 {
1118  m_Align = (EAttlist_align)(0);
1119  m_set_State[0] &= ~0xc0000;
1120 }
1121 
1122 inline
1124 {
1125  if (!CanGetAlign()) {
1126  ThrowUnassigned(9);
1127  }
1128  return m_Align;
1129 }
1130 
1131 inline
1133 {
1134  m_Align = value;
1135  m_set_State[0] |= 0xc0000;
1136 }
1137 
1138 inline
1140 {
1141 #ifdef _DEBUG
1142  if (!IsSetAlign()) {
1143  memset(&m_Align,UnassignedByte(),sizeof(m_Align));
1144  }
1145 #endif
1146  m_set_State[0] |= 0x40000;
1147  return m_Align;
1148 }
1149 
1150 inline
1152 {
1153 }
1154 
1155 inline
1157 {
1158  return m_Attlist.NotEmpty();
1159 }
1160 
1161 inline
1163 {
1164  return true;
1165 }
1166 
1167 inline
1169 {
1170  if ( !m_Attlist ) {
1171  const_cast<CMunderover_Base*>(this)->ResetAttlist();
1172  }
1173  return (*m_Attlist);
1174 }
1175 
1176 inline
1178 {
1179  if ( !m_Attlist ) {
1180  ResetAttlist();
1181  }
1182  return (*m_Attlist);
1183 }
1184 
1185 inline
1187 {
1188  return ((m_set_State[0] & 0xc) != 0);
1189 }
1190 
1191 inline
1193 {
1194  return true;
1195 }
1196 
1197 inline
1199 {
1200  return m_MathExpression;
1201 }
1202 
1203 inline
1205 {
1206  m_set_State[0] |= 0x4;
1207  return m_MathExpression;
1208 }
1209 
1210 ///////////////////////////////////////////////////////////
1211 ////////////////// end of inline methods //////////////////
1212 ///////////////////////////////////////////////////////////
1213 
1214 
1215 
1216 
1217 
1218 END_objects_SCOPE // namespace ncbi::objects::
1219 
1221 
1222 
1223 #endif // OBJTOOLS_EUTILS_EFETCH_MUNDEROVER_BASE_HPP
User-defined methods of the data storage class.
CMathExpression –.
CMunderover_Base –.
Definition: Munderover_.hpp:75
CRef –.
Definition: ncbiobj.hpp:618
Base class for all serializable objects.
Definition: serialbase.hpp:150
static char UnassignedByte(void)
Definition: serialbase.hpp:181
void ThrowUnassigned(TMemberIndex index) const
#define ENUM_METHOD_NAME(EnumName)
Definition: serialbase.hpp:994
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 CanGetXref(void) const
Check if it is safe to call GetXref method.
void ResetClass(void)
Reset Class data member.
Definition: Munderover_.cpp:90
TId & SetId(void)
Assign a value to Id data member.
bool IsSetClass(void) const
Check if a value has been assigned to Class data member.
C_Attlist(const C_Attlist &)
TAccent & SetAccent(void)
Assign a value to Accent data member.
const TMathExpression & GetMathExpression(void) const
Get the MathExpression member data.
void ResetStyle(void)
Reset Style data member.
Definition: Munderover_.cpp:96
void ResetAttlist(void)
Reset Attlist data member.
bool CanGetAlign(void) const
Check if it is safe to call GetAlign method.
TClass & SetClass(void)
Assign a value to Class data member.
TMathbackground & SetMathbackground(void)
Assign a value to Mathbackground data member.
const TStyle & GetStyle(void) const
Get the Style member data.
TMathExpression & SetMathExpression(void)
Assign a value to MathExpression data member.
bool IsSetAccentunder(void) const
Check if a value has been assigned to Accentunder data member.
TAlign & SetAlign(void)
Assign a value to Align data member.
void ResetMathbackground(void)
Reset Mathbackground data member.
bool IsSetStyle(void) const
Check if a value has been assigned to Style data member.
bool IsSetAlign(void) const
Check if a value has been assigned to Align data member.
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
virtual void Reset(void)
Reset the whole object.
TXref & SetXref(void)
Assign a value to Xref data member.
bool IsSetId(void) const
Check if a value has been assigned to Id data member.
bool CanGetMathbackground(void) const
Check if it is safe to call GetMathbackground method.
TAlign GetAlign(void) const
Get the Align member data.
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
void Reset(void)
Reset the whole object.
const TClass & GetClass(void) const
Get the Class member data.
bool IsSetXref(void) const
Check if a value has been assigned to Xref data member.
void ResetMathExpression(void)
Reset MathExpression data member.
CMunderover_Base(const CMunderover_Base &)
list< CRef< C_E_MathExpression > > m_MathExpression
bool IsSetHref(void) const
Check if a value has been assigned to Href data member.
const TMathcolor & GetMathcolor(void) const
Get the Mathcolor member data.
THref & SetHref(void)
Assign a value to Href data member.
virtual ~CMunderover_Base(void)
void ResetMathcolor(void)
Reset Mathcolor data member.
void ResetAccent(void)
Reset Accent data member.
void ResetAccentunder(void)
Reset Accentunder data member.
bool IsSetAccent(void) const
Check if a value has been assigned to Accent data member.
EAttlist_accentunder TAccentunder
bool IsSetMathbackground(void) const
Check if a value has been assigned to Mathbackground data member.
void ResetId(void)
Reset Id data member.
Definition: Munderover_.cpp:78
bool CanGetId(void) const
Check if it is safe to call GetId method.
const TXref & GetXref(void) const
Get the Xref member data.
bool CanGetMathExpression(void) const
Check if it is safe to call GetMathExpression method.
list< CRef< C_E_MathExpression > > TMathExpression
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
EAttlist_accentunder m_Accentunder
bool IsSetMathExpression(void) const
Check if a value has been assigned to MathExpression data member.
TMathcolor & SetMathcolor(void)
Assign a value to Mathcolor data member.
bool CanGetMathcolor(void) const
Check if it is safe to call GetMathcolor method.
TAccentunder GetAccentunder(void) const
Get the Accentunder member data.
C_Attlist & operator=(const C_Attlist &)
TStyle & SetStyle(void)
Assign a value to Style data member.
TAccentunder & SetAccentunder(void)
Assign a value to Accentunder data member.
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
const TMathbackground & GetMathbackground(void) const
Get the Mathbackground member data.
const TId & GetId(void) const
Get the Id member data.
TAccent GetAccent(void) const
Get the Accent member data.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
bool CanGetAccentunder(void) const
Check if it is safe to call GetAccentunder method.
C_Attlist TAttlist
void ResetAlign(void)
Reset Align data member.
void ResetXref(void)
Reset Xref data member.
Definition: Munderover_.cpp:84
bool CanGetStyle(void) const
Check if it is safe to call GetStyle method.
const THref & GetHref(void) const
Get the Href member data.
Uint4 m_set_State[1]
void ResetHref(void)
Reset Href data member.
bool CanGetClass(void) const
Check if it is safe to call GetClass method.
Tparent::CMemberIndex< E_memberIndex, 11 > TmemberIndex
CSerialObject Tparent
Definition: Munderover_.hpp:76
CMunderover_Base & operator=(const CMunderover_Base &)
bool IsSetMathcolor(void) const
Check if a value has been assigned to Mathcolor data member.
bool CanGetHref(void) const
Check if it is safe to call GetHref method.
bool CanGetAccent(void) const
Check if it is safe to call GetAccent method.
CRef< TAttlist > m_Attlist
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Thu May 23 12:24:59 2024 by modify_doxy.py rev. 669887