NCBI C++ ToolKit
Cit_gen_.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
44 #include <objects/biblio/Title.hpp>
45 #include <objects/general/Date.hpp>
47 
48 BEGIN_objects_SCOPE // namespace ncbi::objects::
49 
50 
51 // generated classes
52 
54 {
55  m_Cit.erase();
56  m_set_State[0] &= ~0x3;
57 }
58 
60 {
61  m_Authors.Reset();
62 }
63 
65 {
66  m_Authors.Reset(&value);
67 }
68 
70 {
71  if ( !m_Authors )
72  m_Authors.Reset(new TAuthors());
73  return (*m_Authors);
74 }
75 
77 {
78  m_Journal.Reset();
79 }
80 
82 {
83  m_Journal.Reset(&value);
84 }
85 
87 {
88  if ( !m_Journal )
89  m_Journal.Reset(new TJournal());
90  return (*m_Journal);
91 }
92 
94 {
95  m_Volume.erase();
96  m_set_State[0] &= ~0x300;
97 }
98 
100 {
101  m_Issue.erase();
102  m_set_State[0] &= ~0xc00;
103 }
104 
106 {
107  m_Pages.erase();
108  m_set_State[0] &= ~0x3000;
109 }
110 
112 {
113  m_Date.Reset();
114 }
115 
117 {
118  m_Date.Reset(&value);
119 }
120 
122 {
123  if ( !m_Date )
124  m_Date.Reset(new TDate());
125  return (*m_Date);
126 }
127 
129 {
130  m_Title.erase();
131  m_set_State[0] &= ~0xc0000;
132 }
133 
135 {
136  ResetCit();
137  ResetAuthors();
138  ResetMuid();
139  ResetJournal();
140  ResetVolume();
141  ResetIssue();
142  ResetPages();
143  ResetDate();
145  ResetTitle();
146  ResetPmid();
147 }
148 
150 {
151  SET_CLASS_MODULE("NCBI-Biblio");
152  ADD_NAMED_STD_MEMBER("cit", m_Cit)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
153  ADD_NAMED_REF_MEMBER("authors", m_Authors, CAuth_list)->SetOptional();
154  ADD_NAMED_STD_MEMBER("muid", m_Muid)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
155  ADD_NAMED_REF_MEMBER("journal", m_Journal, CTitle)->SetOptional();
156  ADD_NAMED_STD_MEMBER("volume", m_Volume)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
157  ADD_NAMED_STD_MEMBER("issue", m_Issue)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
158  ADD_NAMED_STD_MEMBER("pages", m_Pages)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
159  ADD_NAMED_REF_MEMBER("date", m_Date, CDate)->SetOptional();
160  ADD_NAMED_STD_MEMBER("serial-number", m_Serial_number)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
161  ADD_NAMED_STD_MEMBER("title", m_Title)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
162  ADD_NAMED_MEMBER("pmid", m_Pmid, CLASS, (CPubMedId))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
163  info->RandomOrder();
164  info->CodeVersion(22301);
165  info->DataSpec(ncbi::EDataSpec::eASN);
166 }
168 
169 // constructor
171  : m_Muid(0), m_Serial_number(0), m_Pmid(CPubMedId(0))
172 {
173  memset(m_set_State,0,sizeof(m_set_State));
174 }
175 
176 // destructor
178 {
179 }
180 
181 
182 
183 END_objects_SCOPE // namespace ncbi::objects::
184 
186 
BEGIN_NAMED_BASE_CLASS_INFO("Cit-gen", CCit_gen)
Definition: Cit_gen_.cpp:149
@Auth_list.hpp User-defined methods of the data storage class.
Definition: Auth_list.hpp:57
Definition: Date.hpp:53
Definition: Title.hpp:51
char value[7]
Definition: config.c:431
#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 END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
void ResetPages(void)
Reset Pages data member.
Definition: Cit_gen_.cpp:105
void ResetMuid(void)
Reset Muid data member.
Definition: Cit_gen_.hpp:656
string m_Cit
Definition: Cit_gen_.hpp:553
CRef< TJournal > m_Journal
Definition: Cit_gen_.hpp:556
string m_Volume
Definition: Cit_gen_.hpp:557
void ResetAuthors(void)
Reset Authors data member.
Definition: Cit_gen_.cpp:59
CTitle TJournal
Definition: Cit_gen_.hpp:96
void ResetPmid(void)
Reset Pmid data member.
Definition: Cit_gen_.hpp:980
TJournal & SetJournal(void)
Assign a value to Journal data member.
Definition: Cit_gen_.cpp:86
CCit_gen_Base(void)
Definition: Cit_gen_.cpp:170
void ResetIssue(void)
Reset Issue data member.
Definition: Cit_gen_.cpp:99
void ResetSerial_number(void)
Reset Serial_number data member.
Definition: Cit_gen_.hpp:886
string m_Pages
Definition: Cit_gen_.hpp:559
CAuth_list TAuthors
Definition: Cit_gen_.hpp:94
string m_Title
Definition: Cit_gen_.hpp:562
CRef< TAuthors > m_Authors
Definition: Cit_gen_.hpp:554
void ResetCit(void)
Reset Cit data member.
Definition: Cit_gen_.cpp:53
void ResetDate(void)
Reset Date data member.
Definition: Cit_gen_.cpp:111
TDate & SetDate(void)
Assign a value to Date data member.
Definition: Cit_gen_.cpp:121
virtual ~CCit_gen_Base(void)
Definition: Cit_gen_.cpp:177
void ResetJournal(void)
Reset Journal data member.
Definition: Cit_gen_.cpp:76
string m_Issue
Definition: Cit_gen_.hpp:558
virtual void Reset(void)
Reset the whole object.
Definition: Cit_gen_.cpp:134
void ResetTitle(void)
Reset Title data member.
Definition: Cit_gen_.cpp:128
Uint4 m_set_State[1]
Definition: Cit_gen_.hpp:552
CRef< TDate > m_Date
Definition: Cit_gen_.hpp:560
TAuthors & SetAuthors(void)
Assign a value to Authors data member.
Definition: Cit_gen_.cpp:69
void ResetVolume(void)
Reset Volume data member.
Definition: Cit_gen_.cpp:93
static MDB_envinfo info
Definition: mdb_load.c:37
Modified on Sat Dec 02 09:23:05 2023 by modify_doxy.py rev. 669887