NCBI C++ ToolKit
Mlongdiv_.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
45 
46 BEGIN_objects_SCOPE // namespace ncbi::objects::
47 
48 
49 // generated classes
50 
52 {
53  m_Id.erase();
54  m_set_State[0] &= ~0x3;
55 }
56 
58 {
59  m_Xref.erase();
60  m_set_State[0] &= ~0xc;
61 }
62 
64 {
65  m_Class.erase();
66  m_set_State[0] &= ~0x30;
67 }
68 
70 {
71  m_Style.erase();
72  m_set_State[0] &= ~0xc0;
73 }
74 
76 {
77  m_Href.erase();
78  m_set_State[0] &= ~0x300;
79 }
80 
82 {
83  m_Mathcolor.erase();
84  m_set_State[0] &= ~0xc00;
85 }
86 
88 {
89  m_Mathbackground.erase();
90  m_set_State[0] &= ~0x3000;
91 }
92 
94 {
95  m_Position.erase();
96  m_set_State[0] &= ~0xc000;
97 }
98 
100 {
101  m_Shift.erase();
102  m_set_State[0] &= ~0x30000;
103 }
104 
106 {
107  m_Longdivstyle.erase();
108  m_set_State[0] &= ~0xc0000;
109 }
110 
112 {
113  ResetId();
114  ResetXref();
115  ResetClass();
116  ResetStyle();
117  ResetHref();
118  ResetMathcolor();
119  ResetMathbackground();
120  ResetPosition();
121  ResetShift();
122  ResetLongdivstyle();
123 }
124 
126 {
127  SET_INTERNAL_NAME("mlongdiv", "Attlist");
128  SET_CLASS_MODULE("pubmed_mathml3");
129  ADD_NAMED_STD_MEMBER("id", m_Id)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
130  ADD_NAMED_STD_MEMBER("xref", m_Xref)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
131  ADD_NAMED_STD_MEMBER("class", m_Class)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
132  ADD_NAMED_STD_MEMBER("style", m_Style)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
133  ADD_NAMED_STD_MEMBER("href", m_Href)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
134  ADD_NAMED_STD_MEMBER("mathcolor", m_Mathcolor)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
135  ADD_NAMED_STD_MEMBER("mathbackground", m_Mathbackground)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
136  ADD_NAMED_STD_MEMBER("position", m_Position)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
137  ADD_NAMED_STD_MEMBER("shift", m_Shift)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
138  ADD_NAMED_STD_MEMBER("longdivstyle", m_Longdivstyle)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
139  info->SetRandomOrder(true);
140  info->CodeVersion(22400);
141  info->DataSpec(ncbi::EDataSpec::eXSD);
142 }
144 
145 // constructor
147 {
148  memset(m_set_State,0,sizeof(m_set_State));
149 }
150 
151 // destructor
153 {
154 }
155 
156 
158 {
159  m_MstackExpression.clear();
160  m_set_State[0] &= ~0x3;
161 }
162 
164 {
166 }
167 
169 {
170  SET_INTERNAL_NAME("mlongdiv", "MstackExpression");
171  SET_CLASS_MODULE("pubmed_mathml3");
172  ADD_NAMED_MEMBER("MstackExpression", m_MstackExpression, STL_list, (STL_CRef, (CLASS, (CMstackExpression))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetNotag()->SetNsQualified(false);
173  info->RandomOrder();
174  info->CodeVersion(22400);
175  info->DataSpec(ncbi::EDataSpec::eXSD);
176 }
178 
179 // constructor
181 {
182  memset(m_set_State,0,sizeof(m_set_State));
183 }
184 
185 // destructor
187 {
188 }
189 
190 
192 {
193  if ( !m_Attlist ) {
194  m_Attlist.Reset(new TAttlist());
195  return;
196  }
197  (*m_Attlist).Reset();
198 }
199 
201 {
202  m_Attlist.Reset(&value);
203 }
204 
206 {
207  if ( !m_MstackExpression ) {
209  return;
210  }
211  (*m_MstackExpression).Reset();
212 }
213 
215 {
216  m_MstackExpression.Reset(&value);
217 }
218 
220 {
221  ResetAttlist();
223 }
224 
226 {
227  SET_CLASS_MODULE("pubmed_mathml3");
228  SET_NAMESPACE("http://www.w3.org/1998/Math/MathML")->SetNsQualified(true);
229  ADD_NAMED_REF_MEMBER("Attlist", m_Attlist, C_Attlist)->SetAttlist();
230  ADD_NAMED_REF_MEMBER("MstackExpression", m_MstackExpression, C_MstackExpression)->SetNotag();
231  info->RandomOrder();
232  info->CodeVersion(22400);
233  info->DataSpec(ncbi::EDataSpec::eXSD);
234 }
236 
237 // constructor
239 {
240  memset(m_set_State,0,sizeof(m_set_State));
241  if ( !IsAllocatedInPool() ) {
242  ResetAttlist();
244  }
245 }
246 
247 // destructor
249 {
250 }
251 
252 
253 
254 END_objects_SCOPE // namespace ncbi::objects::
255 
257 
User-defined methods of the data storage class.
BEGIN_NAMED_CLASS_INFO("", CMlongdiv_Base::C_Attlist)
Definition: Mlongdiv_.cpp:125
BEGIN_NAMED_BASE_CLASS_INFO("mlongdiv", CMlongdiv)
Definition: Mlongdiv_.cpp:225
User-defined methods of the data storage class.
C_MstackExpression –.
Definition: Mlongdiv_.hpp:545
CMlongdiv –.
Definition: Mlongdiv.hpp:66
CMstackExpression –.
#define MEMBER_PTR(MemberName)
Definition: serialimpl.hpp:284
#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 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 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
void ResetClass(void)
Reset Class data member.
Definition: Mlongdiv_.cpp:63
CMlongdiv_Base(void)
Definition: Mlongdiv_.cpp:238
void ResetShift(void)
Reset Shift data member.
Definition: Mlongdiv_.cpp:99
void ResetLongdivstyle(void)
Reset Longdivstyle data member.
Definition: Mlongdiv_.cpp:105
virtual void Reset(void)
Reset the whole object.
Definition: Mlongdiv_.cpp:219
Uint4 m_set_State[1]
Definition: Mlongdiv_.hpp:713
void ResetMstackExpression(void)
Reset MstackExpression data member.
Definition: Mlongdiv_.cpp:157
void ResetMstackExpression(void)
Reset MstackExpression data member.
Definition: Mlongdiv_.cpp:205
void Reset(void)
Reset the whole object.
Definition: Mlongdiv_.cpp:163
void ResetStyle(void)
Reset Style data member.
Definition: Mlongdiv_.cpp:69
void ResetXref(void)
Reset Xref data member.
Definition: Mlongdiv_.cpp:57
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
Definition: Mlongdiv_.hpp:1244
void ResetAttlist(void)
Reset Attlist data member.
Definition: Mlongdiv_.cpp:191
C_MstackExpression TMstackExpression
Definition: Mlongdiv_.hpp:616
void ResetId(void)
Reset Id data member.
Definition: Mlongdiv_.cpp:51
void Reset(void)
Reset the whole object.
Definition: Mlongdiv_.cpp:111
virtual ~CMlongdiv_Base(void)
Definition: Mlongdiv_.cpp:248
void ResetMathbackground(void)
Reset Mathbackground data member.
Definition: Mlongdiv_.cpp:87
C_Attlist TAttlist
Definition: Mlongdiv_.hpp:615
CRef< TAttlist > m_Attlist
Definition: Mlongdiv_.hpp:714
TMstackExpression & SetMstackExpression(void)
Assign a value to MstackExpression data member.
Definition: Mlongdiv_.hpp:1274
void ResetHref(void)
Reset Href data member.
Definition: Mlongdiv_.cpp:75
void ResetPosition(void)
Reset Position data member.
Definition: Mlongdiv_.cpp:93
void ResetMathcolor(void)
Reset Mathcolor data member.
Definition: Mlongdiv_.cpp:81
CRef< TMstackExpression > m_MstackExpression
Definition: Mlongdiv_.hpp:715
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:42 2024 by modify_doxy.py rev. 669887