NCBI C++ ToolKit
Mspace_.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("", CMspace_Base::C_Attlist::, EAttlist_mathvariant, false)
51 {
52  SET_ENUM_INTERNAL_NAME("mspace.Attlist", "mathvariant");
53  SET_ENUM_MODULE("pubmed_mathml3");
54  ADD_ENUM_VALUE("normal", eAttlist_mathvariant_normal);
55  ADD_ENUM_VALUE("bold", eAttlist_mathvariant_bold);
56  ADD_ENUM_VALUE("italic", eAttlist_mathvariant_italic);
57  ADD_ENUM_VALUE("bold-italic", eAttlist_mathvariant_bold_italic);
58  ADD_ENUM_VALUE("double-struck", eAttlist_mathvariant_double_struck);
59  ADD_ENUM_VALUE("bold-fraktur", eAttlist_mathvariant_bold_fraktur);
60  ADD_ENUM_VALUE("script", eAttlist_mathvariant_script);
61  ADD_ENUM_VALUE("bold-script", eAttlist_mathvariant_bold_script);
62  ADD_ENUM_VALUE("fraktur", eAttlist_mathvariant_fraktur);
63  ADD_ENUM_VALUE("sans-serif", eAttlist_mathvariant_sans_serif);
64  ADD_ENUM_VALUE("bold-sans-serif", eAttlist_mathvariant_bold_sans_serif);
65  ADD_ENUM_VALUE("sans-serif-italic", eAttlist_mathvariant_sans_serif_italic);
66  ADD_ENUM_VALUE("sans-serif-bold-italic", eAttlist_mathvariant_sans_serif_bold_italic);
67  ADD_ENUM_VALUE("monospace", eAttlist_mathvariant_monospace);
68  ADD_ENUM_VALUE("initial", eAttlist_mathvariant_initial);
69  ADD_ENUM_VALUE("tailed", eAttlist_mathvariant_tailed);
70  ADD_ENUM_VALUE("looped", eAttlist_mathvariant_looped);
71  ADD_ENUM_VALUE("stretched", eAttlist_mathvariant_stretched);
72 }
74 
76 {
77  SET_ENUM_INTERNAL_NAME("mspace.Attlist", "dir");
78  SET_ENUM_MODULE("pubmed_mathml3");
79  ADD_ENUM_VALUE("ltr", eAttlist_dir_ltr);
80  ADD_ENUM_VALUE("rtl", eAttlist_dir_rtl);
81 }
83 
84 BEGIN_NAMED_ENUM_IN_INFO("", CMspace_Base::C_Attlist::, EAttlist_fontweight, false)
85 {
86  SET_ENUM_INTERNAL_NAME("mspace.Attlist", "fontweight");
87  SET_ENUM_MODULE("pubmed_mathml3");
88  ADD_ENUM_VALUE("normal", eAttlist_fontweight_normal);
89  ADD_ENUM_VALUE("bold", eAttlist_fontweight_bold);
90 }
92 
93 BEGIN_NAMED_ENUM_IN_INFO("", CMspace_Base::C_Attlist::, EAttlist_fontstyle, false)
94 {
95  SET_ENUM_INTERNAL_NAME("mspace.Attlist", "fontstyle");
96  SET_ENUM_MODULE("pubmed_mathml3");
97  ADD_ENUM_VALUE("normal", eAttlist_fontstyle_normal);
98  ADD_ENUM_VALUE("italic", eAttlist_fontstyle_italic);
99 }
101 
102 BEGIN_NAMED_ENUM_IN_INFO("", CMspace_Base::C_Attlist::, EAttlist_linebreak, false)
103 {
104  SET_ENUM_INTERNAL_NAME("mspace.Attlist", "linebreak");
105  SET_ENUM_MODULE("pubmed_mathml3");
106  ADD_ENUM_VALUE("auto", eAttlist_linebreak_auto);
107  ADD_ENUM_VALUE("newline", eAttlist_linebreak_newline);
108  ADD_ENUM_VALUE("nobreak", eAttlist_linebreak_nobreak);
109  ADD_ENUM_VALUE("goodbreak", eAttlist_linebreak_goodbreak);
110  ADD_ENUM_VALUE("badbreak", eAttlist_linebreak_badbreak);
111  ADD_ENUM_VALUE("indentingnewline", eAttlist_linebreak_indentingnewline);
112 }
114 
115 BEGIN_NAMED_ENUM_IN_INFO("", CMspace_Base::C_Attlist::, EAttlist_indentalign, false)
116 {
117  SET_ENUM_INTERNAL_NAME("mspace.Attlist", "indentalign");
118  SET_ENUM_MODULE("pubmed_mathml3");
119  ADD_ENUM_VALUE("left", eAttlist_indentalign_left);
120  ADD_ENUM_VALUE("center", eAttlist_indentalign_center);
121  ADD_ENUM_VALUE("right", eAttlist_indentalign_right);
122  ADD_ENUM_VALUE("auto", eAttlist_indentalign_auto);
123  ADD_ENUM_VALUE("id", eAttlist_indentalign_id);
124 }
126 
127 BEGIN_NAMED_ENUM_IN_INFO("", CMspace_Base::C_Attlist::, EAttlist_indentalignfirst, false)
128 {
129  SET_ENUM_INTERNAL_NAME("mspace.Attlist", "indentalignfirst");
130  SET_ENUM_MODULE("pubmed_mathml3");
131  ADD_ENUM_VALUE("left", eAttlist_indentalignfirst_left);
132  ADD_ENUM_VALUE("center", eAttlist_indentalignfirst_center);
133  ADD_ENUM_VALUE("right", eAttlist_indentalignfirst_right);
134  ADD_ENUM_VALUE("auto", eAttlist_indentalignfirst_auto);
135  ADD_ENUM_VALUE("id", eAttlist_indentalignfirst_id);
136  ADD_ENUM_VALUE("indentalign", eAttlist_indentalignfirst_indentalign);
137 }
139 
140 BEGIN_NAMED_ENUM_IN_INFO("", CMspace_Base::C_Attlist::, EAttlist_indentalignlast, false)
141 {
142  SET_ENUM_INTERNAL_NAME("mspace.Attlist", "indentalignlast");
143  SET_ENUM_MODULE("pubmed_mathml3");
144  ADD_ENUM_VALUE("left", eAttlist_indentalignlast_left);
145  ADD_ENUM_VALUE("center", eAttlist_indentalignlast_center);
146  ADD_ENUM_VALUE("right", eAttlist_indentalignlast_right);
147  ADD_ENUM_VALUE("auto", eAttlist_indentalignlast_auto);
148  ADD_ENUM_VALUE("id", eAttlist_indentalignlast_id);
149  ADD_ENUM_VALUE("indentalign", eAttlist_indentalignlast_indentalign);
150 }
152 
154 {
155  m_Id.erase();
156  m_set_State[0] &= ~0x3;
157 }
158 
160 {
161  m_Xref.erase();
162  m_set_State[0] &= ~0xc;
163 }
164 
166 {
167  m_Class.erase();
168  m_set_State[0] &= ~0x30;
169 }
170 
172 {
173  m_Style.erase();
174  m_set_State[0] &= ~0xc0;
175 }
176 
178 {
179  m_Href.erase();
180  m_set_State[0] &= ~0x300;
181 }
182 
184 {
185  m_Mathcolor.erase();
186  m_set_State[0] &= ~0xc00;
187 }
188 
190 {
191  m_Mathbackground.erase();
192  m_set_State[0] &= ~0x3000;
193 }
194 
196 {
197  m_Mathsize.erase();
198  m_set_State[0] &= ~0x30000;
199 }
200 
202 {
203  m_Fontfamily.erase();
204  m_set_State[0] &= ~0x300000;
205 }
206 
208 {
209  m_Fontsize.erase();
210  m_set_State[0] &= ~0xc000000;
211 }
212 
214 {
215  m_Color.erase();
216  m_set_State[0] &= ~0x30000000;
217 }
218 
220 {
221  m_Background.erase();
222  m_set_State[0] &= ~0xc0000000;
223 }
224 
226 {
227  m_Width.erase();
228  m_set_State[1] &= ~0x3;
229 }
230 
232 {
233  m_Height.erase();
234  m_set_State[1] &= ~0xc;
235 }
236 
238 {
239  m_Depth.erase();
240  m_set_State[1] &= ~0x30;
241 }
242 
244 {
245  m_Indentshift.erase();
246  m_set_State[1] &= ~0xc00;
247 }
248 
250 {
251  m_Indenttarget.erase();
252  m_set_State[1] &= ~0x3000;
253 }
254 
256 {
257  m_Indentshiftfirst.erase();
258  m_set_State[1] &= ~0x30000;
259 }
260 
262 {
263  m_Indentshiftlast.erase();
264  m_set_State[1] &= ~0x300000;
265 }
266 
268 {
269  ResetId();
270  ResetXref();
271  ResetClass();
272  ResetStyle();
273  ResetHref();
274  ResetMathcolor();
275  ResetMathbackground();
276  ResetMathvariant();
277  ResetMathsize();
278  ResetDir();
279  ResetFontfamily();
280  ResetFontweight();
281  ResetFontstyle();
282  ResetFontsize();
283  ResetColor();
284  ResetBackground();
285  ResetWidth();
286  ResetHeight();
287  ResetDepth();
288  ResetLinebreak();
289  ResetIndentalign();
290  ResetIndentshift();
291  ResetIndenttarget();
292  ResetIndentalignfirst();
293  ResetIndentshiftfirst();
294  ResetIndentalignlast();
295  ResetIndentshiftlast();
296 }
297 
299 {
300  SET_INTERNAL_NAME("mspace", "Attlist");
301  SET_CLASS_MODULE("pubmed_mathml3");
302  ADD_NAMED_STD_MEMBER("id", m_Id)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
303  ADD_NAMED_STD_MEMBER("xref", m_Xref)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
304  ADD_NAMED_STD_MEMBER("class", m_Class)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
305  ADD_NAMED_STD_MEMBER("style", m_Style)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
306  ADD_NAMED_STD_MEMBER("href", m_Href)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
307  ADD_NAMED_STD_MEMBER("mathcolor", m_Mathcolor)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
308  ADD_NAMED_STD_MEMBER("mathbackground", m_Mathbackground)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
309  ADD_NAMED_ENUM_MEMBER("mathvariant", m_Mathvariant, EAttlist_mathvariant)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
310  ADD_NAMED_STD_MEMBER("mathsize", m_Mathsize)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
311  ADD_NAMED_ENUM_MEMBER("dir", m_Dir, EAttlist_dir)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
312  ADD_NAMED_STD_MEMBER("fontfamily", m_Fontfamily)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
313  ADD_NAMED_ENUM_MEMBER("fontweight", m_Fontweight, EAttlist_fontweight)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
314  ADD_NAMED_ENUM_MEMBER("fontstyle", m_Fontstyle, EAttlist_fontstyle)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
315  ADD_NAMED_STD_MEMBER("fontsize", m_Fontsize)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
316  ADD_NAMED_STD_MEMBER("color", m_Color)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
317  ADD_NAMED_STD_MEMBER("background", m_Background)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
318  ADD_NAMED_STD_MEMBER("width", m_Width)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
319  ADD_NAMED_STD_MEMBER("height", m_Height)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
320  ADD_NAMED_STD_MEMBER("depth", m_Depth)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
321  ADD_NAMED_ENUM_MEMBER("linebreak", m_Linebreak, EAttlist_linebreak)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
322  ADD_NAMED_ENUM_MEMBER("indentalign", m_Indentalign, EAttlist_indentalign)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
323  ADD_NAMED_STD_MEMBER("indentshift", m_Indentshift)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
324  ADD_NAMED_STD_MEMBER("indenttarget", m_Indenttarget)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
325  ADD_NAMED_ENUM_MEMBER("indentalignfirst", m_Indentalignfirst, EAttlist_indentalignfirst)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
326  ADD_NAMED_STD_MEMBER("indentshiftfirst", m_Indentshiftfirst)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
327  ADD_NAMED_ENUM_MEMBER("indentalignlast", m_Indentalignlast, EAttlist_indentalignlast)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
328  ADD_NAMED_STD_MEMBER("indentshiftlast", m_Indentshiftlast)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
329  info->SetRandomOrder(true);
330  info->CodeVersion(22400);
331  info->DataSpec(ncbi::EDataSpec::eXSD);
332 }
334 
335 // constructor
337  : m_Mathvariant((EAttlist_mathvariant)(0)), m_Dir((EAttlist_dir)(0)), m_Fontweight((EAttlist_fontweight)(0)), m_Fontstyle((EAttlist_fontstyle)(0)), m_Linebreak((EAttlist_linebreak)(0)), m_Indentalign((EAttlist_indentalign)(0)), m_Indentalignfirst((EAttlist_indentalignfirst)(0)), m_Indentalignlast((EAttlist_indentalignlast)(0))
338 {
339  memset(m_set_State,0,sizeof(m_set_State));
340 }
341 
342 // destructor
344 {
345 }
346 
347 
349 {
350  if ( !m_Attlist ) {
351  m_Attlist.Reset(new TAttlist());
352  return;
353  }
354  (*m_Attlist).Reset();
355 }
356 
358 {
359  m_Attlist.Reset(&value);
360  SetMspace();
361 }
362 
364 {
365  ResetAttlist();
366  ResetMspace();
367 }
368 
370 {
371  SET_CLASS_MODULE("pubmed_mathml3");
372  SET_NAMESPACE("http://www.w3.org/1998/Math/MathML")->SetNsQualified(true);
373  ADD_NAMED_REF_MEMBER("Attlist", m_Attlist, C_Attlist)->SetAttlist();
374  ADD_NAMED_NULL_MEMBER("mspace", null, ())->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetNotag();
375  info->RandomOrder();
376  info->CodeVersion(22400);
377  info->DataSpec(ncbi::EDataSpec::eXSD);
378 }
380 
381 // constructor
383 {
384  memset(m_set_State,0,sizeof(m_set_State));
385  if ( !IsAllocatedInPool() ) {
386  ResetAttlist();
387  }
388 }
389 
390 // destructor
392 {
393 }
394 
395 
396 
397 END_objects_SCOPE // namespace ncbi::objects::
398 
400 
User-defined methods of the data storage class.
BEGIN_NAMED_CLASS_INFO("", CMspace_Base::C_Attlist)
Definition: Mspace_.cpp:298
BEGIN_NAMED_BASE_CLASS_INFO("mspace", CMspace)
Definition: Mspace_.cpp:369
BEGIN_NAMED_ENUM_IN_INFO("", CMspace_Base::C_Attlist::, EAttlist_mathvariant, false)
Definition: Mspace_.cpp:50
END_ENUM_INFO
Definition: aln_errors.cpp:58
C_Attlist –.
Definition: Mspace_.hpp:90
CMspace –.
Definition: Mspace.hpp:66
#define MEMBER_PTR(MemberName)
Definition: serialimpl.hpp:284
#define SET_ENUM_INTERNAL_NAME(OwnerName, MemberName)
Definition: serialimpl.hpp:559
#define ADD_NAMED_NULL_MEMBER(MemberAlias, TypeMacro, TypeMacroArgs)
Definition: serialimpl.hpp:339
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
Definition: serialimpl.hpp:357
#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 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 ResetMathbackground(void)
Reset Mathbackground data member.
Definition: Mspace_.cpp:189
void ResetXref(void)
Reset Xref data member.
Definition: Mspace_.cpp:159
void ResetAttlist(void)
Reset Attlist data member.
Definition: Mspace_.cpp:348
void Reset(void)
Reset the whole object.
Definition: Mspace_.cpp:267
void ResetDepth(void)
Reset Depth data member.
Definition: Mspace_.cpp:237
void SetMspace(void)
Set NULL data member (assign 'NULL' value to Mspace data member).
Definition: Mspace_.hpp:2731
void ResetMspace(void)
Reset Mspace data member.
Definition: Mspace_.hpp:2725
void ResetFontfamily(void)
Reset Fontfamily data member.
Definition: Mspace_.cpp:201
Uint4 m_set_State[1]
Definition: Mspace_.hpp:1399
void ResetWidth(void)
Reset Width data member.
Definition: Mspace_.cpp:225
void ResetId(void)
Reset Id data member.
Definition: Mspace_.cpp:153
void ResetHeight(void)
Reset Height data member.
Definition: Mspace_.cpp:231
void ResetBackground(void)
Reset Background data member.
Definition: Mspace_.cpp:219
C_Attlist TAttlist
Definition: Mspace_.hpp:1319
virtual ~CMspace_Base(void)
Definition: Mspace_.cpp:391
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
Definition: Mspace_.hpp:2703
void ResetIndentshift(void)
Reset Indentshift data member.
Definition: Mspace_.cpp:243
void ResetStyle(void)
Reset Style data member.
Definition: Mspace_.cpp:171
void ResetMathcolor(void)
Reset Mathcolor data member.
Definition: Mspace_.cpp:183
void ResetIndentshiftfirst(void)
Reset Indentshiftfirst data member.
Definition: Mspace_.cpp:255
void ResetMathsize(void)
Reset Mathsize data member.
Definition: Mspace_.cpp:195
void ResetClass(void)
Reset Class data member.
Definition: Mspace_.cpp:165
void ResetColor(void)
Reset Color data member.
Definition: Mspace_.cpp:213
CRef< TAttlist > m_Attlist
Definition: Mspace_.hpp:1400
void ResetHref(void)
Reset Href data member.
Definition: Mspace_.cpp:177
virtual void Reset(void)
Reset the whole object.
Definition: Mspace_.cpp:363
void ResetIndenttarget(void)
Reset Indenttarget data member.
Definition: Mspace_.cpp:249
CMspace_Base(void)
Definition: Mspace_.cpp:382
void ResetFontsize(void)
Reset Fontsize data member.
Definition: Mspace_.cpp:207
void ResetIndentshiftlast(void)
Reset Indentshiftlast data member.
Definition: Mspace_.cpp:261
static MDB_envinfo info
Definition: mdb_load.c:37
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Fri Sep 20 14:58:10 2024 by modify_doxy.py rev. 669887