NCBI C++ ToolKit
Mglyph_.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 Mglyph_.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_MGLYPH_BASE_HPP
42 #define OBJTOOLS_EUTILS_EFETCH_MGLYPH_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
46 
47 // generated includes
48 #include <string>
49 
51 
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
55 #endif
56 BEGIN_objects_SCOPE // namespace ncbi::objects::
57 
58 
59 // generated classes
60 
61 
62 /** @addtogroup dataspec_pubmed_mathml3
63  *
64  * @{
65  */
66 
67 /////////////////////////////////////////////////////////////////////////////
68 ///
69 /// CMglyph_Base --
70 ///
71 
73 {
75 public:
76  // constructor
77  CMglyph_Base(void);
78  // destructor
79  virtual ~CMglyph_Base(void);
80 
81  // type info
83 
84  /////////////////////////////////////////////////////////////////////////////
85  ///
86  /// C_Attlist --
87  ///
88 
89  class C_Attlist : public CSerialObject
90  {
92  public:
93  // constructor
94  C_Attlist(void);
95  // destructor
96  ~C_Attlist(void);
97 
98  // type info
100 
120  };
121 
122  /// Access to EAttlist_mathvariant's attributes (values, names) as defined in spec
123  static const NCBI_NS_NCBI::CEnumeratedTypeValues* ENUM_METHOD_NAME(EAttlist_mathvariant)(void);
124 
128  };
129 
130  /// Access to EAttlist_fontweight's attributes (values, names) as defined in spec
131  static const NCBI_NS_NCBI::CEnumeratedTypeValues* ENUM_METHOD_NAME(EAttlist_fontweight)(void);
132 
136  };
137 
138  /// Access to EAttlist_fontstyle's attributes (values, names) as defined in spec
139  static const NCBI_NS_NCBI::CEnumeratedTypeValues* ENUM_METHOD_NAME(EAttlist_fontstyle)(void);
140 
141  // types
142  typedef string TId;
143  typedef string TXref;
144  typedef string TClass;
145  typedef string TStyle;
146  typedef string THref;
147  typedef string TMathcolor;
148  typedef string TMathbackground;
149  typedef string TSrc;
150  typedef string TWidth;
151  typedef string THeight;
152  typedef string TValign;
153  typedef string TAlt;
154  typedef string TIndex;
156  typedef string TMathsize;
157  typedef string TFontfamily;
160  typedef string TFontsize;
161  typedef string TColor;
162  typedef string TBackground;
163 
164  // member index
165  enum class E_memberIndex {
166  e__allMandatory = 0,
167  e_id,
168  e_xref,
169  e_class,
170  e_style,
171  e_href,
172  e_mathcolor,
174  e_src,
175  e_width,
176  e_height,
177  e_valign,
178  e_alt,
179  e_index,
181  e_mathsize,
182  e_fontfamily,
183  e_fontweight,
184  e_fontstyle,
185  e_fontsize,
186  e_color,
188  };
190 
191  // getters
192  // setters
193 
194  /// Check if a value has been assigned to Id data member.
195  ///
196  /// Data member Id is optional;
197  /// its type is defined as 'typedef string TId'
198  /// @return
199  /// - true, if a value has been assigned.
200  /// - false, otherwise.
201  bool IsSetId(void) const;
202 
203  /// Check if it is safe to call GetId method.
204  ///
205  /// @return
206  /// - true, if the data member is getatable.
207  /// - false, otherwise.
208  bool CanGetId(void) const;
209 
210  /// Reset Id data member.
211  void ResetId(void);
212 
213  /// Get the Id member data.
214  ///
215  /// @return
216  /// Reference to the member data.
217  const TId& GetId(void) const;
218 
219  /// Assign a value to Id data member.
220  ///
221  /// @param value
222  /// Value to assign
223  void SetId(const TId& value);
224  void SetId(TId&& value);
225 
226  /// Assign a value to Id data member.
227  ///
228  /// @return
229  /// Reference to the data value.
230  TId& SetId(void);
231 
232  /// Check if a value has been assigned to Xref data member.
233  ///
234  /// Data member Xref is optional;
235  /// its type is defined as 'typedef string TXref'
236  /// @return
237  /// - true, if a value has been assigned.
238  /// - false, otherwise.
239  bool IsSetXref(void) const;
240 
241  /// Check if it is safe to call GetXref method.
242  ///
243  /// @return
244  /// - true, if the data member is getatable.
245  /// - false, otherwise.
246  bool CanGetXref(void) const;
247 
248  /// Reset Xref data member.
249  void ResetXref(void);
250 
251  /// Get the Xref member data.
252  ///
253  /// @return
254  /// Reference to the member data.
255  const TXref& GetXref(void) const;
256 
257  /// Assign a value to Xref data member.
258  ///
259  /// @param value
260  /// Value to assign
261  void SetXref(const TXref& value);
262  void SetXref(TXref&& value);
263 
264  /// Assign a value to Xref data member.
265  ///
266  /// @return
267  /// Reference to the data value.
268  TXref& SetXref(void);
269 
270  /// Check if a value has been assigned to Class data member.
271  ///
272  /// Data member Class is optional;
273  /// its type is defined as 'typedef string TClass'
274  /// @return
275  /// - true, if a value has been assigned.
276  /// - false, otherwise.
277  bool IsSetClass(void) const;
278 
279  /// Check if it is safe to call GetClass method.
280  ///
281  /// @return
282  /// - true, if the data member is getatable.
283  /// - false, otherwise.
284  bool CanGetClass(void) const;
285 
286  /// Reset Class data member.
287  void ResetClass(void);
288 
289  /// Get the Class member data.
290  ///
291  /// @return
292  /// Reference to the member data.
293  const TClass& GetClass(void) const;
294 
295  /// Assign a value to Class data member.
296  ///
297  /// @param value
298  /// Value to assign
299  void SetClass(const TClass& value);
300  void SetClass(TClass&& value);
301 
302  /// Assign a value to Class data member.
303  ///
304  /// @return
305  /// Reference to the data value.
306  TClass& SetClass(void);
307 
308  /// Check if a value has been assigned to Style data member.
309  ///
310  /// Data member Style is optional;
311  /// its type is defined as 'typedef string TStyle'
312  /// @return
313  /// - true, if a value has been assigned.
314  /// - false, otherwise.
315  bool IsSetStyle(void) const;
316 
317  /// Check if it is safe to call GetStyle method.
318  ///
319  /// @return
320  /// - true, if the data member is getatable.
321  /// - false, otherwise.
322  bool CanGetStyle(void) const;
323 
324  /// Reset Style data member.
325  void ResetStyle(void);
326 
327  /// Get the Style member data.
328  ///
329  /// @return
330  /// Reference to the member data.
331  const TStyle& GetStyle(void) const;
332 
333  /// Assign a value to Style data member.
334  ///
335  /// @param value
336  /// Value to assign
337  void SetStyle(const TStyle& value);
338  void SetStyle(TStyle&& value);
339 
340  /// Assign a value to Style data member.
341  ///
342  /// @return
343  /// Reference to the data value.
344  TStyle& SetStyle(void);
345 
346  /// Check if a value has been assigned to Href data member.
347  ///
348  /// Data member Href is optional;
349  /// its type is defined as 'typedef string THref'
350  /// @return
351  /// - true, if a value has been assigned.
352  /// - false, otherwise.
353  bool IsSetHref(void) const;
354 
355  /// Check if it is safe to call GetHref method.
356  ///
357  /// @return
358  /// - true, if the data member is getatable.
359  /// - false, otherwise.
360  bool CanGetHref(void) const;
361 
362  /// Reset Href data member.
363  void ResetHref(void);
364 
365  /// Get the Href member data.
366  ///
367  /// @return
368  /// Reference to the member data.
369  const THref& GetHref(void) const;
370 
371  /// Assign a value to Href data member.
372  ///
373  /// @param value
374  /// Value to assign
375  void SetHref(const THref& value);
376  void SetHref(THref&& value);
377 
378  /// Assign a value to Href data member.
379  ///
380  /// @return
381  /// Reference to the data value.
382  THref& SetHref(void);
383 
384  /// Check if a value has been assigned to Mathcolor data member.
385  ///
386  /// Data member Mathcolor is optional;
387  /// its type is defined as 'typedef string TMathcolor'
388  /// @return
389  /// - true, if a value has been assigned.
390  /// - false, otherwise.
391  bool IsSetMathcolor(void) const;
392 
393  /// Check if it is safe to call GetMathcolor method.
394  ///
395  /// @return
396  /// - true, if the data member is getatable.
397  /// - false, otherwise.
398  bool CanGetMathcolor(void) const;
399 
400  /// Reset Mathcolor data member.
401  void ResetMathcolor(void);
402 
403  /// Get the Mathcolor member data.
404  ///
405  /// @return
406  /// Reference to the member data.
407  const TMathcolor& GetMathcolor(void) const;
408 
409  /// Assign a value to Mathcolor data member.
410  ///
411  /// @param value
412  /// Value to assign
413  void SetMathcolor(const TMathcolor& value);
414  void SetMathcolor(TMathcolor&& value);
415 
416  /// Assign a value to Mathcolor data member.
417  ///
418  /// @return
419  /// Reference to the data value.
420  TMathcolor& SetMathcolor(void);
421 
422  /// Check if a value has been assigned to Mathbackground data member.
423  ///
424  /// Data member Mathbackground is optional;
425  /// its type is defined as 'typedef string TMathbackground'
426  /// @return
427  /// - true, if a value has been assigned.
428  /// - false, otherwise.
429  bool IsSetMathbackground(void) const;
430 
431  /// Check if it is safe to call GetMathbackground method.
432  ///
433  /// @return
434  /// - true, if the data member is getatable.
435  /// - false, otherwise.
436  bool CanGetMathbackground(void) const;
437 
438  /// Reset Mathbackground data member.
439  void ResetMathbackground(void);
440 
441  /// Get the Mathbackground member data.
442  ///
443  /// @return
444  /// Reference to the member data.
445  const TMathbackground& GetMathbackground(void) const;
446 
447  /// Assign a value to Mathbackground data member.
448  ///
449  /// @param value
450  /// Value to assign
453 
454  /// Assign a value to Mathbackground data member.
455  ///
456  /// @return
457  /// Reference to the data value.
459 
460  /// Check if a value has been assigned to Src data member.
461  ///
462  /// Data member Src is optional;
463  /// its type is defined as 'typedef string TSrc'
464  /// @return
465  /// - true, if a value has been assigned.
466  /// - false, otherwise.
467  bool IsSetSrc(void) const;
468 
469  /// Check if it is safe to call GetSrc method.
470  ///
471  /// @return
472  /// - true, if the data member is getatable.
473  /// - false, otherwise.
474  bool CanGetSrc(void) const;
475 
476  /// Reset Src data member.
477  void ResetSrc(void);
478 
479  /// Get the Src member data.
480  ///
481  /// @return
482  /// Reference to the member data.
483  const TSrc& GetSrc(void) const;
484 
485  /// Assign a value to Src data member.
486  ///
487  /// @param value
488  /// Value to assign
489  void SetSrc(const TSrc& value);
490  void SetSrc(TSrc&& value);
491 
492  /// Assign a value to Src data member.
493  ///
494  /// @return
495  /// Reference to the data value.
496  TSrc& SetSrc(void);
497 
498  /// Check if a value has been assigned to Width data member.
499  ///
500  /// Data member Width is optional;
501  /// its type is defined as 'typedef string TWidth'
502  /// @return
503  /// - true, if a value has been assigned.
504  /// - false, otherwise.
505  bool IsSetWidth(void) const;
506 
507  /// Check if it is safe to call GetWidth method.
508  ///
509  /// @return
510  /// - true, if the data member is getatable.
511  /// - false, otherwise.
512  bool CanGetWidth(void) const;
513 
514  /// Reset Width data member.
515  void ResetWidth(void);
516 
517  /// Get the Width member data.
518  ///
519  /// @return
520  /// Reference to the member data.
521  const TWidth& GetWidth(void) const;
522 
523  /// Assign a value to Width data member.
524  ///
525  /// @param value
526  /// Value to assign
527  void SetWidth(const TWidth& value);
528  void SetWidth(TWidth&& value);
529 
530  /// Assign a value to Width data member.
531  ///
532  /// @return
533  /// Reference to the data value.
534  TWidth& SetWidth(void);
535 
536  /// Check if a value has been assigned to Height data member.
537  ///
538  /// Data member Height is optional;
539  /// its type is defined as 'typedef string THeight'
540  /// @return
541  /// - true, if a value has been assigned.
542  /// - false, otherwise.
543  bool IsSetHeight(void) const;
544 
545  /// Check if it is safe to call GetHeight method.
546  ///
547  /// @return
548  /// - true, if the data member is getatable.
549  /// - false, otherwise.
550  bool CanGetHeight(void) const;
551 
552  /// Reset Height data member.
553  void ResetHeight(void);
554 
555  /// Get the Height member data.
556  ///
557  /// @return
558  /// Reference to the member data.
559  const THeight& GetHeight(void) const;
560 
561  /// Assign a value to Height data member.
562  ///
563  /// @param value
564  /// Value to assign
565  void SetHeight(const THeight& value);
566  void SetHeight(THeight&& value);
567 
568  /// Assign a value to Height data member.
569  ///
570  /// @return
571  /// Reference to the data value.
572  THeight& SetHeight(void);
573 
574  /// Check if a value has been assigned to Valign data member.
575  ///
576  /// Data member Valign is optional;
577  /// its type is defined as 'typedef string TValign'
578  /// @return
579  /// - true, if a value has been assigned.
580  /// - false, otherwise.
581  bool IsSetValign(void) const;
582 
583  /// Check if it is safe to call GetValign method.
584  ///
585  /// @return
586  /// - true, if the data member is getatable.
587  /// - false, otherwise.
588  bool CanGetValign(void) const;
589 
590  /// Reset Valign data member.
591  void ResetValign(void);
592 
593  /// Get the Valign member data.
594  ///
595  /// @return
596  /// Reference to the member data.
597  const TValign& GetValign(void) const;
598 
599  /// Assign a value to Valign data member.
600  ///
601  /// @param value
602  /// Value to assign
603  void SetValign(const TValign& value);
604  void SetValign(TValign&& value);
605 
606  /// Assign a value to Valign data member.
607  ///
608  /// @return
609  /// Reference to the data value.
610  TValign& SetValign(void);
611 
612  /// Check if a value has been assigned to Alt data member.
613  ///
614  /// Data member Alt is optional;
615  /// its type is defined as 'typedef string TAlt'
616  /// @return
617  /// - true, if a value has been assigned.
618  /// - false, otherwise.
619  bool IsSetAlt(void) const;
620 
621  /// Check if it is safe to call GetAlt method.
622  ///
623  /// @return
624  /// - true, if the data member is getatable.
625  /// - false, otherwise.
626  bool CanGetAlt(void) const;
627 
628  /// Reset Alt data member.
629  void ResetAlt(void);
630 
631  /// Get the Alt member data.
632  ///
633  /// @return
634  /// Reference to the member data.
635  const TAlt& GetAlt(void) const;
636 
637  /// Assign a value to Alt data member.
638  ///
639  /// @param value
640  /// Value to assign
641  void SetAlt(const TAlt& value);
642  void SetAlt(TAlt&& value);
643 
644  /// Assign a value to Alt data member.
645  ///
646  /// @return
647  /// Reference to the data value.
648  TAlt& SetAlt(void);
649 
650  /// Check if a value has been assigned to Index data member.
651  ///
652  /// Data member Index is optional;
653  /// its type is defined as 'typedef string TIndex'
654  /// @return
655  /// - true, if a value has been assigned.
656  /// - false, otherwise.
657  bool IsSetIndex(void) const;
658 
659  /// Check if it is safe to call GetIndex method.
660  ///
661  /// @return
662  /// - true, if the data member is getatable.
663  /// - false, otherwise.
664  bool CanGetIndex(void) const;
665 
666  /// Reset Index data member.
667  void ResetIndex(void);
668 
669  /// Get the Index member data.
670  ///
671  /// @return
672  /// Reference to the member data.
673  const TIndex& GetIndex(void) const;
674 
675  /// Assign a value to Index data member.
676  ///
677  /// @param value
678  /// Value to assign
679  void SetIndex(const TIndex& value);
680  void SetIndex(TIndex&& value);
681 
682  /// Assign a value to Index data member.
683  ///
684  /// @return
685  /// Reference to the data value.
686  TIndex& SetIndex(void);
687 
688  /// Check if a value has been assigned to Mathvariant data member.
689  ///
690  /// Data member Mathvariant is optional;
691  /// its type is defined as 'typedef EAttlist_mathvariant TMathvariant'
692  /// @return
693  /// - true, if a value has been assigned.
694  /// - false, otherwise.
695  bool IsSetMathvariant(void) const;
696 
697  /// Check if it is safe to call GetMathvariant method.
698  ///
699  /// @return
700  /// - true, if the data member is getatable.
701  /// - false, otherwise.
702  bool CanGetMathvariant(void) const;
703 
704  /// Reset Mathvariant data member.
705  void ResetMathvariant(void);
706 
707  /// Get the Mathvariant member data.
708  ///
709  /// @return
710  /// Copy of the member data.
711  TMathvariant GetMathvariant(void) const;
712 
713  /// Assign a value to Mathvariant data member.
714  ///
715  /// @param value
716  /// Value to assign
718 
719  /// Assign a value to Mathvariant data member.
720  ///
721  /// @return
722  /// Reference to the data value.
724 
725  /// Check if a value has been assigned to Mathsize data member.
726  ///
727  /// Data member Mathsize is optional;
728  /// its type is defined as 'typedef string TMathsize'
729  /// @return
730  /// - true, if a value has been assigned.
731  /// - false, otherwise.
732  bool IsSetMathsize(void) const;
733 
734  /// Check if it is safe to call GetMathsize method.
735  ///
736  /// @return
737  /// - true, if the data member is getatable.
738  /// - false, otherwise.
739  bool CanGetMathsize(void) const;
740 
741  /// Reset Mathsize data member.
742  void ResetMathsize(void);
743 
744  /// Get the Mathsize member data.
745  ///
746  /// @return
747  /// Reference to the member data.
748  const TMathsize& GetMathsize(void) const;
749 
750  /// Assign a value to Mathsize data member.
751  ///
752  /// @param value
753  /// Value to assign
754  void SetMathsize(const TMathsize& value);
755  void SetMathsize(TMathsize&& value);
756 
757  /// Assign a value to Mathsize data member.
758  ///
759  /// @return
760  /// Reference to the data value.
761  TMathsize& SetMathsize(void);
762 
763  /// Check if a value has been assigned to Fontfamily data member.
764  ///
765  /// Data member Fontfamily is optional;
766  /// its type is defined as 'typedef string TFontfamily'
767  /// @return
768  /// - true, if a value has been assigned.
769  /// - false, otherwise.
770  bool IsSetFontfamily(void) const;
771 
772  /// Check if it is safe to call GetFontfamily method.
773  ///
774  /// @return
775  /// - true, if the data member is getatable.
776  /// - false, otherwise.
777  bool CanGetFontfamily(void) const;
778 
779  /// Reset Fontfamily data member.
780  void ResetFontfamily(void);
781 
782  /// Get the Fontfamily member data.
783  ///
784  /// @return
785  /// Reference to the member data.
786  const TFontfamily& GetFontfamily(void) const;
787 
788  /// Assign a value to Fontfamily data member.
789  ///
790  /// @param value
791  /// Value to assign
792  void SetFontfamily(const TFontfamily& value);
794 
795  /// Assign a value to Fontfamily data member.
796  ///
797  /// @return
798  /// Reference to the data value.
799  TFontfamily& SetFontfamily(void);
800 
801  /// Check if a value has been assigned to Fontweight data member.
802  ///
803  /// Data member Fontweight is optional;
804  /// its type is defined as 'typedef EAttlist_fontweight TFontweight'
805  /// @return
806  /// - true, if a value has been assigned.
807  /// - false, otherwise.
808  bool IsSetFontweight(void) const;
809 
810  /// Check if it is safe to call GetFontweight method.
811  ///
812  /// @return
813  /// - true, if the data member is getatable.
814  /// - false, otherwise.
815  bool CanGetFontweight(void) const;
816 
817  /// Reset Fontweight data member.
818  void ResetFontweight(void);
819 
820  /// Get the Fontweight member data.
821  ///
822  /// @return
823  /// Copy of the member data.
824  TFontweight GetFontweight(void) const;
825 
826  /// Assign a value to Fontweight data member.
827  ///
828  /// @param value
829  /// Value to assign
831 
832  /// Assign a value to Fontweight data member.
833  ///
834  /// @return
835  /// Reference to the data value.
836  TFontweight& SetFontweight(void);
837 
838  /// Check if a value has been assigned to Fontstyle data member.
839  ///
840  /// Data member Fontstyle is optional;
841  /// its type is defined as 'typedef EAttlist_fontstyle TFontstyle'
842  /// @return
843  /// - true, if a value has been assigned.
844  /// - false, otherwise.
845  bool IsSetFontstyle(void) const;
846 
847  /// Check if it is safe to call GetFontstyle method.
848  ///
849  /// @return
850  /// - true, if the data member is getatable.
851  /// - false, otherwise.
852  bool CanGetFontstyle(void) const;
853 
854  /// Reset Fontstyle data member.
855  void ResetFontstyle(void);
856 
857  /// Get the Fontstyle member data.
858  ///
859  /// @return
860  /// Copy of the member data.
861  TFontstyle GetFontstyle(void) const;
862 
863  /// Assign a value to Fontstyle data member.
864  ///
865  /// @param value
866  /// Value to assign
868 
869  /// Assign a value to Fontstyle data member.
870  ///
871  /// @return
872  /// Reference to the data value.
873  TFontstyle& SetFontstyle(void);
874 
875  /// Check if a value has been assigned to Fontsize data member.
876  ///
877  /// Data member Fontsize is optional;
878  /// its type is defined as 'typedef string TFontsize'
879  /// @return
880  /// - true, if a value has been assigned.
881  /// - false, otherwise.
882  bool IsSetFontsize(void) const;
883 
884  /// Check if it is safe to call GetFontsize method.
885  ///
886  /// @return
887  /// - true, if the data member is getatable.
888  /// - false, otherwise.
889  bool CanGetFontsize(void) const;
890 
891  /// Reset Fontsize data member.
892  void ResetFontsize(void);
893 
894  /// Get the Fontsize member data.
895  ///
896  /// @return
897  /// Reference to the member data.
898  const TFontsize& GetFontsize(void) const;
899 
900  /// Assign a value to Fontsize data member.
901  ///
902  /// @param value
903  /// Value to assign
904  void SetFontsize(const TFontsize& value);
905  void SetFontsize(TFontsize&& value);
906 
907  /// Assign a value to Fontsize data member.
908  ///
909  /// @return
910  /// Reference to the data value.
911  TFontsize& SetFontsize(void);
912 
913  /// Check if a value has been assigned to Color data member.
914  ///
915  /// Data member Color is optional;
916  /// its type is defined as 'typedef string TColor'
917  /// @return
918  /// - true, if a value has been assigned.
919  /// - false, otherwise.
920  bool IsSetColor(void) const;
921 
922  /// Check if it is safe to call GetColor method.
923  ///
924  /// @return
925  /// - true, if the data member is getatable.
926  /// - false, otherwise.
927  bool CanGetColor(void) const;
928 
929  /// Reset Color data member.
930  void ResetColor(void);
931 
932  /// Get the Color member data.
933  ///
934  /// @return
935  /// Reference to the member data.
936  const TColor& GetColor(void) const;
937 
938  /// Assign a value to Color data member.
939  ///
940  /// @param value
941  /// Value to assign
942  void SetColor(const TColor& value);
943  void SetColor(TColor&& value);
944 
945  /// Assign a value to Color data member.
946  ///
947  /// @return
948  /// Reference to the data value.
949  TColor& SetColor(void);
950 
951  /// Check if a value has been assigned to Background data member.
952  ///
953  /// Data member Background is optional;
954  /// its type is defined as 'typedef string TBackground'
955  /// @return
956  /// - true, if a value has been assigned.
957  /// - false, otherwise.
958  bool IsSetBackground(void) const;
959 
960  /// Check if it is safe to call GetBackground method.
961  ///
962  /// @return
963  /// - true, if the data member is getatable.
964  /// - false, otherwise.
965  bool CanGetBackground(void) const;
966 
967  /// Reset Background data member.
968  void ResetBackground(void);
969 
970  /// Get the Background member data.
971  ///
972  /// @return
973  /// Reference to the member data.
974  const TBackground& GetBackground(void) const;
975 
976  /// Assign a value to Background data member.
977  ///
978  /// @param value
979  /// Value to assign
980  void SetBackground(const TBackground& value);
982 
983  /// Assign a value to Background data member.
984  ///
985  /// @return
986  /// Reference to the data value.
987  TBackground& SetBackground(void);
988 
989  /// Reset the whole object
990  void Reset(void);
991 
992 
993  private:
994  // Prohibit copy constructor and assignment operator
997 
998  // data
1000  string m_Id;
1001  string m_Xref;
1002  string m_Class;
1003  string m_Style;
1004  string m_Href;
1005  string m_Mathcolor;
1007  string m_Src;
1008  string m_Width;
1009  string m_Height;
1010  string m_Valign;
1011  string m_Alt;
1012  string m_Index;
1014  string m_Mathsize;
1018  string m_Fontsize;
1019  string m_Color;
1021  };
1022  // types
1024 
1025  // member index
1026  enum class E_memberIndex {
1027  e__allMandatory = 0,
1028  e_Attlist,
1029  e_mglyph
1030  };
1032 
1033  // getters
1034  // setters
1035 
1036  /// Check if a value has been assigned to Attlist data member.
1037  ///
1038  /// Data member Attlist is mandatory;
1039  /// its type is defined as 'typedef C_Attlist TAttlist'
1040  /// @return
1041  /// - true, if a value has been assigned.
1042  /// - false, otherwise.
1043  bool IsSetAttlist(void) const;
1044 
1045  /// Check if it is safe to call GetAttlist method.
1046  ///
1047  /// @return
1048  /// - true, if the data member is getatable.
1049  /// - false, otherwise.
1050  bool CanGetAttlist(void) const;
1051 
1052  /// Reset Attlist data member.
1053  void ResetAttlist(void);
1054 
1055  /// Get the Attlist member data.
1056  ///
1057  /// @return
1058  /// Reference to the member data.
1059  const TAttlist& GetAttlist(void) const;
1060 
1061  /// Assign a value to Attlist data member.
1062  ///
1063  /// @param value
1064  /// Reference to value.
1065  void SetAttlist(TAttlist& value);
1066 
1067  /// Assign a value to Attlist data member.
1068  ///
1069  /// @return
1070  /// Reference to the data value.
1071  TAttlist& SetAttlist(void);
1072 
1073  /// Check if a value has been assigned to Mglyph data member.
1074  ///
1075  /// Data member Mglyph is mandatory
1076  /// @return
1077  /// - true, if a value has been assigned.
1078  /// - false, otherwise.
1079  bool IsSetMglyph(void) const;
1080 
1081  /// Check if value of Mglyph member is getatable.
1082  ///
1083  /// @return
1084  /// - false; the data member of type 'NULL' has no value.
1085  bool CanGetMglyph(void) const;
1086 
1087  /// Reset Mglyph data member.
1088  void ResetMglyph(void);
1089 
1090  /// Set NULL data member (assign 'NULL' value to Mglyph data member).
1091  void SetMglyph(void);
1092 
1093  /// Reset the whole object
1094  virtual void Reset(void);
1095 
1096 
1097 private:
1098  // Prohibit copy constructor and assignment operator
1101 
1102  // data
1105 };
1106 
1107 /* @} */
1108 
1109 
1110 
1111 
1112 
1113 ///////////////////////////////////////////////////////////
1114 ///////////////////// inline methods //////////////////////
1115 ///////////////////////////////////////////////////////////
1116 inline
1118 {
1119  return ((m_set_State[0] & 0x3) != 0);
1120 }
1121 
1122 inline
1124 {
1125  return IsSetId();
1126 }
1127 
1128 inline
1130 {
1131  if (!CanGetId()) {
1132  ThrowUnassigned(0);
1133  }
1134  return m_Id;
1135 }
1136 
1137 inline
1139 {
1140  m_Id = value;
1141  m_set_State[0] |= 0x3;
1142 }
1143 
1144 inline
1146 {
1147  m_Id = std::forward<CMglyph_Base::C_Attlist::TId>(value);
1148  m_set_State[0] |= 0x3;
1149 }
1150 
1151 inline
1153 {
1154 #ifdef _DEBUG
1155  if (!IsSetId()) {
1156  m_Id = UnassignedString();
1157  }
1158 #endif
1159  m_set_State[0] |= 0x1;
1160  return m_Id;
1161 }
1162 
1163 inline
1165 {
1166  return ((m_set_State[0] & 0xc) != 0);
1167 }
1168 
1169 inline
1171 {
1172  return IsSetXref();
1173 }
1174 
1175 inline
1177 {
1178  if (!CanGetXref()) {
1179  ThrowUnassigned(1);
1180  }
1181  return m_Xref;
1182 }
1183 
1184 inline
1186 {
1187  m_Xref = value;
1188  m_set_State[0] |= 0xc;
1189 }
1190 
1191 inline
1193 {
1194  m_Xref = std::forward<CMglyph_Base::C_Attlist::TXref>(value);
1195  m_set_State[0] |= 0xc;
1196 }
1197 
1198 inline
1200 {
1201 #ifdef _DEBUG
1202  if (!IsSetXref()) {
1203  m_Xref = UnassignedString();
1204  }
1205 #endif
1206  m_set_State[0] |= 0x4;
1207  return m_Xref;
1208 }
1209 
1210 inline
1212 {
1213  return ((m_set_State[0] & 0x30) != 0);
1214 }
1215 
1216 inline
1218 {
1219  return IsSetClass();
1220 }
1221 
1222 inline
1224 {
1225  if (!CanGetClass()) {
1226  ThrowUnassigned(2);
1227  }
1228  return m_Class;
1229 }
1230 
1231 inline
1233 {
1234  m_Class = value;
1235  m_set_State[0] |= 0x30;
1236 }
1237 
1238 inline
1240 {
1241  m_Class = std::forward<CMglyph_Base::C_Attlist::TClass>(value);
1242  m_set_State[0] |= 0x30;
1243 }
1244 
1245 inline
1247 {
1248 #ifdef _DEBUG
1249  if (!IsSetClass()) {
1250  m_Class = UnassignedString();
1251  }
1252 #endif
1253  m_set_State[0] |= 0x10;
1254  return m_Class;
1255 }
1256 
1257 inline
1259 {
1260  return ((m_set_State[0] & 0xc0) != 0);
1261 }
1262 
1263 inline
1265 {
1266  return IsSetStyle();
1267 }
1268 
1269 inline
1271 {
1272  if (!CanGetStyle()) {
1273  ThrowUnassigned(3);
1274  }
1275  return m_Style;
1276 }
1277 
1278 inline
1280 {
1281  m_Style = value;
1282  m_set_State[0] |= 0xc0;
1283 }
1284 
1285 inline
1287 {
1288  m_Style = std::forward<CMglyph_Base::C_Attlist::TStyle>(value);
1289  m_set_State[0] |= 0xc0;
1290 }
1291 
1292 inline
1294 {
1295 #ifdef _DEBUG
1296  if (!IsSetStyle()) {
1297  m_Style = UnassignedString();
1298  }
1299 #endif
1300  m_set_State[0] |= 0x40;
1301  return m_Style;
1302 }
1303 
1304 inline
1306 {
1307  return ((m_set_State[0] & 0x300) != 0);
1308 }
1309 
1310 inline
1312 {
1313  return IsSetHref();
1314 }
1315 
1316 inline
1318 {
1319  if (!CanGetHref()) {
1320  ThrowUnassigned(4);
1321  }
1322  return m_Href;
1323 }
1324 
1325 inline
1327 {
1328  m_Href = value;
1329  m_set_State[0] |= 0x300;
1330 }
1331 
1332 inline
1334 {
1335  m_Href = std::forward<CMglyph_Base::C_Attlist::THref>(value);
1336  m_set_State[0] |= 0x300;
1337 }
1338 
1339 inline
1341 {
1342 #ifdef _DEBUG
1343  if (!IsSetHref()) {
1344  m_Href = UnassignedString();
1345  }
1346 #endif
1347  m_set_State[0] |= 0x100;
1348  return m_Href;
1349 }
1350 
1351 inline
1353 {
1354  return ((m_set_State[0] & 0xc00) != 0);
1355 }
1356 
1357 inline
1359 {
1360  return IsSetMathcolor();
1361 }
1362 
1363 inline
1365 {
1366  if (!CanGetMathcolor()) {
1367  ThrowUnassigned(5);
1368  }
1369  return m_Mathcolor;
1370 }
1371 
1372 inline
1374 {
1375  m_Mathcolor = value;
1376  m_set_State[0] |= 0xc00;
1377 }
1378 
1379 inline
1381 {
1382  m_Mathcolor = std::forward<CMglyph_Base::C_Attlist::TMathcolor>(value);
1383  m_set_State[0] |= 0xc00;
1384 }
1385 
1386 inline
1388 {
1389 #ifdef _DEBUG
1390  if (!IsSetMathcolor()) {
1391  m_Mathcolor = UnassignedString();
1392  }
1393 #endif
1394  m_set_State[0] |= 0x400;
1395  return m_Mathcolor;
1396 }
1397 
1398 inline
1400 {
1401  return ((m_set_State[0] & 0x3000) != 0);
1402 }
1403 
1404 inline
1406 {
1407  return IsSetMathbackground();
1408 }
1409 
1410 inline
1412 {
1413  if (!CanGetMathbackground()) {
1414  ThrowUnassigned(6);
1415  }
1416  return m_Mathbackground;
1417 }
1418 
1419 inline
1421 {
1422  m_Mathbackground = value;
1423  m_set_State[0] |= 0x3000;
1424 }
1425 
1426 inline
1428 {
1429  m_Mathbackground = std::forward<CMglyph_Base::C_Attlist::TMathbackground>(value);
1430  m_set_State[0] |= 0x3000;
1431 }
1432 
1433 inline
1435 {
1436 #ifdef _DEBUG
1437  if (!IsSetMathbackground()) {
1438  m_Mathbackground = UnassignedString();
1439  }
1440 #endif
1441  m_set_State[0] |= 0x1000;
1442  return m_Mathbackground;
1443 }
1444 
1445 inline
1447 {
1448  return ((m_set_State[0] & 0xc000) != 0);
1449 }
1450 
1451 inline
1453 {
1454  return IsSetSrc();
1455 }
1456 
1457 inline
1459 {
1460  if (!CanGetSrc()) {
1461  ThrowUnassigned(7);
1462  }
1463  return m_Src;
1464 }
1465 
1466 inline
1468 {
1469  m_Src = value;
1470  m_set_State[0] |= 0xc000;
1471 }
1472 
1473 inline
1475 {
1476  m_Src = std::forward<CMglyph_Base::C_Attlist::TSrc>(value);
1477  m_set_State[0] |= 0xc000;
1478 }
1479 
1480 inline
1482 {
1483 #ifdef _DEBUG
1484  if (!IsSetSrc()) {
1485  m_Src = UnassignedString();
1486  }
1487 #endif
1488  m_set_State[0] |= 0x4000;
1489  return m_Src;
1490 }
1491 
1492 inline
1494 {
1495  return ((m_set_State[0] & 0x30000) != 0);
1496 }
1497 
1498 inline
1500 {
1501  return IsSetWidth();
1502 }
1503 
1504 inline
1506 {
1507  if (!CanGetWidth()) {
1508  ThrowUnassigned(8);
1509  }
1510  return m_Width;
1511 }
1512 
1513 inline
1515 {
1516  m_Width = value;
1517  m_set_State[0] |= 0x30000;
1518 }
1519 
1520 inline
1522 {
1523  m_Width = std::forward<CMglyph_Base::C_Attlist::TWidth>(value);
1524  m_set_State[0] |= 0x30000;
1525 }
1526 
1527 inline
1529 {
1530 #ifdef _DEBUG
1531  if (!IsSetWidth()) {
1532  m_Width = UnassignedString();
1533  }
1534 #endif
1535  m_set_State[0] |= 0x10000;
1536  return m_Width;
1537 }
1538 
1539 inline
1541 {
1542  return ((m_set_State[0] & 0xc0000) != 0);
1543 }
1544 
1545 inline
1547 {
1548  return IsSetHeight();
1549 }
1550 
1551 inline
1553 {
1554  if (!CanGetHeight()) {
1555  ThrowUnassigned(9);
1556  }
1557  return m_Height;
1558 }
1559 
1560 inline
1562 {
1563  m_Height = value;
1564  m_set_State[0] |= 0xc0000;
1565 }
1566 
1567 inline
1569 {
1570  m_Height = std::forward<CMglyph_Base::C_Attlist::THeight>(value);
1571  m_set_State[0] |= 0xc0000;
1572 }
1573 
1574 inline
1576 {
1577 #ifdef _DEBUG
1578  if (!IsSetHeight()) {
1579  m_Height = UnassignedString();
1580  }
1581 #endif
1582  m_set_State[0] |= 0x40000;
1583  return m_Height;
1584 }
1585 
1586 inline
1588 {
1589  return ((m_set_State[0] & 0x300000) != 0);
1590 }
1591 
1592 inline
1594 {
1595  return IsSetValign();
1596 }
1597 
1598 inline
1600 {
1601  if (!CanGetValign()) {
1602  ThrowUnassigned(10);
1603  }
1604  return m_Valign;
1605 }
1606 
1607 inline
1609 {
1610  m_Valign = value;
1611  m_set_State[0] |= 0x300000;
1612 }
1613 
1614 inline
1616 {
1617  m_Valign = std::forward<CMglyph_Base::C_Attlist::TValign>(value);
1618  m_set_State[0] |= 0x300000;
1619 }
1620 
1621 inline
1623 {
1624 #ifdef _DEBUG
1625  if (!IsSetValign()) {
1626  m_Valign = UnassignedString();
1627  }
1628 #endif
1629  m_set_State[0] |= 0x100000;
1630  return m_Valign;
1631 }
1632 
1633 inline
1635 {
1636  return ((m_set_State[0] & 0xc00000) != 0);
1637 }
1638 
1639 inline
1641 {
1642  return IsSetAlt();
1643 }
1644 
1645 inline
1647 {
1648  if (!CanGetAlt()) {
1649  ThrowUnassigned(11);
1650  }
1651  return m_Alt;
1652 }
1653 
1654 inline
1656 {
1657  m_Alt = value;
1658  m_set_State[0] |= 0xc00000;
1659 }
1660 
1661 inline
1663 {
1664  m_Alt = std::forward<CMglyph_Base::C_Attlist::TAlt>(value);
1665  m_set_State[0] |= 0xc00000;
1666 }
1667 
1668 inline
1670 {
1671 #ifdef _DEBUG
1672  if (!IsSetAlt()) {
1673  m_Alt = UnassignedString();
1674  }
1675 #endif
1676  m_set_State[0] |= 0x400000;
1677  return m_Alt;
1678 }
1679 
1680 inline
1682 {
1683  return ((m_set_State[0] & 0x3000000) != 0);
1684 }
1685 
1686 inline
1688 {
1689  return IsSetIndex();
1690 }
1691 
1692 inline
1694 {
1695  if (!CanGetIndex()) {
1696  ThrowUnassigned(12);
1697  }
1698  return m_Index;
1699 }
1700 
1701 inline
1703 {
1704  m_Index = value;
1705  m_set_State[0] |= 0x3000000;
1706 }
1707 
1708 inline
1710 {
1711  m_Index = std::forward<CMglyph_Base::C_Attlist::TIndex>(value);
1712  m_set_State[0] |= 0x3000000;
1713 }
1714 
1715 inline
1717 {
1718 #ifdef _DEBUG
1719  if (!IsSetIndex()) {
1720  m_Index = UnassignedString();
1721  }
1722 #endif
1723  m_set_State[0] |= 0x1000000;
1724  return m_Index;
1725 }
1726 
1727 inline
1729 {
1730  return ((m_set_State[0] & 0xc000000) != 0);
1731 }
1732 
1733 inline
1735 {
1736  return IsSetMathvariant();
1737 }
1738 
1739 inline
1741 {
1742  m_Mathvariant = (EAttlist_mathvariant)(0);
1743  m_set_State[0] &= ~0xc000000;
1744 }
1745 
1746 inline
1748 {
1749  if (!CanGetMathvariant()) {
1750  ThrowUnassigned(13);
1751  }
1752  return m_Mathvariant;
1753 }
1754 
1755 inline
1757 {
1758  m_Mathvariant = value;
1759  m_set_State[0] |= 0xc000000;
1760 }
1761 
1762 inline
1764 {
1765 #ifdef _DEBUG
1766  if (!IsSetMathvariant()) {
1767  memset(&m_Mathvariant,UnassignedByte(),sizeof(m_Mathvariant));
1768  }
1769 #endif
1770  m_set_State[0] |= 0x4000000;
1771  return m_Mathvariant;
1772 }
1773 
1774 inline
1776 {
1777  return ((m_set_State[0] & 0x30000000) != 0);
1778 }
1779 
1780 inline
1782 {
1783  return IsSetMathsize();
1784 }
1785 
1786 inline
1788 {
1789  if (!CanGetMathsize()) {
1790  ThrowUnassigned(14);
1791  }
1792  return m_Mathsize;
1793 }
1794 
1795 inline
1797 {
1798  m_Mathsize = value;
1799  m_set_State[0] |= 0x30000000;
1800 }
1801 
1802 inline
1804 {
1805  m_Mathsize = std::forward<CMglyph_Base::C_Attlist::TMathsize>(value);
1806  m_set_State[0] |= 0x30000000;
1807 }
1808 
1809 inline
1811 {
1812 #ifdef _DEBUG
1813  if (!IsSetMathsize()) {
1814  m_Mathsize = UnassignedString();
1815  }
1816 #endif
1817  m_set_State[0] |= 0x10000000;
1818  return m_Mathsize;
1819 }
1820 
1821 inline
1823 {
1824  return ((m_set_State[0] & 0xc0000000) != 0);
1825 }
1826 
1827 inline
1829 {
1830  return IsSetFontfamily();
1831 }
1832 
1833 inline
1835 {
1836  if (!CanGetFontfamily()) {
1837  ThrowUnassigned(15);
1838  }
1839  return m_Fontfamily;
1840 }
1841 
1842 inline
1844 {
1845  m_Fontfamily = value;
1846  m_set_State[0] |= 0xc0000000;
1847 }
1848 
1849 inline
1851 {
1852  m_Fontfamily = std::forward<CMglyph_Base::C_Attlist::TFontfamily>(value);
1853  m_set_State[0] |= 0xc0000000;
1854 }
1855 
1856 inline
1858 {
1859 #ifdef _DEBUG
1860  if (!IsSetFontfamily()) {
1861  m_Fontfamily = UnassignedString();
1862  }
1863 #endif
1864  m_set_State[0] |= 0x40000000;
1865  return m_Fontfamily;
1866 }
1867 
1868 inline
1870 {
1871  return ((m_set_State[1] & 0x3) != 0);
1872 }
1873 
1874 inline
1876 {
1877  return IsSetFontweight();
1878 }
1879 
1880 inline
1882 {
1883  m_Fontweight = (EAttlist_fontweight)(0);
1884  m_set_State[1] &= ~0x3;
1885 }
1886 
1887 inline
1889 {
1890  if (!CanGetFontweight()) {
1891  ThrowUnassigned(16);
1892  }
1893  return m_Fontweight;
1894 }
1895 
1896 inline
1898 {
1899  m_Fontweight = value;
1900  m_set_State[1] |= 0x3;
1901 }
1902 
1903 inline
1905 {
1906 #ifdef _DEBUG
1907  if (!IsSetFontweight()) {
1908  memset(&m_Fontweight,UnassignedByte(),sizeof(m_Fontweight));
1909  }
1910 #endif
1911  m_set_State[1] |= 0x1;
1912  return m_Fontweight;
1913 }
1914 
1915 inline
1917 {
1918  return ((m_set_State[1] & 0xc) != 0);
1919 }
1920 
1921 inline
1923 {
1924  return IsSetFontstyle();
1925 }
1926 
1927 inline
1929 {
1930  m_Fontstyle = (EAttlist_fontstyle)(0);
1931  m_set_State[1] &= ~0xc;
1932 }
1933 
1934 inline
1936 {
1937  if (!CanGetFontstyle()) {
1938  ThrowUnassigned(17);
1939  }
1940  return m_Fontstyle;
1941 }
1942 
1943 inline
1945 {
1946  m_Fontstyle = value;
1947  m_set_State[1] |= 0xc;
1948 }
1949 
1950 inline
1952 {
1953 #ifdef _DEBUG
1954  if (!IsSetFontstyle()) {
1955  memset(&m_Fontstyle,UnassignedByte(),sizeof(m_Fontstyle));
1956  }
1957 #endif
1958  m_set_State[1] |= 0x4;
1959  return m_Fontstyle;
1960 }
1961 
1962 inline
1964 {
1965  return ((m_set_State[1] & 0x30) != 0);
1966 }
1967 
1968 inline
1970 {
1971  return IsSetFontsize();
1972 }
1973 
1974 inline
1976 {
1977  if (!CanGetFontsize()) {
1978  ThrowUnassigned(18);
1979  }
1980  return m_Fontsize;
1981 }
1982 
1983 inline
1985 {
1986  m_Fontsize = value;
1987  m_set_State[1] |= 0x30;
1988 }
1989 
1990 inline
1992 {
1993  m_Fontsize = std::forward<CMglyph_Base::C_Attlist::TFontsize>(value);
1994  m_set_State[1] |= 0x30;
1995 }
1996 
1997 inline
1999 {
2000 #ifdef _DEBUG
2001  if (!IsSetFontsize()) {
2002  m_Fontsize = UnassignedString();
2003  }
2004 #endif
2005  m_set_State[1] |= 0x10;
2006  return m_Fontsize;
2007 }
2008 
2009 inline
2011 {
2012  return ((m_set_State[1] & 0xc0) != 0);
2013 }
2014 
2015 inline
2017 {
2018  return IsSetColor();
2019 }
2020 
2021 inline
2023 {
2024  if (!CanGetColor()) {
2025  ThrowUnassigned(19);
2026  }
2027  return m_Color;
2028 }
2029 
2030 inline
2032 {
2033  m_Color = value;
2034  m_set_State[1] |= 0xc0;
2035 }
2036 
2037 inline
2039 {
2040  m_Color = std::forward<CMglyph_Base::C_Attlist::TColor>(value);
2041  m_set_State[1] |= 0xc0;
2042 }
2043 
2044 inline
2046 {
2047 #ifdef _DEBUG
2048  if (!IsSetColor()) {
2049  m_Color = UnassignedString();
2050  }
2051 #endif
2052  m_set_State[1] |= 0x40;
2053  return m_Color;
2054 }
2055 
2056 inline
2058 {
2059  return ((m_set_State[1] & 0x300) != 0);
2060 }
2061 
2062 inline
2064 {
2065  return IsSetBackground();
2066 }
2067 
2068 inline
2070 {
2071  if (!CanGetBackground()) {
2072  ThrowUnassigned(20);
2073  }
2074  return m_Background;
2075 }
2076 
2077 inline
2079 {
2080  m_Background = value;
2081  m_set_State[1] |= 0x300;
2082 }
2083 
2084 inline
2086 {
2087  m_Background = std::forward<CMglyph_Base::C_Attlist::TBackground>(value);
2088  m_set_State[1] |= 0x300;
2089 }
2090 
2091 inline
2093 {
2094 #ifdef _DEBUG
2095  if (!IsSetBackground()) {
2096  m_Background = UnassignedString();
2097  }
2098 #endif
2099  m_set_State[1] |= 0x100;
2100  return m_Background;
2101 }
2102 
2103 inline
2105 {
2106  return m_Attlist.NotEmpty();
2107 }
2108 
2109 inline
2111 {
2112  return true;
2113 }
2114 
2115 inline
2117 {
2118  if ( !m_Attlist ) {
2119  const_cast<CMglyph_Base*>(this)->ResetAttlist();
2120  }
2121  return (*m_Attlist);
2122 }
2123 
2124 inline
2126 {
2127  if ( !m_Attlist ) {
2128  ResetAttlist();
2129  }
2130  SetMglyph();
2131  return (*m_Attlist);
2132 }
2133 
2134 inline
2136 {
2137  return ((m_set_State[0] & 0xc) != 0);
2138 }
2139 
2140 inline
2142 {
2143  return false;
2144 }
2145 
2146 inline
2148 {
2149  m_set_State[0] &= ~0xc;
2150 }
2151 
2152 inline
2154 {
2155  m_set_State[0] |= 0xc;
2156 }
2157 
2158 ///////////////////////////////////////////////////////////
2159 ////////////////// end of inline methods //////////////////
2160 ///////////////////////////////////////////////////////////
2161 
2162 
2163 
2164 
2165 
2166 END_objects_SCOPE // namespace ncbi::objects::
2167 
2169 
2170 
2171 #endif // OBJTOOLS_EUTILS_EFETCH_MGLYPH_BASE_HPP
C_Attlist –.
Definition: Mglyph_.hpp:90
CMglyph_Base –.
Definition: Mglyph_.hpp:73
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
void ResetMglyph(void)
Reset Mglyph data member.
Definition: Mglyph_.hpp:2147
TMathvariant GetMathvariant(void) const
Get the Mathvariant member data.
Definition: Mglyph_.hpp:1747
bool IsSetXref(void) const
Check if a value has been assigned to Xref data member.
Definition: Mglyph_.hpp:1164
void ResetId(void)
Reset Id data member.
Definition: Mglyph_.cpp:93
TMathvariant & SetMathvariant(void)
Assign a value to Mathvariant data member.
Definition: Mglyph_.hpp:1763
void ResetFontstyle(void)
Reset Fontstyle data member.
Definition: Mglyph_.hpp:1928
bool IsSetFontstyle(void) const
Check if a value has been assigned to Fontstyle data member.
Definition: Mglyph_.hpp:1916
const THref & GetHref(void) const
Get the Href member data.
Definition: Mglyph_.hpp:1317
const TMathbackground & GetMathbackground(void) const
Get the Mathbackground member data.
Definition: Mglyph_.hpp:1411
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
Definition: Mglyph_.hpp:1031
void ResetAttlist(void)
Reset Attlist data member.
Definition: Mglyph_.cpp:270
const TMathcolor & GetMathcolor(void) const
Get the Mathcolor member data.
Definition: Mglyph_.hpp:1364
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
Definition: Mglyph_.hpp:2104
TFontweight & SetFontweight(void)
Assign a value to Fontweight data member.
Definition: Mglyph_.hpp:1904
const TBackground & GetBackground(void) const
Get the Background member data.
Definition: Mglyph_.hpp:2069
bool CanGetFontfamily(void) const
Check if it is safe to call GetFontfamily method.
Definition: Mglyph_.hpp:1828
void ResetMathcolor(void)
Reset Mathcolor data member.
Definition: Mglyph_.cpp:123
void ResetFontfamily(void)
Reset Fontfamily data member.
Definition: Mglyph_.cpp:177
void ResetIndex(void)
Reset Index data member.
Definition: Mglyph_.cpp:165
bool CanGetFontstyle(void) const
Check if it is safe to call GetFontstyle method.
Definition: Mglyph_.hpp:1922
void ResetColor(void)
Reset Color data member.
Definition: Mglyph_.cpp:189
EAttlist_fontweight TFontweight
Definition: Mglyph_.hpp:158
const TValign & GetValign(void) const
Get the Valign member data.
Definition: Mglyph_.hpp:1599
bool CanGetAlt(void) const
Check if it is safe to call GetAlt method.
Definition: Mglyph_.hpp:1640
void ResetAlt(void)
Reset Alt data member.
Definition: Mglyph_.cpp:159
CRef< TAttlist > m_Attlist
Definition: Mglyph_.hpp:1104
TAlt & SetAlt(void)
Assign a value to Alt data member.
Definition: Mglyph_.hpp:1669
void ResetStyle(void)
Reset Style data member.
Definition: Mglyph_.cpp:111
TIndex & SetIndex(void)
Assign a value to Index data member.
Definition: Mglyph_.hpp:1716
TWidth & SetWidth(void)
Assign a value to Width data member.
Definition: Mglyph_.hpp:1528
TValign & SetValign(void)
Assign a value to Valign data member.
Definition: Mglyph_.hpp:1622
bool IsSetStyle(void) const
Check if a value has been assigned to Style data member.
Definition: Mglyph_.hpp:1258
TId & SetId(void)
Assign a value to Id data member.
Definition: Mglyph_.hpp:1152
bool IsSetSrc(void) const
Check if a value has been assigned to Src data member.
Definition: Mglyph_.hpp:1446
bool IsSetHeight(void) const
Check if a value has been assigned to Height data member.
Definition: Mglyph_.hpp:1540
const TIndex & GetIndex(void) const
Get the Index member data.
Definition: Mglyph_.hpp:1693
EAttlist_mathvariant TMathvariant
Definition: Mglyph_.hpp:155
bool CanGetIndex(void) const
Check if it is safe to call GetIndex method.
Definition: Mglyph_.hpp:1687
void ResetMathsize(void)
Reset Mathsize data member.
Definition: Mglyph_.cpp:171
bool IsSetIndex(void) const
Check if a value has been assigned to Index data member.
Definition: Mglyph_.hpp:1681
const TClass & GetClass(void) const
Get the Class member data.
Definition: Mglyph_.hpp:1223
bool CanGetClass(void) const
Check if it is safe to call GetClass method.
Definition: Mglyph_.hpp:1217
void ResetClass(void)
Reset Class data member.
Definition: Mglyph_.cpp:105
virtual ~CMglyph_Base(void)
Definition: Mglyph_.cpp:313
bool IsSetMathcolor(void) const
Check if a value has been assigned to Mathcolor data member.
Definition: Mglyph_.hpp:1352
C_Attlist & operator=(const C_Attlist &)
bool CanGetId(void) const
Check if it is safe to call GetId method.
Definition: Mglyph_.hpp:1123
THeight & SetHeight(void)
Assign a value to Height data member.
Definition: Mglyph_.hpp:1575
void SetMglyph(void)
Set NULL data member (assign 'NULL' value to Mglyph data member).
Definition: Mglyph_.hpp:2153
void ResetHref(void)
Reset Href data member.
Definition: Mglyph_.cpp:117
TMathsize & SetMathsize(void)
Assign a value to Mathsize data member.
Definition: Mglyph_.hpp:1810
bool IsSetFontsize(void) const
Check if a value has been assigned to Fontsize data member.
Definition: Mglyph_.hpp:1963
void ResetValign(void)
Reset Valign data member.
Definition: Mglyph_.cpp:153
void ResetFontsize(void)
Reset Fontsize data member.
Definition: Mglyph_.cpp:183
bool CanGetMathvariant(void) const
Check if it is safe to call GetMathvariant method.
Definition: Mglyph_.hpp:1734
CMglyph_Base(const CMglyph_Base &)
bool IsSetFontweight(void) const
Check if a value has been assigned to Fontweight data member.
Definition: Mglyph_.hpp:1869
CMglyph_Base & operator=(const CMglyph_Base &)
EAttlist_fontstyle m_Fontstyle
Definition: Mglyph_.hpp:1017
bool IsSetAlt(void) const
Check if a value has been assigned to Alt data member.
Definition: Mglyph_.hpp:1634
TMathcolor & SetMathcolor(void)
Assign a value to Mathcolor data member.
Definition: Mglyph_.hpp:1387
bool IsSetClass(void) const
Check if a value has been assigned to Class data member.
Definition: Mglyph_.hpp:1211
C_Attlist TAttlist
Definition: Mglyph_.hpp:1023
CSerialObject Tparent
Definition: Mglyph_.hpp:91
bool CanGetHref(void) const
Check if it is safe to call GetHref method.
Definition: Mglyph_.hpp:1311
bool CanGetXref(void) const
Check if it is safe to call GetXref method.
Definition: Mglyph_.hpp:1170
CMglyph_Base(void)
Definition: Mglyph_.cpp:304
TBackground & SetBackground(void)
Assign a value to Background data member.
Definition: Mglyph_.hpp:2092
const TAlt & GetAlt(void) const
Get the Alt member data.
Definition: Mglyph_.hpp:1646
Tparent::CMemberIndex< E_memberIndex, 22 > TmemberIndex
Definition: Mglyph_.hpp:189
const TColor & GetColor(void) const
Get the Color member data.
Definition: Mglyph_.hpp:2022
const TFontfamily & GetFontfamily(void) const
Get the Fontfamily member data.
Definition: Mglyph_.hpp:1834
bool CanGetSrc(void) const
Check if it is safe to call GetSrc method.
Definition: Mglyph_.hpp:1452
EAttlist_mathvariant m_Mathvariant
Definition: Mglyph_.hpp:1013
bool CanGetFontweight(void) const
Check if it is safe to call GetFontweight method.
Definition: Mglyph_.hpp:1875
bool IsSetMglyph(void) const
Check if a value has been assigned to Mglyph data member.
Definition: Mglyph_.hpp:2135
const TWidth & GetWidth(void) const
Get the Width member data.
Definition: Mglyph_.hpp:1505
TXref & SetXref(void)
Assign a value to Xref data member.
Definition: Mglyph_.hpp:1199
const TFontsize & GetFontsize(void) const
Get the Fontsize member data.
Definition: Mglyph_.hpp:1975
void ResetSrc(void)
Reset Src data member.
Definition: Mglyph_.cpp:135
const THeight & GetHeight(void) const
Get the Height member data.
Definition: Mglyph_.hpp:1552
const TStyle & GetStyle(void) const
Get the Style member data.
Definition: Mglyph_.hpp:1270
void ResetMathvariant(void)
Reset Mathvariant data member.
Definition: Mglyph_.hpp:1740
TSrc & SetSrc(void)
Assign a value to Src data member.
Definition: Mglyph_.hpp:1481
Uint4 m_set_State[1]
Definition: Mglyph_.hpp:1103
TStyle & SetStyle(void)
Assign a value to Style data member.
Definition: Mglyph_.hpp:1293
bool IsSetColor(void) const
Check if a value has been assigned to Color data member.
Definition: Mglyph_.hpp:2010
const TSrc & GetSrc(void) const
Get the Src member data.
Definition: Mglyph_.hpp:1458
bool IsSetHref(void) const
Check if a value has been assigned to Href data member.
Definition: Mglyph_.hpp:1305
C_Attlist(const C_Attlist &)
bool IsSetMathsize(void) const
Check if a value has been assigned to Mathsize data member.
Definition: Mglyph_.hpp:1775
TFontweight GetFontweight(void) const
Get the Fontweight member data.
Definition: Mglyph_.hpp:1888
THref & SetHref(void)
Assign a value to Href data member.
Definition: Mglyph_.hpp:1340
CSerialObject Tparent
Definition: Mglyph_.hpp:74
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
Definition: Mglyph_.hpp:2110
bool IsSetValign(void) const
Check if a value has been assigned to Valign data member.
Definition: Mglyph_.hpp:1587
EAttlist_fontstyle TFontstyle
Definition: Mglyph_.hpp:159
DECLARE_INTERNAL_TYPE_INFO()
void ResetFontweight(void)
Reset Fontweight data member.
Definition: Mglyph_.hpp:1881
void ResetWidth(void)
Reset Width data member.
Definition: Mglyph_.cpp:141
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
Definition: Mglyph_.hpp:2116
bool CanGetBackground(void) const
Check if it is safe to call GetBackground method.
Definition: Mglyph_.hpp:2063
bool CanGetWidth(void) const
Check if it is safe to call GetWidth method.
Definition: Mglyph_.hpp:1499
bool IsSetId(void) const
Check if a value has been assigned to Id data member.
Definition: Mglyph_.hpp:1117
void ResetBackground(void)
Reset Background data member.
Definition: Mglyph_.cpp:195
TMathbackground & SetMathbackground(void)
Assign a value to Mathbackground data member.
Definition: Mglyph_.hpp:1434
TClass & SetClass(void)
Assign a value to Class data member.
Definition: Mglyph_.hpp:1246
virtual void Reset(void)
Reset the whole object.
Definition: Mglyph_.cpp:285
bool CanGetValign(void) const
Check if it is safe to call GetValign method.
Definition: Mglyph_.hpp:1593
bool CanGetMathsize(void) const
Check if it is safe to call GetMathsize method.
Definition: Mglyph_.hpp:1781
bool CanGetColor(void) const
Check if it is safe to call GetColor method.
Definition: Mglyph_.hpp:2016
bool CanGetHeight(void) const
Check if it is safe to call GetHeight method.
Definition: Mglyph_.hpp:1546
TColor & SetColor(void)
Assign a value to Color data member.
Definition: Mglyph_.hpp:2045
const TMathsize & GetMathsize(void) const
Get the Mathsize member data.
Definition: Mglyph_.hpp:1787
TFontstyle GetFontstyle(void) const
Get the Fontstyle member data.
Definition: Mglyph_.hpp:1935
bool IsSetWidth(void) const
Check if a value has been assigned to Width data member.
Definition: Mglyph_.hpp:1493
bool CanGetStyle(void) const
Check if it is safe to call GetStyle method.
Definition: Mglyph_.hpp:1264
EAttlist_fontweight m_Fontweight
Definition: Mglyph_.hpp:1016
bool CanGetMathcolor(void) const
Check if it is safe to call GetMathcolor method.
Definition: Mglyph_.hpp:1358
void ResetHeight(void)
Reset Height data member.
Definition: Mglyph_.cpp:147
bool IsSetMathvariant(void) const
Check if a value has been assigned to Mathvariant data member.
Definition: Mglyph_.hpp:1728
const TId & GetId(void) const
Get the Id member data.
Definition: Mglyph_.hpp:1129
bool CanGetMathbackground(void) const
Check if it is safe to call GetMathbackground method.
Definition: Mglyph_.hpp:1405
bool CanGetFontsize(void) const
Check if it is safe to call GetFontsize method.
Definition: Mglyph_.hpp:1969
TFontfamily & SetFontfamily(void)
Assign a value to Fontfamily data member.
Definition: Mglyph_.hpp:1857
TFontsize & SetFontsize(void)
Assign a value to Fontsize data member.
Definition: Mglyph_.hpp:1998
void Reset(void)
Reset the whole object.
Definition: Mglyph_.cpp:201
bool IsSetBackground(void) const
Check if a value has been assigned to Background data member.
Definition: Mglyph_.hpp:2057
const TXref & GetXref(void) const
Get the Xref member data.
Definition: Mglyph_.hpp:1176
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
Definition: Mglyph_.hpp:2125
void ResetMathbackground(void)
Reset Mathbackground data member.
Definition: Mglyph_.cpp:129
bool IsSetMathbackground(void) const
Check if a value has been assigned to Mathbackground data member.
Definition: Mglyph_.hpp:1399
void ResetXref(void)
Reset Xref data member.
Definition: Mglyph_.cpp:99
bool IsSetFontfamily(void) const
Check if a value has been assigned to Fontfamily data member.
Definition: Mglyph_.hpp:1822
TFontstyle & SetFontstyle(void)
Assign a value to Fontstyle data member.
Definition: Mglyph_.hpp:1951
bool CanGetMglyph(void) const
Check if value of Mglyph member is getatable.
Definition: Mglyph_.hpp:2141
@ eAttlist_mathvariant_sans_serif_italic
Definition: Mglyph_.hpp:113
@ eAttlist_mathvariant_sans_serif_bold_italic
Definition: Mglyph_.hpp:114
Modified on Sat Dec 09 04:46:07 2023 by modify_doxy.py rev. 669887