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