NCBI C++ ToolKit
MedlineJournalInfo_.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
47 BEGIN_eutils_SCOPE // namespace eutils::
48 
49 
50 // generated classes
51 
53 {
54  m_Country.Reset();
55 }
56 
58 {
59  m_Country.Reset(&value);
60 }
61 
63 {
64  if ( !m_Country )
65  m_Country.Reset(new TCountry());
66  return (*m_Country);
67 }
68 
70 {
71  if ( !m_MedlineTA ) {
72  m_MedlineTA.Reset(new TMedlineTA());
73  return;
74  }
75  (*m_MedlineTA).Reset();
76 }
77 
79 {
80  m_MedlineTA.Reset(&value);
81 }
82 
84 {
85  m_NlmUniqueID.Reset();
86 }
87 
89 {
90  m_NlmUniqueID.Reset(&value);
91 }
92 
94 {
95  if ( !m_NlmUniqueID )
96  m_NlmUniqueID.Reset(new TNlmUniqueID());
97  return (*m_NlmUniqueID);
98 }
99 
101 {
102  m_ISSNLinking.Reset();
103 }
104 
106 {
107  m_ISSNLinking.Reset(&value);
108 }
109 
111 {
112  if ( !m_ISSNLinking )
113  m_ISSNLinking.Reset(new TISSNLinking());
114  return (*m_ISSNLinking);
115 }
116 
118 {
119  ResetCountry();
120  ResetMedlineTA();
123 }
124 
126 {
127  SET_CLASS_MODULE("efetch");
128  SET_NAMESPACE("http://www.ncbi.nlm.nih.gov")->SetNsQualified(true);
129  ADD_NAMED_REF_MEMBER("Country", m_Country, CCountry)->SetOptional();
130  ADD_NAMED_REF_MEMBER("MedlineTA", m_MedlineTA, CMedlineTA);
131  ADD_NAMED_REF_MEMBER("NlmUniqueID", m_NlmUniqueID, CNlmUniqueID)->SetOptional();
132  ADD_NAMED_REF_MEMBER("ISSNLinking", m_ISSNLinking, CISSNLinking)->SetOptional();
133  info->RandomOrder();
134  info->CodeVersion(22400);
135  info->DataSpec(ncbi::EDataSpec::eXSD);
136 }
138 
139 // constructor
141 {
142  memset(m_set_State,0,sizeof(m_set_State));
143  if ( !IsAllocatedInPool() ) {
144  ResetMedlineTA();
145  }
146 }
147 
148 // destructor
150 {
151 }
152 
153 
154 
155 END_eutils_SCOPE // namespace eutils::
156 
#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.
BEGIN_NAMED_BASE_CLASS_INFO("MedlineJournalInfo", CMedlineJournalInfo)
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CCountry –.
Definition: Country.hpp:64
CISSNLinking –.
Definition: ISSNLinking.hpp:64
CMedlineJournalInfo –.
CMedlineTA –.
Definition: MedlineTA.hpp:64
CNlmUniqueID –.
Definition: NlmUniqueID.hpp:64
#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
void ResetNlmUniqueID(void)
Reset NlmUniqueID data member.
TMedlineTA & SetMedlineTA(void)
Assign a value to MedlineTA data member.
TNlmUniqueID & SetNlmUniqueID(void)
Assign a value to NlmUniqueID data member.
NCBI_NS_NCBI::CRef< TMedlineTA > m_MedlineTA
virtual void Reset(void)
Reset the whole object.
void ResetISSNLinking(void)
Reset ISSNLinking data member.
void ResetCountry(void)
Reset Country data member.
void ResetMedlineTA(void)
Reset MedlineTA data member.
TCountry & SetCountry(void)
Assign a value to Country data member.
NCBI_NS_NCBI::CRef< TCountry > m_Country
NCBI_NS_NCBI::CRef< TNlmUniqueID > m_NlmUniqueID
TISSNLinking & SetISSNLinking(void)
Assign a value to ISSNLinking data member.
NCBI_NS_NCBI::CRef< TISSNLinking > m_ISSNLinking
static MDB_envinfo info
Definition: mdb_load.c:37
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Tue Jun 25 13:30:42 2024 by modify_doxy.py rev. 669887