NCBI C++ ToolKit
Malignmark_.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 
51 {
52  SET_ENUM_INTERNAL_NAME("malignmark.Attlist", "edge");
53  SET_ENUM_MODULE("pubmed_mathml3");
54  ADD_ENUM_VALUE("left", eAttlist_edge_left);
55  ADD_ENUM_VALUE("right", eAttlist_edge_right);
56 }
58 
60 {
61  m_Id.erase();
62  m_set_State[0] &= ~0x3;
63 }
64 
66 {
67  m_Xref.erase();
68  m_set_State[0] &= ~0xc;
69 }
70 
72 {
73  m_Class.erase();
74  m_set_State[0] &= ~0x30;
75 }
76 
78 {
79  m_Style.erase();
80  m_set_State[0] &= ~0xc0;
81 }
82 
84 {
85  m_Href.erase();
86  m_set_State[0] &= ~0x300;
87 }
88 
90 {
91  m_Mathcolor.erase();
92  m_set_State[0] &= ~0xc00;
93 }
94 
96 {
97  m_Mathbackground.erase();
98  m_set_State[0] &= ~0x3000;
99 }
100 
102 {
103  ResetId();
104  ResetXref();
105  ResetClass();
106  ResetStyle();
107  ResetHref();
108  ResetMathcolor();
109  ResetMathbackground();
110  ResetEdge();
111 }
112 
114 {
115  SET_INTERNAL_NAME("malignmark", "Attlist");
116  SET_CLASS_MODULE("pubmed_mathml3");
117  ADD_NAMED_STD_MEMBER("id", m_Id)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
118  ADD_NAMED_STD_MEMBER("xref", m_Xref)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
119  ADD_NAMED_STD_MEMBER("class", m_Class)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
120  ADD_NAMED_STD_MEMBER("style", m_Style)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
121  ADD_NAMED_STD_MEMBER("href", m_Href)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
122  ADD_NAMED_STD_MEMBER("mathcolor", m_Mathcolor)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
123  ADD_NAMED_STD_MEMBER("mathbackground", m_Mathbackground)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
124  ADD_NAMED_ENUM_MEMBER("edge", m_Edge, EAttlist_edge)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
125  info->SetRandomOrder(true);
126  info->CodeVersion(22400);
127  info->DataSpec(ncbi::EDataSpec::eXSD);
128 }
130 
131 // constructor
133  : m_Edge((EAttlist_edge)(0))
134 {
135  memset(m_set_State,0,sizeof(m_set_State));
136 }
137 
138 // destructor
140 {
141 }
142 
143 
145 {
146  if ( !m_Attlist ) {
147  m_Attlist.Reset(new TAttlist());
148  return;
149  }
150  (*m_Attlist).Reset();
151 }
152 
154 {
155  m_Attlist.Reset(&value);
156  SetMalignmark();
157 }
158 
160 {
161  ResetAttlist();
162  ResetMalignmark();
163 }
164 
166 {
167  SET_CLASS_MODULE("pubmed_mathml3");
168  SET_NAMESPACE("http://www.w3.org/1998/Math/MathML")->SetNsQualified(true);
169  ADD_NAMED_REF_MEMBER("Attlist", m_Attlist, C_Attlist)->SetAttlist();
170  ADD_NAMED_NULL_MEMBER("malignmark", null, ())->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetNotag();
171  info->RandomOrder();
172  info->CodeVersion(22400);
173  info->DataSpec(ncbi::EDataSpec::eXSD);
174 }
176 
177 // constructor
179 {
180  memset(m_set_State,0,sizeof(m_set_State));
181  if ( !IsAllocatedInPool() ) {
182  ResetAttlist();
183  }
184 }
185 
186 // destructor
188 {
189 }
190 
191 
192 
193 END_objects_SCOPE // namespace ncbi::objects::
194 
196 
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("malignmark", CMalignmark)
BEGIN_NAMED_ENUM_IN_INFO("", CMalignmark_Base::C_Attlist::, EAttlist_edge, false)
Definition: Malignmark_.cpp:50
BEGIN_NAMED_CLASS_INFO("", CMalignmark_Base::C_Attlist)
END_ENUM_INFO
Definition: aln_errors.cpp:58
CMalignmark –.
Definition: Malignmark.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
Uint4 m_set_State[1]
C_Attlist TAttlist
void SetMalignmark(void)
Set NULL data member (assign 'NULL' value to Malignmark data member).
void Reset(void)
Reset the whole object.
void ResetId(void)
Reset Id data member.
Definition: Malignmark_.cpp:59
virtual ~CMalignmark_Base(void)
void ResetMathcolor(void)
Reset Mathcolor data member.
Definition: Malignmark_.cpp:89
void ResetStyle(void)
Reset Style data member.
Definition: Malignmark_.cpp:77
void ResetMathbackground(void)
Reset Mathbackground data member.
Definition: Malignmark_.cpp:95
void ResetXref(void)
Reset Xref data member.
Definition: Malignmark_.cpp:65
void ResetMalignmark(void)
Reset Malignmark data member.
void ResetHref(void)
Reset Href data member.
Definition: Malignmark_.cpp:83
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
void ResetAttlist(void)
Reset Attlist data member.
CRef< TAttlist > m_Attlist
void ResetClass(void)
Reset Class data member.
Definition: Malignmark_.cpp:71
virtual void Reset(void)
Reset the whole object.
static MDB_envinfo info
Definition: mdb_load.c:37
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Wed May 22 11:36:03 2024 by modify_doxy.py rev. 669887