NCBI C++ ToolKit
Cit_book_.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  * 'biblio.asn'.
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 #include <objects/biblio/Title.hpp>
47 
48 BEGIN_objects_SCOPE // namespace ncbi::objects::
49 
50 
51 // generated classes
52 
54 {
55  if ( !m_Title ) {
56  m_Title.Reset(new TTitle());
57  return;
58  }
59  (*m_Title).Reset();
60 }
61 
63 {
64  m_Title.Reset(&value);
65 }
66 
68 {
69  m_Coll.Reset();
70 }
71 
73 {
74  m_Coll.Reset(&value);
75 }
76 
78 {
79  if ( !m_Coll )
80  m_Coll.Reset(new TColl());
81  return (*m_Coll);
82 }
83 
85 {
86  if ( !m_Authors ) {
87  m_Authors.Reset(new TAuthors());
88  return;
89  }
90  (*m_Authors).Reset();
91 }
92 
94 {
95  m_Authors.Reset(&value);
96 }
97 
99 {
100  if ( !m_Imp ) {
101  m_Imp.Reset(new TImp());
102  return;
103  }
104  (*m_Imp).Reset();
105 }
106 
108 {
109  m_Imp.Reset(&value);
110 }
111 
113 {
114  ResetTitle();
115  ResetColl();
116  ResetAuthors();
117  ResetImp();
118 }
119 
121 {
122  SET_CLASS_MODULE("NCBI-Biblio");
123  ADD_NAMED_REF_MEMBER("title", m_Title, CTitle);
124  ADD_NAMED_REF_MEMBER("coll", m_Coll, CTitle)->SetOptional();
125  ADD_NAMED_REF_MEMBER("authors", m_Authors, CAuth_list);
126  ADD_NAMED_REF_MEMBER("imp", m_Imp, CImprint);
127  info->RandomOrder();
128  info->CodeVersion(22301);
129  info->DataSpec(ncbi::EDataSpec::eASN);
130 }
132 
133 // constructor
135 {
136  memset(m_set_State,0,sizeof(m_set_State));
137  if ( !IsAllocatedInPool() ) {
138  ResetTitle();
139  ResetAuthors();
140  ResetImp();
141  }
142 }
143 
144 // destructor
146 {
147 }
148 
149 
150 
151 END_objects_SCOPE // namespace ncbi::objects::
152 
154 
BEGIN_NAMED_BASE_CLASS_INFO("Cit-book", CCit_book)
Definition: Cit_book_.cpp:120
User-defined methods of the data storage class.
@Auth_list.hpp User-defined methods of the data storage class.
Definition: Auth_list.hpp:57
CImprint –.
Definition: Imprint.hpp:66
Definition: Title.hpp:51
char value[7]
Definition: config.c:431
#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
bool IsAllocatedInPool(void) const THROWS_NONE
Check if object is allocated in memory pool (not system heap)
Definition: ncbiobj.hpp:461
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
CRef< TAuthors > m_Authors
Definition: Cit_book_.hpp:270
CRef< TImp > m_Imp
Definition: Cit_book_.hpp:271
virtual void Reset(void)
Reset the whole object.
Definition: Cit_book_.cpp:112
CAuth_list TAuthors
Definition: Cit_book_.hpp:90
CRef< TColl > m_Coll
Definition: Cit_book_.hpp:269
void ResetAuthors(void)
Reset Authors data member.
Definition: Cit_book_.cpp:84
TTitle & SetTitle(void)
Assign a value to Title data member.
Definition: Cit_book_.hpp:305
CCit_book_Base(void)
Definition: Cit_book_.cpp:134
void ResetColl(void)
Reset Coll data member.
Definition: Cit_book_.cpp:67
TColl & SetColl(void)
Assign a value to Coll data member.
Definition: Cit_book_.cpp:77
virtual ~CCit_book_Base(void)
Definition: Cit_book_.cpp:145
TAuthors & SetAuthors(void)
Assign a value to Authors data member.
Definition: Cit_book_.hpp:356
CImprint TImp
Definition: Cit_book_.hpp:91
void ResetTitle(void)
Reset Title data member.
Definition: Cit_book_.cpp:53
void ResetImp(void)
Reset Imp data member.
Definition: Cit_book_.cpp:98
Uint4 m_set_State[1]
Definition: Cit_book_.hpp:267
TImp & SetImp(void)
Assign a value to Imp data member.
Definition: Cit_book_.hpp:386
CRef< TTitle > m_Title
Definition: Cit_book_.hpp:268
static MDB_envinfo info
Definition: mdb_load.c:37
Modified on Sat Dec 02 09:24:16 2023 by modify_doxy.py rev. 669887