NCBI C++ ToolKit
src
objtools
eutils
efetch
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
42
#include <
objtools/eutils/efetch/Reference.hpp
>
43
#include <
objtools/eutils/efetch/ArticleIdList.hpp
>
44
#include <
objtools/eutils/efetch/Citation.hpp
>
45
BEGIN_eutils_SCOPE
// namespace eutils::
46
47
48
// generated classes
49
50
void
CReference_Base::ResetCitation
(
void
)
51
{
52
if
( !
m_Citation
) {
53
m_Citation
.Reset(
new
TCitation
());
54
return
;
55
}
56
(*m_Citation).Reset();
57
}
58
59
void
CReference_Base::SetCitation
(
CReference_Base::TCitation
&
value
)
60
{
61
m_Citation
.Reset(&
value
);
62
}
63
64
void
CReference_Base::ResetArticleIdList
(
void
)
65
{
66
m_ArticleIdList
.Reset();
67
}
68
69
void
CReference_Base::SetArticleIdList
(
CReference_Base::TArticleIdList
&
value
)
70
{
71
m_ArticleIdList
.Reset(&
value
);
72
}
73
74
CReference_Base::TArticleIdList
&
CReference_Base::SetArticleIdList
(
void
)
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
();
84
ResetArticleIdList
();
85
}
86
87
BEGIN_NAMED_BASE_CLASS_INFO
(
"Reference"
,
CReference
)
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
}
97
END_CLASS_INFO
98
99
// constructor
100
CReference_Base::CReference_Base
(
void
)
101
{
102
memset(
m_set_State
,0,
sizeof
(
m_set_State
));
103
if
( !IsAllocatedInPool() ) {
104
ResetCitation
();
105
}
106
}
107
108
// destructor
109
CReference_Base::~CReference_Base
(
void
)
110
{
111
}
112
113
114
115
END_eutils_SCOPE
// namespace eutils::
116
BEGIN_eutils_SCOPE
#define BEGIN_eutils_SCOPE
Definition:
Abstract_.hpp:51
END_eutils_SCOPE
#define END_eutils_SCOPE
Definition:
Abstract_.hpp:52
ArticleIdList.hpp
User-defined methods of the data storage class.
Citation.hpp
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO
BEGIN_NAMED_BASE_CLASS_INFO("Reference", CReference)
Definition:
Reference_.cpp:354
CArticleIdList
CArticleIdList –.
Definition:
ArticleIdList.hpp:64
CCitation
CCitation –.
Definition:
Citation.hpp:64
CReference
Class to keep track of the various BLAST references.
Definition:
version.hpp:67
ADD_NAMED_REF_MEMBER
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
Definition:
serialimpl.hpp:357
END_CLASS_INFO
#define END_CLASS_INFO
Definition:
serialimpl.hpp:456
SET_CLASS_MODULE
#define SET_CLASS_MODULE(ModuleName)
Definition:
serialimpl.hpp:444
SET_NAMESPACE
#define SET_NAMESPACE(name)
Definition:
serialimpl.hpp:450
CReference_Base::m_Citation
NCBI_NS_NCBI::CRef< TCitation > m_Citation
Definition:
Reference_.hpp:183
CReference_Base::ResetCitation
void ResetCitation(void)
Reset Citation data member.
Definition:
Reference_.cpp:50
CReference_Base::TArticleIdList
CArticleIdList TArticleIdList
Definition:
Reference_.hpp:85
CReference_Base::ResetArticleIdList
void ResetArticleIdList(void)
Reset ArticleIdList data member.
Definition:
Reference_.cpp:64
CReference_Base::SetCitation
TCitation & SetCitation(void)
Assign a value to Citation data member.
Definition:
Reference_.hpp:218
CReference_Base::TCitation
CCitation TCitation
Definition:
Reference_.hpp:84
CReference_Base::m_ArticleIdList
NCBI_NS_NCBI::CRef< TArticleIdList > m_ArticleIdList
Definition:
Reference_.hpp:184
CReference_Base::SetArticleIdList
TArticleIdList & SetArticleIdList(void)
Assign a value to ArticleIdList data member.
Definition:
Reference_.cpp:74
CReference_Base::m_set_State
Uint4 m_set_State[1]
Definition:
Reference_.hpp:842
CReference_Base::~CReference_Base
virtual ~CReference_Base(void)
Definition:
Reference_.cpp:376
CReference_Base::Reset
virtual void Reset(void)
Reset the whole object.
Definition:
Reference_.cpp:348
CReference_Base::CReference_Base
CReference_Base(void)
Definition:
Reference_.cpp:367
info
static MDB_envinfo info
Definition:
mdb_load.c:37
rapidjson::value
const GenericPointer< typename T::ValueType > T2 value
Definition:
pointer.h:1227
ncbi_pch.hpp
Reference.hpp
User-defined methods of the data storage class.
serialimpl.hpp
Generated by
1.9.0
Modified on Fri Sep 20 14:58:01 2024 by modify_doxy.py rev. 669887