NCBI C++ ToolKit
Mtd_.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 Mtd_.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_MTD_BASE_HPP
42 #define OBJTOOLS_EUTILS_EFETCH_MTD_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #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 // generated classes
61 
62 
63 /** @addtogroup dataspec_pubmed_mathml3
64  *
65  * @{
66  */
67 
68 /////////////////////////////////////////////////////////////////////////////
69 ///
70 /// CMtd_Base --
71 ///
72 
73 class CMtd_Base : public CSerialObject
74 {
76 public:
77  // constructor
78  CMtd_Base(void);
79  // destructor
80  virtual ~CMtd_Base(void);
81 
82  // type info
84 
85  /////////////////////////////////////////////////////////////////////////////
86  ///
87  /// C_Attlist --
88  ///
89 
90  class C_Attlist : public CSerialObject
91  {
93  public:
94  // constructor
95  C_Attlist(void);
96  // destructor
97  ~C_Attlist(void);
98 
99  // type info
101 
108  };
109 
110  /// Access to EAttlist_rowalign's attributes (values, names) as defined in spec
111  static const NCBI_NS_NCBI::CEnumeratedTypeValues* ENUM_METHOD_NAME(EAttlist_rowalign)(void);
112 
117  };
118 
119  /// Access to EAttlist_columnalign's attributes (values, names) as defined in spec
120  static const NCBI_NS_NCBI::CEnumeratedTypeValues* ENUM_METHOD_NAME(EAttlist_columnalign)(void);
121 
122  // types
123  typedef string TId;
124  typedef string TXref;
125  typedef string TClass;
126  typedef string TStyle;
127  typedef string THref;
128  typedef string TMathcolor;
129  typedef string TMathbackground;
130  typedef string TRowspan;
131  typedef string TColumnspan;
134  typedef string TGroupalign;
135 
136  // member index
137  enum class E_memberIndex {
138  e__allMandatory = 0,
139  e_id,
140  e_xref,
141  e_class,
142  e_style,
143  e_href,
144  e_mathcolor,
146  e_rowspan,
147  e_columnspan,
148  e_rowalign,
151  };
153 
154  // getters
155  // setters
156 
157  /// Check if a value has been assigned to Id data member.
158  ///
159  /// Data member Id is optional;
160  /// its type is defined as 'typedef string TId'
161  /// @return
162  /// - true, if a value has been assigned.
163  /// - false, otherwise.
164  bool IsSetId(void) const;
165 
166  /// Check if it is safe to call GetId method.
167  ///
168  /// @return
169  /// - true, if the data member is getatable.
170  /// - false, otherwise.
171  bool CanGetId(void) const;
172 
173  /// Reset Id data member.
174  void ResetId(void);
175 
176  /// Get the Id member data.
177  ///
178  /// @return
179  /// Reference to the member data.
180  const TId& GetId(void) const;
181 
182  /// Assign a value to Id data member.
183  ///
184  /// @param value
185  /// Value to assign
186  void SetId(const TId& value);
187  void SetId(TId&& value);
188 
189  /// Assign a value to Id data member.
190  ///
191  /// @return
192  /// Reference to the data value.
193  TId& SetId(void);
194 
195  /// Check if a value has been assigned to Xref data member.
196  ///
197  /// Data member Xref is optional;
198  /// its type is defined as 'typedef string TXref'
199  /// @return
200  /// - true, if a value has been assigned.
201  /// - false, otherwise.
202  bool IsSetXref(void) const;
203 
204  /// Check if it is safe to call GetXref method.
205  ///
206  /// @return
207  /// - true, if the data member is getatable.
208  /// - false, otherwise.
209  bool CanGetXref(void) const;
210 
211  /// Reset Xref data member.
212  void ResetXref(void);
213 
214  /// Get the Xref member data.
215  ///
216  /// @return
217  /// Reference to the member data.
218  const TXref& GetXref(void) const;
219 
220  /// Assign a value to Xref data member.
221  ///
222  /// @param value
223  /// Value to assign
224  void SetXref(const TXref& value);
225  void SetXref(TXref&& value);
226 
227  /// Assign a value to Xref data member.
228  ///
229  /// @return
230  /// Reference to the data value.
231  TXref& SetXref(void);
232 
233  /// Check if a value has been assigned to Class data member.
234  ///
235  /// Data member Class is optional;
236  /// its type is defined as 'typedef string TClass'
237  /// @return
238  /// - true, if a value has been assigned.
239  /// - false, otherwise.
240  bool IsSetClass(void) const;
241 
242  /// Check if it is safe to call GetClass method.
243  ///
244  /// @return
245  /// - true, if the data member is getatable.
246  /// - false, otherwise.
247  bool CanGetClass(void) const;
248 
249  /// Reset Class data member.
250  void ResetClass(void);
251 
252  /// Get the Class member data.
253  ///
254  /// @return
255  /// Reference to the member data.
256  const TClass& GetClass(void) const;
257 
258  /// Assign a value to Class data member.
259  ///
260  /// @param value
261  /// Value to assign
262  void SetClass(const TClass& value);
263  void SetClass(TClass&& value);
264 
265  /// Assign a value to Class data member.
266  ///
267  /// @return
268  /// Reference to the data value.
269  TClass& SetClass(void);
270 
271  /// Check if a value has been assigned to Style data member.
272  ///
273  /// Data member Style is optional;
274  /// its type is defined as 'typedef string TStyle'
275  /// @return
276  /// - true, if a value has been assigned.
277  /// - false, otherwise.
278  bool IsSetStyle(void) const;
279 
280  /// Check if it is safe to call GetStyle method.
281  ///
282  /// @return
283  /// - true, if the data member is getatable.
284  /// - false, otherwise.
285  bool CanGetStyle(void) const;
286 
287  /// Reset Style data member.
288  void ResetStyle(void);
289 
290  /// Get the Style member data.
291  ///
292  /// @return
293  /// Reference to the member data.
294  const TStyle& GetStyle(void) const;
295 
296  /// Assign a value to Style data member.
297  ///
298  /// @param value
299  /// Value to assign
300  void SetStyle(const TStyle& value);
301  void SetStyle(TStyle&& value);
302 
303  /// Assign a value to Style data member.
304  ///
305  /// @return
306  /// Reference to the data value.
307  TStyle& SetStyle(void);
308 
309  /// Check if a value has been assigned to Href data member.
310  ///
311  /// Data member Href is optional;
312  /// its type is defined as 'typedef string THref'
313  /// @return
314  /// - true, if a value has been assigned.
315  /// - false, otherwise.
316  bool IsSetHref(void) const;
317 
318  /// Check if it is safe to call GetHref method.
319  ///
320  /// @return
321  /// - true, if the data member is getatable.
322  /// - false, otherwise.
323  bool CanGetHref(void) const;
324 
325  /// Reset Href data member.
326  void ResetHref(void);
327 
328  /// Get the Href member data.
329  ///
330  /// @return
331  /// Reference to the member data.
332  const THref& GetHref(void) const;
333 
334  /// Assign a value to Href data member.
335  ///
336  /// @param value
337  /// Value to assign
338  void SetHref(const THref& value);
339  void SetHref(THref&& value);
340 
341  /// Assign a value to Href data member.
342  ///
343  /// @return
344  /// Reference to the data value.
345  THref& SetHref(void);
346 
347  /// Check if a value has been assigned to Mathcolor data member.
348  ///
349  /// Data member Mathcolor is optional;
350  /// its type is defined as 'typedef string TMathcolor'
351  /// @return
352  /// - true, if a value has been assigned.
353  /// - false, otherwise.
354  bool IsSetMathcolor(void) const;
355 
356  /// Check if it is safe to call GetMathcolor method.
357  ///
358  /// @return
359  /// - true, if the data member is getatable.
360  /// - false, otherwise.
361  bool CanGetMathcolor(void) const;
362 
363  /// Reset Mathcolor data member.
364  void ResetMathcolor(void);
365 
366  /// Get the Mathcolor member data.
367  ///
368  /// @return
369  /// Reference to the member data.
370  const TMathcolor& GetMathcolor(void) const;
371 
372  /// Assign a value to Mathcolor data member.
373  ///
374  /// @param value
375  /// Value to assign
376  void SetMathcolor(const TMathcolor& value);
377  void SetMathcolor(TMathcolor&& value);
378 
379  /// Assign a value to Mathcolor data member.
380  ///
381  /// @return
382  /// Reference to the data value.
383  TMathcolor& SetMathcolor(void);
384 
385  /// Check if a value has been assigned to Mathbackground data member.
386  ///
387  /// Data member Mathbackground is optional;
388  /// its type is defined as 'typedef string TMathbackground'
389  /// @return
390  /// - true, if a value has been assigned.
391  /// - false, otherwise.
392  bool IsSetMathbackground(void) const;
393 
394  /// Check if it is safe to call GetMathbackground method.
395  ///
396  /// @return
397  /// - true, if the data member is getatable.
398  /// - false, otherwise.
399  bool CanGetMathbackground(void) const;
400 
401  /// Reset Mathbackground data member.
402  void ResetMathbackground(void);
403 
404  /// Get the Mathbackground member data.
405  ///
406  /// @return
407  /// Reference to the member data.
408  const TMathbackground& GetMathbackground(void) const;
409 
410  /// Assign a value to Mathbackground data member.
411  ///
412  /// @param value
413  /// Value to assign
416 
417  /// Assign a value to Mathbackground data member.
418  ///
419  /// @return
420  /// Reference to the data value.
422 
423  /// Check if a value has been assigned to Rowspan data member.
424  ///
425  /// Data member Rowspan is optional;
426  /// its type is defined as 'typedef string TRowspan'
427  /// @return
428  /// - true, if a value has been assigned.
429  /// - false, otherwise.
430  bool IsSetRowspan(void) const;
431 
432  /// Check if it is safe to call GetRowspan method.
433  ///
434  /// @return
435  /// - true, if the data member is getatable.
436  /// - false, otherwise.
437  bool CanGetRowspan(void) const;
438 
439  /// Reset Rowspan data member.
440  void ResetRowspan(void);
441 
442  /// Get the Rowspan member data.
443  ///
444  /// @return
445  /// Reference to the member data.
446  const TRowspan& GetRowspan(void) const;
447 
448  /// Assign a value to Rowspan data member.
449  ///
450  /// @param value
451  /// Value to assign
452  void SetRowspan(const TRowspan& value);
453  void SetRowspan(TRowspan&& value);
454 
455  /// Assign a value to Rowspan data member.
456  ///
457  /// @return
458  /// Reference to the data value.
459  TRowspan& SetRowspan(void);
460 
461  /// Check if a value has been assigned to Columnspan data member.
462  ///
463  /// Data member Columnspan is optional;
464  /// its type is defined as 'typedef string TColumnspan'
465  /// @return
466  /// - true, if a value has been assigned.
467  /// - false, otherwise.
468  bool IsSetColumnspan(void) const;
469 
470  /// Check if it is safe to call GetColumnspan method.
471  ///
472  /// @return
473  /// - true, if the data member is getatable.
474  /// - false, otherwise.
475  bool CanGetColumnspan(void) const;
476 
477  /// Reset Columnspan data member.
478  void ResetColumnspan(void);
479 
480  /// Get the Columnspan member data.
481  ///
482  /// @return
483  /// Reference to the member data.
484  const TColumnspan& GetColumnspan(void) const;
485 
486  /// Assign a value to Columnspan data member.
487  ///
488  /// @param value
489  /// Value to assign
490  void SetColumnspan(const TColumnspan& value);
492 
493  /// Assign a value to Columnspan data member.
494  ///
495  /// @return
496  /// Reference to the data value.
497  TColumnspan& SetColumnspan(void);
498 
499  /// Check if a value has been assigned to Rowalign data member.
500  ///
501  /// Data member Rowalign is optional;
502  /// its type is defined as 'typedef EAttlist_rowalign TRowalign'
503  /// @return
504  /// - true, if a value has been assigned.
505  /// - false, otherwise.
506  bool IsSetRowalign(void) const;
507 
508  /// Check if it is safe to call GetRowalign method.
509  ///
510  /// @return
511  /// - true, if the data member is getatable.
512  /// - false, otherwise.
513  bool CanGetRowalign(void) const;
514 
515  /// Reset Rowalign data member.
516  void ResetRowalign(void);
517 
518  /// Get the Rowalign member data.
519  ///
520  /// @return
521  /// Copy of the member data.
522  TRowalign GetRowalign(void) const;
523 
524  /// Assign a value to Rowalign data member.
525  ///
526  /// @param value
527  /// Value to assign
529 
530  /// Assign a value to Rowalign data member.
531  ///
532  /// @return
533  /// Reference to the data value.
534  TRowalign& SetRowalign(void);
535 
536  /// Check if a value has been assigned to Columnalign data member.
537  ///
538  /// Data member Columnalign is optional;
539  /// its type is defined as 'typedef EAttlist_columnalign TColumnalign'
540  /// @return
541  /// - true, if a value has been assigned.
542  /// - false, otherwise.
543  bool IsSetColumnalign(void) const;
544 
545  /// Check if it is safe to call GetColumnalign method.
546  ///
547  /// @return
548  /// - true, if the data member is getatable.
549  /// - false, otherwise.
550  bool CanGetColumnalign(void) const;
551 
552  /// Reset Columnalign data member.
553  void ResetColumnalign(void);
554 
555  /// Get the Columnalign member data.
556  ///
557  /// @return
558  /// Copy of the member data.
559  TColumnalign GetColumnalign(void) const;
560 
561  /// Assign a value to Columnalign data member.
562  ///
563  /// @param value
564  /// Value to assign
566 
567  /// Assign a value to Columnalign data member.
568  ///
569  /// @return
570  /// Reference to the data value.
572 
573  /// Check if a value has been assigned to Groupalign data member.
574  ///
575  /// Data member Groupalign is optional;
576  /// its type is defined as 'typedef string TGroupalign'
577  /// @return
578  /// - true, if a value has been assigned.
579  /// - false, otherwise.
580  bool IsSetGroupalign(void) const;
581 
582  /// Check if it is safe to call GetGroupalign method.
583  ///
584  /// @return
585  /// - true, if the data member is getatable.
586  /// - false, otherwise.
587  bool CanGetGroupalign(void) const;
588 
589  /// Reset Groupalign data member.
590  void ResetGroupalign(void);
591 
592  /// Get the Groupalign member data.
593  ///
594  /// @return
595  /// Reference to the member data.
596  const TGroupalign& GetGroupalign(void) const;
597 
598  /// Assign a value to Groupalign data member.
599  ///
600  /// @param value
601  /// Value to assign
602  void SetGroupalign(const TGroupalign& value);
604 
605  /// Assign a value to Groupalign data member.
606  ///
607  /// @return
608  /// Reference to the data value.
609  TGroupalign& SetGroupalign(void);
610 
611  /// Reset the whole object
612  void Reset(void);
613 
614 
615  private:
616  // Prohibit copy constructor and assignment operator
619 
620  // data
622  string m_Id;
623  string m_Xref;
624  string m_Class;
625  string m_Style;
626  string m_Href;
627  string m_Mathcolor;
629  string m_Rowspan;
630  string m_Columnspan;
633  string m_Groupalign;
634  };
636  // types
638  typedef C_Mtd TMtd;
639 
640  // member index
641  enum class E_memberIndex {
642  e__allMandatory = 0,
643  e_Attlist,
644  e_mtd
645  };
647 
648  // getters
649  // setters
650 
651  /// Check if a value has been assigned to Attlist data member.
652  ///
653  /// Data member Attlist is mandatory;
654  /// its type is defined as 'typedef C_Attlist TAttlist'
655  /// @return
656  /// - true, if a value has been assigned.
657  /// - false, otherwise.
658  bool IsSetAttlist(void) const;
659 
660  /// Check if it is safe to call GetAttlist method.
661  ///
662  /// @return
663  /// - true, if the data member is getatable.
664  /// - false, otherwise.
665  bool CanGetAttlist(void) const;
666 
667  /// Reset Attlist data member.
668  void ResetAttlist(void);
669 
670  /// Get the Attlist member data.
671  ///
672  /// @return
673  /// Reference to the member data.
674  const TAttlist& GetAttlist(void) const;
675 
676  /// Assign a value to Attlist data member.
677  ///
678  /// @param value
679  /// Reference to value.
680  void SetAttlist(TAttlist& value);
681 
682  /// Assign a value to Attlist data member.
683  ///
684  /// @return
685  /// Reference to the data value.
686  TAttlist& SetAttlist(void);
687 
688  /// Check if a value has been assigned to Mtd data member.
689  ///
690  /// Data member Mtd is mandatory;
691  /// its type is defined as 'typedef C_Mtd TMtd'
692  /// @return
693  /// - true, if a value has been assigned.
694  /// - false, otherwise.
695  bool IsSetMtd(void) const;
696 
697  /// Check if it is safe to call GetMtd method.
698  ///
699  /// @return
700  /// - true, if the data member is getatable.
701  /// - false, otherwise.
702  bool CanGetMtd(void) const;
703 
704  /// Reset Mtd data member.
705  void ResetMtd(void);
706 
707  /// Get the Mtd member data.
708  ///
709  /// @return
710  /// Reference to the member data.
711  const TMtd& GetMtd(void) const;
712 
713  /// Assign a value to Mtd data member.
714  ///
715  /// @param value
716  /// Reference to value.
717  void SetMtd(TMtd& value);
718 
719  /// Assign a value to Mtd data member.
720  ///
721  /// @return
722  /// Reference to the data value.
723  TMtd& SetMtd(void);
724 
725  /// Reset the whole object
726  virtual void Reset(void);
727 
728 
729 private:
730  // Prohibit copy constructor and assignment operator
733 
734  // data
738 };
739 
740 /* @} */
741 
742 
743 
744 
745 
746 ///////////////////////////////////////////////////////////
747 ///////////////////// inline methods //////////////////////
748 ///////////////////////////////////////////////////////////
749 inline
751 {
752  return ((m_set_State[0] & 0x3) != 0);
753 }
754 
755 inline
757 {
758  return IsSetId();
759 }
760 
761 inline
763 {
764  if (!CanGetId()) {
765  ThrowUnassigned(0);
766  }
767  return m_Id;
768 }
769 
770 inline
772 {
773  m_Id = value;
774  m_set_State[0] |= 0x3;
775 }
776 
777 inline
779 {
780  m_Id = std::forward<CMtd_Base::C_Attlist::TId>(value);
781  m_set_State[0] |= 0x3;
782 }
783 
784 inline
786 {
787 #ifdef _DEBUG
788  if (!IsSetId()) {
789  m_Id = UnassignedString();
790  }
791 #endif
792  m_set_State[0] |= 0x1;
793  return m_Id;
794 }
795 
796 inline
798 {
799  return ((m_set_State[0] & 0xc) != 0);
800 }
801 
802 inline
804 {
805  return IsSetXref();
806 }
807 
808 inline
810 {
811  if (!CanGetXref()) {
812  ThrowUnassigned(1);
813  }
814  return m_Xref;
815 }
816 
817 inline
819 {
820  m_Xref = value;
821  m_set_State[0] |= 0xc;
822 }
823 
824 inline
826 {
827  m_Xref = std::forward<CMtd_Base::C_Attlist::TXref>(value);
828  m_set_State[0] |= 0xc;
829 }
830 
831 inline
833 {
834 #ifdef _DEBUG
835  if (!IsSetXref()) {
836  m_Xref = UnassignedString();
837  }
838 #endif
839  m_set_State[0] |= 0x4;
840  return m_Xref;
841 }
842 
843 inline
845 {
846  return ((m_set_State[0] & 0x30) != 0);
847 }
848 
849 inline
851 {
852  return IsSetClass();
853 }
854 
855 inline
857 {
858  if (!CanGetClass()) {
859  ThrowUnassigned(2);
860  }
861  return m_Class;
862 }
863 
864 inline
866 {
867  m_Class = value;
868  m_set_State[0] |= 0x30;
869 }
870 
871 inline
873 {
874  m_Class = std::forward<CMtd_Base::C_Attlist::TClass>(value);
875  m_set_State[0] |= 0x30;
876 }
877 
878 inline
880 {
881 #ifdef _DEBUG
882  if (!IsSetClass()) {
883  m_Class = UnassignedString();
884  }
885 #endif
886  m_set_State[0] |= 0x10;
887  return m_Class;
888 }
889 
890 inline
892 {
893  return ((m_set_State[0] & 0xc0) != 0);
894 }
895 
896 inline
898 {
899  return IsSetStyle();
900 }
901 
902 inline
904 {
905  if (!CanGetStyle()) {
906  ThrowUnassigned(3);
907  }
908  return m_Style;
909 }
910 
911 inline
913 {
914  m_Style = value;
915  m_set_State[0] |= 0xc0;
916 }
917 
918 inline
920 {
921  m_Style = std::forward<CMtd_Base::C_Attlist::TStyle>(value);
922  m_set_State[0] |= 0xc0;
923 }
924 
925 inline
927 {
928 #ifdef _DEBUG
929  if (!IsSetStyle()) {
930  m_Style = UnassignedString();
931  }
932 #endif
933  m_set_State[0] |= 0x40;
934  return m_Style;
935 }
936 
937 inline
939 {
940  return ((m_set_State[0] & 0x300) != 0);
941 }
942 
943 inline
945 {
946  return IsSetHref();
947 }
948 
949 inline
951 {
952  if (!CanGetHref()) {
953  ThrowUnassigned(4);
954  }
955  return m_Href;
956 }
957 
958 inline
960 {
961  m_Href = value;
962  m_set_State[0] |= 0x300;
963 }
964 
965 inline
967 {
968  m_Href = std::forward<CMtd_Base::C_Attlist::THref>(value);
969  m_set_State[0] |= 0x300;
970 }
971 
972 inline
974 {
975 #ifdef _DEBUG
976  if (!IsSetHref()) {
977  m_Href = UnassignedString();
978  }
979 #endif
980  m_set_State[0] |= 0x100;
981  return m_Href;
982 }
983 
984 inline
986 {
987  return ((m_set_State[0] & 0xc00) != 0);
988 }
989 
990 inline
992 {
993  return IsSetMathcolor();
994 }
995 
996 inline
998 {
999  if (!CanGetMathcolor()) {
1000  ThrowUnassigned(5);
1001  }
1002  return m_Mathcolor;
1003 }
1004 
1005 inline
1007 {
1008  m_Mathcolor = value;
1009  m_set_State[0] |= 0xc00;
1010 }
1011 
1012 inline
1014 {
1015  m_Mathcolor = std::forward<CMtd_Base::C_Attlist::TMathcolor>(value);
1016  m_set_State[0] |= 0xc00;
1017 }
1018 
1019 inline
1021 {
1022 #ifdef _DEBUG
1023  if (!IsSetMathcolor()) {
1024  m_Mathcolor = UnassignedString();
1025  }
1026 #endif
1027  m_set_State[0] |= 0x400;
1028  return m_Mathcolor;
1029 }
1030 
1031 inline
1033 {
1034  return ((m_set_State[0] & 0x3000) != 0);
1035 }
1036 
1037 inline
1039 {
1040  return IsSetMathbackground();
1041 }
1042 
1043 inline
1045 {
1046  if (!CanGetMathbackground()) {
1047  ThrowUnassigned(6);
1048  }
1049  return m_Mathbackground;
1050 }
1051 
1052 inline
1054 {
1055  m_Mathbackground = value;
1056  m_set_State[0] |= 0x3000;
1057 }
1058 
1059 inline
1061 {
1062  m_Mathbackground = std::forward<CMtd_Base::C_Attlist::TMathbackground>(value);
1063  m_set_State[0] |= 0x3000;
1064 }
1065 
1066 inline
1068 {
1069 #ifdef _DEBUG
1070  if (!IsSetMathbackground()) {
1071  m_Mathbackground = UnassignedString();
1072  }
1073 #endif
1074  m_set_State[0] |= 0x1000;
1075  return m_Mathbackground;
1076 }
1077 
1078 inline
1080 {
1081  return ((m_set_State[0] & 0xc000) != 0);
1082 }
1083 
1084 inline
1086 {
1087  return IsSetRowspan();
1088 }
1089 
1090 inline
1092 {
1093  if (!CanGetRowspan()) {
1094  ThrowUnassigned(7);
1095  }
1096  return m_Rowspan;
1097 }
1098 
1099 inline
1101 {
1102  m_Rowspan = value;
1103  m_set_State[0] |= 0xc000;
1104 }
1105 
1106 inline
1108 {
1109  m_Rowspan = std::forward<CMtd_Base::C_Attlist::TRowspan>(value);
1110  m_set_State[0] |= 0xc000;
1111 }
1112 
1113 inline
1115 {
1116 #ifdef _DEBUG
1117  if (!IsSetRowspan()) {
1118  m_Rowspan = UnassignedString();
1119  }
1120 #endif
1121  m_set_State[0] |= 0x4000;
1122  return m_Rowspan;
1123 }
1124 
1125 inline
1127 {
1128  return ((m_set_State[0] & 0x30000) != 0);
1129 }
1130 
1131 inline
1133 {
1134  return IsSetColumnspan();
1135 }
1136 
1137 inline
1139 {
1140  if (!CanGetColumnspan()) {
1141  ThrowUnassigned(8);
1142  }
1143  return m_Columnspan;
1144 }
1145 
1146 inline
1148 {
1149  m_Columnspan = value;
1150  m_set_State[0] |= 0x30000;
1151 }
1152 
1153 inline
1155 {
1156  m_Columnspan = std::forward<CMtd_Base::C_Attlist::TColumnspan>(value);
1157  m_set_State[0] |= 0x30000;
1158 }
1159 
1160 inline
1162 {
1163 #ifdef _DEBUG
1164  if (!IsSetColumnspan()) {
1165  m_Columnspan = UnassignedString();
1166  }
1167 #endif
1168  m_set_State[0] |= 0x10000;
1169  return m_Columnspan;
1170 }
1171 
1172 inline
1174 {
1175  return ((m_set_State[0] & 0xc0000) != 0);
1176 }
1177 
1178 inline
1180 {
1181  return IsSetRowalign();
1182 }
1183 
1184 inline
1186 {
1187  m_Rowalign = (EAttlist_rowalign)(0);
1188  m_set_State[0] &= ~0xc0000;
1189 }
1190 
1191 inline
1193 {
1194  if (!CanGetRowalign()) {
1195  ThrowUnassigned(9);
1196  }
1197  return m_Rowalign;
1198 }
1199 
1200 inline
1202 {
1203  m_Rowalign = value;
1204  m_set_State[0] |= 0xc0000;
1205 }
1206 
1207 inline
1209 {
1210 #ifdef _DEBUG
1211  if (!IsSetRowalign()) {
1212  memset(&m_Rowalign,UnassignedByte(),sizeof(m_Rowalign));
1213  }
1214 #endif
1215  m_set_State[0] |= 0x40000;
1216  return m_Rowalign;
1217 }
1218 
1219 inline
1221 {
1222  return ((m_set_State[0] & 0x300000) != 0);
1223 }
1224 
1225 inline
1227 {
1228  return IsSetColumnalign();
1229 }
1230 
1231 inline
1233 {
1234  m_Columnalign = (EAttlist_columnalign)(0);
1235  m_set_State[0] &= ~0x300000;
1236 }
1237 
1238 inline
1240 {
1241  if (!CanGetColumnalign()) {
1242  ThrowUnassigned(10);
1243  }
1244  return m_Columnalign;
1245 }
1246 
1247 inline
1249 {
1250  m_Columnalign = value;
1251  m_set_State[0] |= 0x300000;
1252 }
1253 
1254 inline
1256 {
1257 #ifdef _DEBUG
1258  if (!IsSetColumnalign()) {
1259  memset(&m_Columnalign,UnassignedByte(),sizeof(m_Columnalign));
1260  }
1261 #endif
1262  m_set_State[0] |= 0x100000;
1263  return m_Columnalign;
1264 }
1265 
1266 inline
1268 {
1269  return ((m_set_State[0] & 0xc00000) != 0);
1270 }
1271 
1272 inline
1274 {
1275  return IsSetGroupalign();
1276 }
1277 
1278 inline
1280 {
1281  if (!CanGetGroupalign()) {
1282  ThrowUnassigned(11);
1283  }
1284  return m_Groupalign;
1285 }
1286 
1287 inline
1289 {
1290  m_Groupalign = value;
1291  m_set_State[0] |= 0xc00000;
1292 }
1293 
1294 inline
1296 {
1297  m_Groupalign = std::forward<CMtd_Base::C_Attlist::TGroupalign>(value);
1298  m_set_State[0] |= 0xc00000;
1299 }
1300 
1301 inline
1303 {
1304 #ifdef _DEBUG
1305  if (!IsSetGroupalign()) {
1306  m_Groupalign = UnassignedString();
1307  }
1308 #endif
1309  m_set_State[0] |= 0x400000;
1310  return m_Groupalign;
1311 }
1312 
1313 inline
1314 bool CMtd_Base::IsSetAttlist(void) const
1315 {
1316  return m_Attlist.NotEmpty();
1317 }
1318 
1319 inline
1321 {
1322  return true;
1323 }
1324 
1325 inline
1327 {
1328  if ( !m_Attlist ) {
1329  const_cast<CMtd_Base*>(this)->ResetAttlist();
1330  }
1331  return (*m_Attlist);
1332 }
1333 
1334 inline
1336 {
1337  if ( !m_Attlist ) {
1338  ResetAttlist();
1339  }
1340  return (*m_Attlist);
1341 }
1342 
1343 inline
1344 bool CMtd_Base::IsSetMtd(void) const
1345 {
1346  return m_Mtd.NotEmpty();
1347 }
1348 
1349 inline
1350 bool CMtd_Base::CanGetMtd(void) const
1351 {
1352  return true;
1353 }
1354 
1355 inline
1357 {
1358  if ( !m_Mtd ) {
1359  const_cast<CMtd_Base*>(this)->ResetMtd();
1360  }
1361  return (*m_Mtd);
1362 }
1363 
1364 inline
1366 {
1367  if ( !m_Mtd ) {
1368  ResetMtd();
1369  }
1370  return (*m_Mtd);
1371 }
1372 
1373 ///////////////////////////////////////////////////////////
1374 ////////////////// end of inline methods //////////////////
1375 ///////////////////////////////////////////////////////////
1376 
1377 
1378 
1379 
1380 
1381 END_objects_SCOPE // namespace ncbi::objects::
1382 
1384 
1385 
1386 #endif // OBJTOOLS_EUTILS_EFETCH_MTD_BASE_HPP
User-defined methods of the data storage class.
CImpliedMrow –.
Definition: ImpliedMrow.hpp:66
C_Attlist –.
Definition: Mtd_.hpp:91
CMtd_Base –.
Definition: Mtd_.hpp:74
CRef –.
Definition: ncbiobj.hpp:618
Base class for all serializable objects.
Definition: serialbase.hpp:150
char value[7]
Definition: config.c:431
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 CanGetRowspan(void) const
Check if it is safe to call GetRowspan method.
Definition: Mtd_.hpp:1085
virtual ~CMtd_Base(void)
Definition: Mtd_.cpp:240
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
Definition: Mtd_.hpp:646
void ResetMtd(void)
Reset Mtd data member.
Definition: Mtd_.cpp:197
string m_Columnspan
Definition: Mtd_.hpp:630
void ResetHref(void)
Reset Href data member.
Definition: Mtd_.cpp:96
string TGroupalign
Definition: Mtd_.hpp:134
bool CanGetRowalign(void) const
Check if it is safe to call GetRowalign method.
Definition: Mtd_.hpp:1179
TId & SetId(void)
Assign a value to Id data member.
Definition: Mtd_.hpp:785
Uint4 m_set_State[1]
Definition: Mtd_.hpp:735
TColumnspan & SetColumnspan(void)
Assign a value to Columnspan data member.
Definition: Mtd_.hpp:1161
CRef< TMtd > m_Mtd
Definition: Mtd_.hpp:737
const TId & GetId(void) const
Get the Id member data.
Definition: Mtd_.hpp:762
void ResetColumnspan(void)
Reset Columnspan data member.
Definition: Mtd_.cpp:120
bool IsSetHref(void) const
Check if a value has been assigned to Href data member.
Definition: Mtd_.hpp:938
bool CanGetMtd(void) const
Check if it is safe to call GetMtd method.
Definition: Mtd_.hpp:1350
E_memberIndex
Definition: Mtd_.hpp:641
bool CanGetColumnspan(void) const
Check if it is safe to call GetColumnspan method.
Definition: Mtd_.hpp:1132
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
Definition: Mtd_.hpp:1335
string m_Mathcolor
Definition: Mtd_.hpp:627
bool CanGetXref(void) const
Check if it is safe to call GetXref method.
Definition: Mtd_.hpp:803
TClass & SetClass(void)
Assign a value to Class data member.
Definition: Mtd_.hpp:879
TRowalign & SetRowalign(void)
Assign a value to Rowalign data member.
Definition: Mtd_.hpp:1208
void ResetMathbackground(void)
Reset Mathbackground data member.
Definition: Mtd_.cpp:108
const TClass & GetClass(void) const
Get the Class member data.
Definition: Mtd_.hpp:856
CMtd_Base(void)
Definition: Mtd_.cpp:230
bool CanGetGroupalign(void) const
Check if it is safe to call GetGroupalign method.
Definition: Mtd_.hpp:1273
const TGroupalign & GetGroupalign(void) const
Get the Groupalign member data.
Definition: Mtd_.hpp:1279
const TRowspan & GetRowspan(void) const
Get the Rowspan member data.
Definition: Mtd_.hpp:1091
EAttlist_rowalign TRowalign
Definition: Mtd_.hpp:132
TColumnalign & SetColumnalign(void)
Assign a value to Columnalign data member.
Definition: Mtd_.hpp:1255
bool IsSetColumnalign(void) const
Check if a value has been assigned to Columnalign data member.
Definition: Mtd_.hpp:1220
C_Mtd TMtd
Definition: Mtd_.hpp:638
TRowspan & SetRowspan(void)
Assign a value to Rowspan data member.
Definition: Mtd_.hpp:1114
const TMathbackground & GetMathbackground(void) const
Get the Mathbackground member data.
Definition: Mtd_.hpp:1044
void ResetStyle(void)
Reset Style data member.
Definition: Mtd_.cpp:90
CSerialObject Tparent
Definition: Mtd_.hpp:92
const THref & GetHref(void) const
Get the Href member data.
Definition: Mtd_.hpp:950
bool CanGetStyle(void) const
Check if it is safe to call GetStyle method.
Definition: Mtd_.hpp:897
EAttlist_columnalign TColumnalign
Definition: Mtd_.hpp:133
bool CanGetClass(void) const
Check if it is safe to call GetClass method.
Definition: Mtd_.hpp:850
void ResetId(void)
Reset Id data member.
Definition: Mtd_.cpp:72
bool IsSetRowalign(void) const
Check if a value has been assigned to Rowalign data member.
Definition: Mtd_.hpp:1173
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
Definition: Mtd_.hpp:1320
virtual void Reset(void)
Reset the whole object.
Definition: Mtd_.cpp:211
void ResetAttlist(void)
Reset Attlist data member.
Definition: Mtd_.cpp:183
bool IsSetStyle(void) const
Check if a value has been assigned to Style data member.
Definition: Mtd_.hpp:891
const TStyle & GetStyle(void) const
Get the Style member data.
Definition: Mtd_.hpp:903
void Reset(void)
Reset the whole object.
Definition: Mtd_.cpp:132
bool IsSetId(void) const
Check if a value has been assigned to Id data member.
Definition: Mtd_.hpp:750
CRef< TAttlist > m_Attlist
Definition: Mtd_.hpp:736
void ResetRowalign(void)
Reset Rowalign data member.
Definition: Mtd_.hpp:1185
void ResetXref(void)
Reset Xref data member.
Definition: Mtd_.cpp:78
void ResetRowspan(void)
Reset Rowspan data member.
Definition: Mtd_.cpp:114
bool IsSetMathcolor(void) const
Check if a value has been assigned to Mathcolor data member.
Definition: Mtd_.hpp:985
TMtd & SetMtd(void)
Assign a value to Mtd data member.
Definition: Mtd_.hpp:1365
bool IsSetMathbackground(void) const
Check if a value has been assigned to Mathbackground data member.
Definition: Mtd_.hpp:1032
void ResetColumnalign(void)
Reset Columnalign data member.
Definition: Mtd_.hpp:1232
TGroupalign & SetGroupalign(void)
Assign a value to Groupalign data member.
Definition: Mtd_.hpp:1302
CMtd_Base(const CMtd_Base &)
CMtd_Base & operator=(const CMtd_Base &)
bool IsSetClass(void) const
Check if a value has been assigned to Class data member.
Definition: Mtd_.hpp:844
void ResetClass(void)
Reset Class data member.
Definition: Mtd_.cpp:84
Uint4 m_set_State[1]
Definition: Mtd_.hpp:621
bool IsSetMtd(void) const
Check if a value has been assigned to Mtd data member.
Definition: Mtd_.hpp:1344
bool CanGetMathbackground(void) const
Check if it is safe to call GetMathbackground method.
Definition: Mtd_.hpp:1038
const TMathcolor & GetMathcolor(void) const
Get the Mathcolor member data.
Definition: Mtd_.hpp:997
string m_Groupalign
Definition: Mtd_.hpp:633
string TMathbackground
Definition: Mtd_.hpp:129
CImpliedMrow C_Mtd
Definition: Mtd_.hpp:635
bool IsSetColumnspan(void) const
Check if a value has been assigned to Columnspan data member.
Definition: Mtd_.hpp:1126
bool IsSetRowspan(void) const
Check if a value has been assigned to Rowspan data member.
Definition: Mtd_.hpp:1079
C_Attlist TAttlist
Definition: Mtd_.hpp:637
bool IsSetGroupalign(void) const
Check if a value has been assigned to Groupalign data member.
Definition: Mtd_.hpp:1267
bool CanGetHref(void) const
Check if it is safe to call GetHref method.
Definition: Mtd_.hpp:944
const TColumnspan & GetColumnspan(void) const
Get the Columnspan member data.
Definition: Mtd_.hpp:1138
C_Attlist & operator=(const C_Attlist &)
string m_Mathbackground
Definition: Mtd_.hpp:628
TRowalign GetRowalign(void) const
Get the Rowalign member data.
Definition: Mtd_.hpp:1192
CSerialObject Tparent
Definition: Mtd_.hpp:75
TXref & SetXref(void)
Assign a value to Xref data member.
Definition: Mtd_.hpp:832
TMathbackground & SetMathbackground(void)
Assign a value to Mathbackground data member.
Definition: Mtd_.hpp:1067
void ResetMathcolor(void)
Reset Mathcolor data member.
Definition: Mtd_.cpp:102
TStyle & SetStyle(void)
Assign a value to Style data member.
Definition: Mtd_.hpp:926
EAttlist_rowalign m_Rowalign
Definition: Mtd_.hpp:631
bool IsSetXref(void) const
Check if a value has been assigned to Xref data member.
Definition: Mtd_.hpp:797
C_Attlist(const C_Attlist &)
string TColumnspan
Definition: Mtd_.hpp:131
const TMtd & GetMtd(void) const
Get the Mtd member data.
Definition: Mtd_.hpp:1356
void ResetGroupalign(void)
Reset Groupalign data member.
Definition: Mtd_.cpp:126
TColumnalign GetColumnalign(void) const
Get the Columnalign member data.
Definition: Mtd_.hpp:1239
EAttlist_columnalign m_Columnalign
Definition: Mtd_.hpp:632
Tparent::CMemberIndex< E_memberIndex, 13 > TmemberIndex
Definition: Mtd_.hpp:152
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
Definition: Mtd_.hpp:1314
TMathcolor & SetMathcolor(void)
Assign a value to Mathcolor data member.
Definition: Mtd_.hpp:1020
THref & SetHref(void)
Assign a value to Href data member.
Definition: Mtd_.hpp:973
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
Definition: Mtd_.hpp:1326
const TXref & GetXref(void) const
Get the Xref member data.
Definition: Mtd_.hpp:809
DECLARE_INTERNAL_TYPE_INFO()
bool CanGetColumnalign(void) const
Check if it is safe to call GetColumnalign method.
Definition: Mtd_.hpp:1226
bool CanGetMathcolor(void) const
Check if it is safe to call GetMathcolor method.
Definition: Mtd_.hpp:991
bool CanGetId(void) const
Check if it is safe to call GetId method.
Definition: Mtd_.hpp:756
@ eAttlist_rowalign_baseline
Definition: Mtd_.hpp:106
@ eAttlist_columnalign_center
Definition: Mtd_.hpp:115
@ eAttlist_columnalign_right
Definition: Mtd_.hpp:116
Modified on Sat Dec 09 04:45:06 2023 by modify_doxy.py rev. 669887