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