NCBI C++ ToolKit
Section_.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  m_LocationLabel.Reset();
53 }
54 
56 {
57  m_LocationLabel.Reset(&value);
58 }
59 
61 {
62  if ( !m_LocationLabel )
63  m_LocationLabel.Reset(new TLocationLabel());
64  return (*m_LocationLabel);
65 }
66 
68 {
70 }
71 
73 {
74  if ( !m_SectionTitle ) {
75  m_SectionTitle.Reset(new TSectionTitle());
76  return;
77  }
78  (*m_SectionTitle).Reset();
79 }
80 
82 {
83  m_SectionTitle.Reset(&value);
84 }
85 
87 {
88  m_Section.clear();
89  m_set_State[0] &= ~0x30;
90 }
91 
93 {
96  ResetSection();
97 }
98 
100 {
101  SET_CLASS_MODULE("efetch");
102  SET_NAMESPACE("http://www.ncbi.nlm.nih.gov")->SetNsQualified(true);
103  ADD_NAMED_REF_MEMBER("LocationLabel", m_LocationLabel, CLocationLabel)->SetOptional();
104  ADD_NAMED_REF_MEMBER("SectionTitle", m_SectionTitle, CSectionTitle);
105  ADD_NAMED_MEMBER("Section", m_Section, STL_list, (STL_CRef, (CLASS, (CSection))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
106  info->RandomOrder();
107  info->CodeVersion(22301);
108  info->DataSpec(ncbi::EDataSpec::eXSD);
109 }
111 
112 // constructor
114 {
115  memset(m_set_State,0,sizeof(m_set_State));
116  if ( !IsAllocatedInPool() ) {
118  }
119 }
120 
121 // destructor
123 {
124 }
125 
126 
127 
128 END_eutils_SCOPE // namespace eutils::
129 
#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("Section", CSection)
Definition: Section_.cpp:99
CLocationLabel –.
CSectionTitle –.
CSection –.
Definition: Section.hpp:64
char value[7]
Definition: config.c:431
string
Definition: cgiapp.hpp:687
#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
CSection_Base(void)
Definition: Section_.cpp:113
Uint4 m_set_State[1]
Definition: Section_.hpp:226
NCBI_NS_NCBI::CRef< TLocationLabel > m_LocationLabel
Definition: Section_.hpp:227
TSectionTitle & SetSectionTitle(void)
Assign a value to SectionTitle data member.
Definition: Section_.hpp:284
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< CSection > > m_Section
Definition: Section_.hpp:229
NCBI_NS_NCBI::CRef< TSectionTitle > m_SectionTitle
Definition: Section_.hpp:228
void ResetSectionTitle(void)
Reset SectionTitle data member.
Definition: Section_.cpp:72
CLocationLabel TLocationLabel
Definition: Section_.hpp:89
void ResetLocationLabel(void)
Reset LocationLabel data member.
Definition: Section_.cpp:50
virtual ~CSection_Base(void)
Definition: Section_.cpp:122
TLocationLabel & SetLocationLabel(void)
Assign a value to LocationLabel data member.
Definition: Section_.cpp:60
CSectionTitle TSectionTitle
Definition: Section_.hpp:90
virtual void Reset(void)
Reset the whole object.
Definition: Section_.cpp:92
void ResetSection(void)
Reset Section data member.
Definition: Section_.cpp:86
static MDB_envinfo info
Definition: mdb_load.c:37
Modified on Tue Nov 28 02:21:14 2023 by modify_doxy.py rev. 669887