NCBI C++ ToolKit
Cit_pat_.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  * 'biblio.asn'.
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 #include <objects/general/Date.hpp>
47 
48 BEGIN_objects_SCOPE // namespace ncbi::objects::
49 
50 
51 // generated classes
52 
54 {
55  m_Title.erase();
56  m_set_State[0] &= ~0x3;
57 }
58 
60 {
61  if ( !m_Authors ) {
62  m_Authors.Reset(new TAuthors());
63  return;
64  }
65  (*m_Authors).Reset();
66 }
67 
69 {
70  m_Authors.Reset(&value);
71 }
72 
74 {
75  m_Country.erase();
76  m_set_State[0] &= ~0x30;
77 }
78 
80 {
81  m_Doc_type.erase();
82  m_set_State[0] &= ~0xc0;
83 }
84 
86 {
87  m_Number.erase();
88  m_set_State[0] &= ~0x300;
89 }
90 
92 {
93  m_Date_issue.Reset();
94 }
95 
97 {
98  m_Date_issue.Reset(&value);
99 }
100 
102 {
103  if ( !m_Date_issue )
104  m_Date_issue.Reset(new TDate_issue());
105  return (*m_Date_issue);
106 }
107 
109 {
110  m_Class.clear();
111  m_set_State[0] &= ~0x3000;
112 }
113 
115 {
116  m_App_number.erase();
117  m_set_State[0] &= ~0xc000;
118 }
119 
121 {
122  m_App_date.Reset();
123 }
124 
126 {
127  m_App_date.Reset(&value);
128 }
129 
131 {
132  if ( !m_App_date )
133  m_App_date.Reset(new TApp_date());
134  return (*m_App_date);
135 }
136 
138 {
139  m_Applicants.Reset();
140 }
141 
143 {
144  m_Applicants.Reset(&value);
145 }
146 
148 {
149  if ( !m_Applicants )
150  m_Applicants.Reset(new TApplicants());
151  return (*m_Applicants);
152 }
153 
155 {
156  m_Assignees.Reset();
157 }
158 
160 {
161  m_Assignees.Reset(&value);
162 }
163 
165 {
166  if ( !m_Assignees )
167  m_Assignees.Reset(new TAssignees());
168  return (*m_Assignees);
169 }
170 
172 {
173  m_Priority.clear();
174  m_set_State[0] &= ~0xc00000;
175 }
176 
178 {
179  m_Abstract.erase();
180  m_set_State[0] &= ~0x3000000;
181 }
182 
184 {
185  ResetTitle();
186  ResetAuthors();
187  ResetCountry();
188  ResetDoc_type();
189  ResetNumber();
190  ResetDate_issue();
191  ResetClass();
192  ResetApp_number();
193  ResetApp_date();
194  ResetApplicants();
195  ResetAssignees();
196  ResetPriority();
197  ResetAbstract();
198 }
199 
201 {
202  SET_CLASS_MODULE("NCBI-Biblio");
203  ADD_NAMED_STD_MEMBER("title", m_Title)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
204  ADD_NAMED_REF_MEMBER("authors", m_Authors, CAuth_list);
205  ADD_NAMED_STD_MEMBER("country", m_Country)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
206  ADD_NAMED_STD_MEMBER("doc-type", m_Doc_type)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
207  ADD_NAMED_STD_MEMBER("number", m_Number)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
208  ADD_NAMED_REF_MEMBER("date-issue", m_Date_issue, CDate)->SetOptional();
209  ADD_NAMED_MEMBER("class", m_Class, STL_list, (STD, (string)))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
210  ADD_NAMED_STD_MEMBER("app-number", m_App_number)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
211  ADD_NAMED_REF_MEMBER("app-date", m_App_date, CDate)->SetOptional();
212  ADD_NAMED_REF_MEMBER("applicants", m_Applicants, CAuth_list)->SetOptional();
213  ADD_NAMED_REF_MEMBER("assignees", m_Assignees, CAuth_list)->SetOptional();
214  ADD_NAMED_MEMBER("priority", m_Priority, STL_list, (STL_CRef, (CLASS, (CPatent_priority))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
215  ADD_NAMED_STD_MEMBER("abstract", m_Abstract)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
216  info->RandomOrder();
217  info->CodeVersion(22400);
218  info->DataSpec(ncbi::EDataSpec::eASN);
219 }
221 
222 // constructor
224 {
225  memset(m_set_State,0,sizeof(m_set_State));
226  if ( !IsAllocatedInPool() ) {
227  ResetAuthors();
228  }
229 }
230 
231 // destructor
233 {
234 }
235 
236 
237 
238 END_objects_SCOPE // namespace ncbi::objects::
239 
241 
BEGIN_NAMED_BASE_CLASS_INFO("Cit-pat", CCit_pat)
Definition: Cit_pat_.cpp:200
User-defined methods of the data storage class.
@Auth_list.hpp User-defined methods of the data storage class.
Definition: Auth_list.hpp:57
Definition: Date.hpp:53
CPatent_priority –.
#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
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
list< CRef< CPatent_priority > > m_Priority
Definition: Cit_pat_.hpp:642
void ResetNumber(void)
Reset Number data member.
Definition: Cit_pat_.cpp:85
virtual ~CCit_pat_Base(void)
Definition: Cit_pat_.cpp:232
void ResetClass(void)
Reset Class data member.
Definition: Cit_pat_.cpp:108
CRef< TApplicants > m_Applicants
Definition: Cit_pat_.hpp:640
string m_Country
Definition: Cit_pat_.hpp:633
CAuth_list TApplicants
Definition: Cit_pat_.hpp:106
CRef< TAuthors > m_Authors
Definition: Cit_pat_.hpp:632
void ResetTitle(void)
Reset Title data member.
Definition: Cit_pat_.cpp:53
string m_Title
Definition: Cit_pat_.hpp:631
CCit_pat_Base(void)
Definition: Cit_pat_.cpp:223
CRef< TApp_date > m_App_date
Definition: Cit_pat_.hpp:639
void ResetApp_number(void)
Reset App_number data member.
Definition: Cit_pat_.cpp:114
string m_Number
Definition: Cit_pat_.hpp:635
string m_Abstract
Definition: Cit_pat_.hpp:643
void ResetApp_date(void)
Reset App_date data member.
Definition: Cit_pat_.cpp:120
void ResetPriority(void)
Reset Priority data member.
Definition: Cit_pat_.cpp:171
void ResetCountry(void)
Reset Country data member.
Definition: Cit_pat_.cpp:73
CDate TDate_issue
Definition: Cit_pat_.hpp:102
void ResetAbstract(void)
Reset Abstract data member.
Definition: Cit_pat_.cpp:177
TApp_date & SetApp_date(void)
Assign a value to App_date data member.
Definition: Cit_pat_.cpp:130
TAssignees & SetAssignees(void)
Assign a value to Assignees data member.
Definition: Cit_pat_.cpp:164
CRef< TAssignees > m_Assignees
Definition: Cit_pat_.hpp:641
TDate_issue & SetDate_issue(void)
Assign a value to Date_issue data member.
Definition: Cit_pat_.cpp:101
void ResetAssignees(void)
Reset Assignees data member.
Definition: Cit_pat_.cpp:154
CAuth_list TAssignees
Definition: Cit_pat_.hpp:107
CDate TApp_date
Definition: Cit_pat_.hpp:105
void ResetAuthors(void)
Reset Authors data member.
Definition: Cit_pat_.cpp:59
TAuthors & SetAuthors(void)
Assign a value to Authors data member.
Definition: Cit_pat_.hpp:724
void ResetDoc_type(void)
Reset Doc_type data member.
Definition: Cit_pat_.cpp:79
string m_Doc_type
Definition: Cit_pat_.hpp:634
void ResetApplicants(void)
Reset Applicants data member.
Definition: Cit_pat_.cpp:137
virtual void Reset(void)
Reset the whole object.
Definition: Cit_pat_.cpp:183
list< string > m_Class
Definition: Cit_pat_.hpp:637
Uint4 m_set_State[1]
Definition: Cit_pat_.hpp:630
void ResetDate_issue(void)
Reset Date_issue data member.
Definition: Cit_pat_.cpp:91
TApplicants & SetApplicants(void)
Assign a value to Applicants data member.
Definition: Cit_pat_.cpp:147
string m_App_number
Definition: Cit_pat_.hpp:638
CAuth_list TAuthors
Definition: Cit_pat_.hpp:98
CRef< TDate_issue > m_Date_issue
Definition: Cit_pat_.hpp:636
static MDB_envinfo info
Definition: mdb_load.c:37
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Wed Jun 12 11:18:41 2024 by modify_doxy.py rev. 669887