NCBI C++ ToolKit
Reference_.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
45 BEGIN_eutils_SCOPE // namespace eutils::
46 
47 
48 // generated classes
49 
51 {
52  if ( !m_Citation ) {
53  m_Citation.Reset(new TCitation());
54  return;
55  }
56  (*m_Citation).Reset();
57 }
58 
60 {
61  m_Citation.Reset(&value);
62 }
63 
65 {
66  m_ArticleIdList.Reset();
67 }
68 
70 {
71  m_ArticleIdList.Reset(&value);
72 }
73 
75 {
76  if ( !m_ArticleIdList )
77  m_ArticleIdList.Reset(new TArticleIdList());
78  return (*m_ArticleIdList);
79 }
80 
81 void CReference_Base::Reset(void)
82 {
83  ResetCitation();
85 }
86 
88 {
89  SET_CLASS_MODULE("efetch");
90  SET_NAMESPACE("http://www.ncbi.nlm.nih.gov")->SetNsQualified(true);
91  ADD_NAMED_REF_MEMBER("Citation", m_Citation, CCitation);
92  ADD_NAMED_REF_MEMBER("ArticleIdList", m_ArticleIdList, CArticleIdList)->SetOptional();
93  info->RandomOrder();
94  info->CodeVersion(22400);
95  info->DataSpec(ncbi::EDataSpec::eXSD);
96 }
98 
99 // constructor
101 {
102  memset(m_set_State,0,sizeof(m_set_State));
103  if ( !IsAllocatedInPool() ) {
104  ResetCitation();
105  }
106 }
107 
108 // destructor
110 {
111 }
112 
113 
114 
115 END_eutils_SCOPE // namespace eutils::
116 
#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.
BEGIN_NAMED_BASE_CLASS_INFO("Reference", CReference)
Definition: Reference_.cpp:354
CArticleIdList –.
CCitation –.
Definition: Citation.hpp:64
Class to keep track of the various BLAST references.
Definition: version.hpp:67
#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< TCitation > m_Citation
Definition: Reference_.hpp:183
void ResetCitation(void)
Reset Citation data member.
Definition: Reference_.cpp:50
CArticleIdList TArticleIdList
Definition: Reference_.hpp:85
void ResetArticleIdList(void)
Reset ArticleIdList data member.
Definition: Reference_.cpp:64
TCitation & SetCitation(void)
Assign a value to Citation data member.
Definition: Reference_.hpp:218
CCitation TCitation
Definition: Reference_.hpp:84
NCBI_NS_NCBI::CRef< TArticleIdList > m_ArticleIdList
Definition: Reference_.hpp:184
TArticleIdList & SetArticleIdList(void)
Assign a value to ArticleIdList data member.
Definition: Reference_.cpp:74
Uint4 m_set_State[1]
Definition: Reference_.hpp:842
virtual ~CReference_Base(void)
Definition: Reference_.cpp:376
virtual void Reset(void)
Reset the whole object.
Definition: Reference_.cpp:348
static MDB_envinfo info
Definition: mdb_load.c:37
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
User-defined methods of the data storage class.
Modified on Fri Sep 20 14:58:01 2024 by modify_doxy.py rev. 669887