NCBI C++ ToolKit
PubmedData_.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  * 'efetch.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
48 BEGIN_eutils_SCOPE // namespace eutils::
49 
50 
51 // generated classes
52 
54 {
55  m_History.Reset();
56 }
57 
59 {
60  m_History.Reset(&value);
61 }
62 
64 {
65  if ( !m_History )
66  m_History.Reset(new THistory());
67  return (*m_History);
68 }
69 
71 {
72  if ( !m_PublicationStatus ) {
74  return;
75  }
76  (*m_PublicationStatus).Reset();
77 }
78 
80 {
81  m_PublicationStatus.Reset(&value);
82 }
83 
85 {
86  if ( !m_ArticleIdList ) {
87  m_ArticleIdList.Reset(new TArticleIdList());
88  return;
89  }
90  (*m_ArticleIdList).Reset();
91 }
92 
94 {
95  m_ArticleIdList.Reset(&value);
96 }
97 
99 {
100  m_ObjectList.Reset();
101 }
102 
104 {
105  m_ObjectList.Reset(&value);
106 }
107 
109 {
110  if ( !m_ObjectList )
111  m_ObjectList.Reset(new TObjectList());
112  return (*m_ObjectList);
113 }
114 
116 {
117  m_ReferenceList.clear();
118  m_set_State[0] &= ~0x300;
119 }
120 
122 {
123  ResetHistory();
126  ResetObjectList();
128 }
129 
131 {
132  SET_CLASS_MODULE("efetch");
133  SET_NAMESPACE("http://www.ncbi.nlm.nih.gov")->SetNsQualified(true);
134  ADD_NAMED_REF_MEMBER("History", m_History, CHistory)->SetOptional();
135  ADD_NAMED_REF_MEMBER("PublicationStatus", m_PublicationStatus, CPublicationStatus);
136  ADD_NAMED_REF_MEMBER("ArticleIdList", m_ArticleIdList, CArticleIdList);
137  ADD_NAMED_REF_MEMBER("ObjectList", m_ObjectList, CObjectList)->SetOptional();
138  ADD_NAMED_MEMBER("ReferenceList", m_ReferenceList, STL_list, (STL_CRef, (CLASS, (CReferenceList))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
139  info->RandomOrder();
140  info->CodeVersion(22301);
141  info->DataSpec(ncbi::EDataSpec::eXSD);
142 }
144 
145 // constructor
147 {
148  memset(m_set_State,0,sizeof(m_set_State));
149  if ( !IsAllocatedInPool() ) {
152  }
153 }
154 
155 // destructor
157 {
158 }
159 
160 
161 
162 END_eutils_SCOPE // namespace eutils::
163 
#define BEGIN_eutils_SCOPE
Definition: Abstract_.hpp:51
#define END_eutils_SCOPE
Definition: Abstract_.hpp:52
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("PubmedData", CPubmedData)
User-defined methods of the data storage class.
CArticleIdList –.
CHistory –.
Definition: History.hpp:64
CObjectList Data structure representing a list of CObjects with associated Scopes and other optional ...
Definition: object_list.hpp:63
CPublicationStatus –.
CPubmedData –.
Definition: PubmedData.hpp:64
CReferenceList –.
char value[7]
Definition: config.c:431
User-defined methods of the data storage class.
#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 SET_CLASS_MODULE(ModuleName)
Definition: serialimpl.hpp:444
#define SET_NAMESPACE(name)
Definition: serialimpl.hpp:450
NCBI_NS_NCBI::CRef< TPublicationStatus > m_PublicationStatus
void ResetArticleIdList(void)
Reset ArticleIdList data member.
Definition: PubmedData_.cpp:84
CObjectList TObjectList
Definition: PubmedData_.hpp:94
TArticleIdList & SetArticleIdList(void)
Assign a value to ArticleIdList data member.
TObjectList & SetObjectList(void)
Assign a value to ObjectList data member.
virtual void Reset(void)
Reset the whole object.
void ResetObjectList(void)
Reset ObjectList data member.
Definition: PubmedData_.cpp:98
TPublicationStatus & SetPublicationStatus(void)
Assign a value to PublicationStatus data member.
virtual ~CPubmedData_Base(void)
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CReferenceList > > m_ReferenceList
void ResetPublicationStatus(void)
Reset PublicationStatus data member.
Definition: PubmedData_.cpp:70
Uint4 m_set_State[1]
NCBI_NS_NCBI::CRef< TArticleIdList > m_ArticleIdList
void ResetHistory(void)
Reset History data member.
Definition: PubmedData_.cpp:53
NCBI_NS_NCBI::CRef< TObjectList > m_ObjectList
void ResetReferenceList(void)
Reset ReferenceList data member.
CArticleIdList TArticleIdList
Definition: PubmedData_.hpp:93
THistory & SetHistory(void)
Assign a value to History data member.
Definition: PubmedData_.cpp:63
NCBI_NS_NCBI::CRef< THistory > m_History
CPublicationStatus TPublicationStatus
Definition: PubmedData_.hpp:92
static MDB_envinfo info
Definition: mdb_load.c:37
Modified on Sat Dec 09 04:46:02 2023 by modify_doxy.py rev. 669887