NCBI C++ ToolKit
Mfrac_.cpp
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  * File Description:
27  * This code was generated by application DATATOOL
28  * using the following specifications:
29  * 'pubmed_mathml3.xsd'.
30  *
31  * ATTENTION:
32  * Don't edit or commit this file into CVS as this file will
33  * be overridden (by DATATOOL) without warning!
34  * ===========================================================================
35  */
36 
37 // standard includes
38 #include <ncbi_pch.hpp>
39 #include <serial/serialimpl.hpp>
40 
41 // generated includes
44 
45 BEGIN_objects_SCOPE // namespace ncbi::objects::
46 
47 
48 // generated classes
49 
50 BEGIN_NAMED_ENUM_IN_INFO("", CMfrac_Base::C_Attlist::, EAttlist_numalign, false)
51 {
52  SET_ENUM_INTERNAL_NAME("mfrac.Attlist", "numalign");
53  SET_ENUM_MODULE("pubmed_mathml3");
54  ADD_ENUM_VALUE("left", eAttlist_numalign_left);
55  ADD_ENUM_VALUE("center", eAttlist_numalign_center);
56  ADD_ENUM_VALUE("right", eAttlist_numalign_right);
57 }
59 
60 BEGIN_NAMED_ENUM_IN_INFO("", CMfrac_Base::C_Attlist::, EAttlist_denomalign, false)
61 {
62  SET_ENUM_INTERNAL_NAME("mfrac.Attlist", "denomalign");
63  SET_ENUM_MODULE("pubmed_mathml3");
64  ADD_ENUM_VALUE("left", eAttlist_denomalign_left);
65  ADD_ENUM_VALUE("center", eAttlist_denomalign_center);
66  ADD_ENUM_VALUE("right", eAttlist_denomalign_right);
67 }
69 
70 BEGIN_NAMED_ENUM_IN_INFO("", CMfrac_Base::C_Attlist::, EAttlist_bevelled, false)
71 {
72  SET_ENUM_INTERNAL_NAME("mfrac.Attlist", "bevelled");
73  SET_ENUM_MODULE("pubmed_mathml3");
74  ADD_ENUM_VALUE("true", eAttlist_bevelled_true);
75  ADD_ENUM_VALUE("false", eAttlist_bevelled_false);
76 }
78 
80 {
81  m_Id.erase();
82  m_set_State[0] &= ~0x3;
83 }
84 
86 {
87  m_Xref.erase();
88  m_set_State[0] &= ~0xc;
89 }
90 
92 {
93  m_Class.erase();
94  m_set_State[0] &= ~0x30;
95 }
96 
98 {
99  m_Style.erase();
100  m_set_State[0] &= ~0xc0;
101 }
102 
104 {
105  m_Href.erase();
106  m_set_State[0] &= ~0x300;
107 }
108 
110 {
111  m_Mathcolor.erase();
112  m_set_State[0] &= ~0xc00;
113 }
114 
116 {
117  m_Mathbackground.erase();
118  m_set_State[0] &= ~0x3000;
119 }
120 
122 {
123  m_Linethickness.erase();
124  m_set_State[0] &= ~0xc000;
125 }
126 
128 {
129  ResetId();
130  ResetXref();
131  ResetClass();
132  ResetStyle();
133  ResetHref();
134  ResetMathcolor();
135  ResetMathbackground();
136  ResetLinethickness();
137  ResetNumalign();
138  ResetDenomalign();
139  ResetBevelled();
140 }
141 
143 {
144  SET_INTERNAL_NAME("mfrac", "Attlist");
145  SET_CLASS_MODULE("pubmed_mathml3");
146  ADD_NAMED_STD_MEMBER("id", m_Id)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
147  ADD_NAMED_STD_MEMBER("xref", m_Xref)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
148  ADD_NAMED_STD_MEMBER("class", m_Class)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
149  ADD_NAMED_STD_MEMBER("style", m_Style)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
150  ADD_NAMED_STD_MEMBER("href", m_Href)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
151  ADD_NAMED_STD_MEMBER("mathcolor", m_Mathcolor)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
152  ADD_NAMED_STD_MEMBER("mathbackground", m_Mathbackground)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
153  ADD_NAMED_STD_MEMBER("linethickness", m_Linethickness)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
154  ADD_NAMED_ENUM_MEMBER("numalign", m_Numalign, EAttlist_numalign)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
155  ADD_NAMED_ENUM_MEMBER("denomalign", m_Denomalign, EAttlist_denomalign)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
156  ADD_NAMED_ENUM_MEMBER("bevelled", m_Bevelled, EAttlist_bevelled)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
157  info->SetRandomOrder(true);
158  info->CodeVersion(22400);
159  info->DataSpec(ncbi::EDataSpec::eXSD);
160 }
162 
163 // constructor
165  : m_Numalign((EAttlist_numalign)(0)), m_Denomalign((EAttlist_denomalign)(0)), m_Bevelled((EAttlist_bevelled)(0))
166 {
167  memset(m_set_State,0,sizeof(m_set_State));
168 }
169 
170 // destructor
172 {
173 }
174 
175 
177 {
180  info->CodeVersion(22400);
181  info->DataSpec(ncbi::EDataSpec::eXSD);
182 }
184 
185 
187 {
188  if ( !m_Attlist ) {
189  m_Attlist.Reset(new TAttlist());
190  return;
191  }
192  (*m_Attlist).Reset();
193 }
194 
196 {
197  m_Attlist.Reset(&value);
198 }
199 
201 {
202  m_MathExpression.clear();
203  m_set_State[0] &= ~0xc;
204 }
205 
207 {
208  ResetAttlist();
210 }
211 
213 {
214  SET_CLASS_MODULE("pubmed_mathml3");
215  SET_NAMESPACE("http://www.w3.org/1998/Math/MathML")->SetNsQualified(true);
216  ADD_NAMED_REF_MEMBER("Attlist", m_Attlist, C_Attlist)->SetAttlist();
217  ADD_NAMED_MEMBER("MathExpression", m_MathExpression, STL_list, (STL_CRef, (CLASS, (C_E_MathExpression))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetNotag();
218  info->RandomOrder();
219  info->CodeVersion(22400);
220  info->DataSpec(ncbi::EDataSpec::eXSD);
221 }
223 
224 // constructor
226 {
227  memset(m_set_State,0,sizeof(m_set_State));
228  if ( !IsAllocatedInPool() ) {
229  ResetAttlist();
230  }
231 }
232 
233 // destructor
235 {
236 }
237 
238 
239 
240 END_objects_SCOPE // namespace ncbi::objects::
241 
243 
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("mfrac", CMfrac)
Definition: Mfrac_.cpp:212
SET_FULL_ALIAS
Definition: Mfrac_.cpp:177
BEGIN_NAMED_CLASS_INFO("", CMfrac_Base::C_Attlist)
Definition: Mfrac_.cpp:142
BEGIN_NAMED_ENUM_IN_INFO("", CMfrac_Base::C_Attlist::, EAttlist_numalign, false)
Definition: Mfrac_.cpp:50
END_ENUM_INFO
Definition: aln_errors.cpp:58
CMathExpression –.
C_Attlist –.
Definition: Mfrac_.hpp:92
C_E_MathExpression –.
Definition: Mfrac_.hpp:606
CMfrac –.
Definition: Mfrac.hpp:66
#define MEMBER_PTR(MemberName)
Definition: serialimpl.hpp:284
#define SET_ENUM_INTERNAL_NAME(OwnerName, MemberName)
Definition: serialimpl.hpp:559
#define SET_CLASS_ALIAS_DATA_PTR
Definition: serialimpl.hpp:628
#define ADD_NAMED_MEMBER(MemberAlias, MemberName, TypeMacro, TypeMacroArgs)
Definition: serialimpl.hpp:342
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
Definition: serialimpl.hpp:357
#define BEGIN_NESTED_ALIAS_INFO(AliasName, ClassName, RefType, RefCode)
Definition: serialimpl.hpp:597
#define SET_ENUM_MODULE(ModuleName)
Definition: serialimpl.hpp:553
#define END_CLASS_INFO
Definition: serialimpl.hpp:456
#define ADD_NAMED_STD_MEMBER(MemberAlias, MemberName)
Definition: serialimpl.hpp:345
#define SET_CLASS_MODULE(ModuleName)
Definition: serialimpl.hpp:444
#define SET_NAMESPACE(name)
Definition: serialimpl.hpp:450
#define ADD_NAMED_ENUM_MEMBER(MemberAlias, MemberName, EnumName)
Definition: serialimpl.hpp:351
#define ADD_ENUM_VALUE(EnumValueName, EnumValueValue)
Definition: serialimpl.hpp:562
#define END_ALIAS_INFO
Definition: serialimpl.hpp:631
#define SET_INTERNAL_NAME(OwnerName, MemberName)
Definition: serialimpl.hpp:447
bool IsAllocatedInPool(void) const THROWS_NONE
Check if object is allocated in memory pool (not system heap)
Definition: ncbiobj.hpp:461
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
virtual void Reset(void)
Reset the whole object.
Definition: Mfrac_.cpp:206
void ResetClass(void)
Reset Class data member.
Definition: Mfrac_.cpp:91
Uint4 m_set_State[1]
Definition: Mfrac_.hpp:708
void ResetMathcolor(void)
Reset Mathcolor data member.
Definition: Mfrac_.cpp:109
void ResetId(void)
Reset Id data member.
Definition: Mfrac_.cpp:79
void ResetLinethickness(void)
Reset Linethickness data member.
Definition: Mfrac_.cpp:121
void ResetHref(void)
Reset Href data member.
Definition: Mfrac_.cpp:103
void Reset(void)
Reset the whole object.
Definition: Mfrac_.cpp:127
CRef< TAttlist > m_Attlist
Definition: Mfrac_.hpp:709
CMfrac_Base(void)
Definition: Mfrac_.cpp:225
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
Definition: Mfrac_.hpp:1266
void ResetAttlist(void)
Reset Attlist data member.
Definition: Mfrac_.cpp:186
virtual ~CMfrac_Base(void)
Definition: Mfrac_.cpp:234
void ResetMathExpression(void)
Reset MathExpression data member.
Definition: Mfrac_.cpp:200
void ResetStyle(void)
Reset Style data member.
Definition: Mfrac_.cpp:97
list< CRef< C_E_MathExpression > > m_MathExpression
Definition: Mfrac_.hpp:710
void ResetXref(void)
Reset Xref data member.
Definition: Mfrac_.cpp:85
C_Attlist TAttlist
Definition: Mfrac_.hpp:616
void ResetMathbackground(void)
Reset Mathbackground data member.
Definition: Mfrac_.cpp:115
static MDB_envinfo info
Definition: mdb_load.c:37
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Sun May 19 04:44:31 2024 by modify_doxy.py rev. 669887