NCBI C++ ToolKit
Cit_proc_.hpp
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  */
27 
28 /// @file Cit_proc_.hpp
29 /// Data storage class.
30 ///
31 /// This file was generated by application DATATOOL
32 /// using the following specifications:
33 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/biblio/biblio.asn">biblio.asn</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objects/biblio/biblio.def">biblio.def</a>
36 ///
37 /// ATTENTION:
38 /// Don't edit or commit this file into CVS as this file will
39 /// be overridden (by DATATOOL) without warning!
40 
41 #ifndef OBJECTS_BIBLIO_CIT_PROC_BASE_HPP
42 #define OBJECTS_BIBLIO_CIT_PROC_BASE_HPP
43 
44 // standard includes
45 #include <serial/serialbase.hpp>
47 
48 #ifndef BEGIN_objects_SCOPE
49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
50 # define END_objects_SCOPE END_SCOPE(objects)
51 #endif
52 BEGIN_objects_SCOPE // namespace ncbi::objects::
53 
54 
55 // forward declarations
56 class CCit_book;
57 class CMeeting;
58 
59 
60 // generated classes
61 
62 
63 /** @addtogroup dataspec_NCBI_Biblio
64  *
65  * @{
66  */
67 
68 /////////////////////////////////////////////////////////////////////////////
69 /// Meeting proceedings
70 ///
71 /// CCit_proc_Base --
72 ///
73 
75 {
77 public:
78  // constructor
79  CCit_proc_Base(void);
80  // destructor
81  virtual ~CCit_proc_Base(void);
82 
83  // type info
85 
86  // types
87  typedef CCit_book TBook;
88  typedef CMeeting TMeet;
89 
90  // member index
91  enum class E_memberIndex {
92  e__allMandatory = 0,
93  e_book,
94  e_meet
95  };
97 
98  // getters
99  // setters
100 
101  /// citation to meeting
102  /// Check if a value has been assigned to Book data member.
103  ///
104  /// Data member Book is mandatory;
105  /// its type is defined as 'typedef CCit_book TBook'
106  /// @return
107  /// - true, if a value has been assigned.
108  /// - false, otherwise.
109  bool IsSetBook(void) const;
110 
111  /// Check if it is safe to call GetBook method.
112  ///
113  /// @return
114  /// - true, if the data member is getatable.
115  /// - false, otherwise.
116  bool CanGetBook(void) const;
117 
118  /// Reset Book data member.
119  void ResetBook(void);
120 
121  /// Get the Book member data.
122  ///
123  /// @return
124  /// Reference to the member data.
125  const TBook& GetBook(void) const;
126 
127  /// Assign a value to Book data member.
128  ///
129  /// @param value
130  /// Reference to value.
131  void SetBook(TBook& value);
132 
133  /// Assign a value to Book data member.
134  ///
135  /// @return
136  /// Reference to the data value.
137  TBook& SetBook(void);
138 
139  /// time and location of meeting
140  /// Check if a value has been assigned to Meet data member.
141  ///
142  /// Data member Meet is mandatory;
143  /// its type is defined as 'typedef CMeeting TMeet'
144  /// @return
145  /// - true, if a value has been assigned.
146  /// - false, otherwise.
147  bool IsSetMeet(void) const;
148 
149  /// Check if it is safe to call GetMeet method.
150  ///
151  /// @return
152  /// - true, if the data member is getatable.
153  /// - false, otherwise.
154  bool CanGetMeet(void) const;
155 
156  /// Reset Meet data member.
157  void ResetMeet(void);
158 
159  /// Get the Meet member data.
160  ///
161  /// @return
162  /// Reference to the member data.
163  const TMeet& GetMeet(void) const;
164 
165  /// Assign a value to Meet data member.
166  ///
167  /// @param value
168  /// Reference to value.
169  void SetMeet(TMeet& value);
170 
171  /// Assign a value to Meet data member.
172  ///
173  /// @return
174  /// Reference to the data value.
175  TMeet& SetMeet(void);
176 
177  /// Reset the whole object
178  virtual void Reset(void);
179 
180 
181 private:
182  // Prohibit copy constructor and assignment operator
185 
186  // data
187  Uint4 m_set_State[1];
190 };
191 
192 /* @} */
193 
194 
195 
196 
197 
198 ///////////////////////////////////////////////////////////
199 ///////////////////// inline methods //////////////////////
200 ///////////////////////////////////////////////////////////
201 inline
203 {
204  return m_Book.NotEmpty();
205 }
206 
207 inline
209 {
210  return true;
211 }
212 
213 inline
215 {
216  if ( !m_Book ) {
217  const_cast<CCit_proc_Base*>(this)->ResetBook();
218  }
219  return (*m_Book);
220 }
221 
222 inline
224 {
225  if ( !m_Book ) {
226  ResetBook();
227  }
228  return (*m_Book);
229 }
230 
231 inline
233 {
234  return m_Meet.NotEmpty();
235 }
236 
237 inline
239 {
240  return true;
241 }
242 
243 inline
245 {
246  if ( !m_Meet ) {
247  const_cast<CCit_proc_Base*>(this)->ResetMeet();
248  }
249  return (*m_Meet);
250 }
251 
252 inline
254 {
255  if ( !m_Meet ) {
256  ResetMeet();
257  }
258  return (*m_Meet);
259 }
260 
261 ///////////////////////////////////////////////////////////
262 ////////////////// end of inline methods //////////////////
263 ///////////////////////////////////////////////////////////
264 
265 
266 
267 
268 
269 END_objects_SCOPE // namespace ncbi::objects::
270 
272 
273 
274 #endif // OBJECTS_BIBLIO_CIT_PROC_BASE_HPP
Meeting proceedings.
Definition: Cit_proc_.hpp:75
CMeeting –.
Definition: Meeting.hpp:66
CRef –.
Definition: ncbiobj.hpp:618
Base class for all serializable objects.
Definition: serialbase.hpp:150
uint32_t Uint4
4-byte (32-bit) unsigned integer
Definition: ncbitype.h:103
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define NCBI_BIBLIO_EXPORT
Definition: ncbi_export.h:312
CSerialObject Tparent
Definition: Cit_proc_.hpp:76
TMeet & SetMeet(void)
Assign a value to Meet data member.
Definition: Cit_proc_.hpp:253
CMeeting TMeet
Definition: Cit_proc_.hpp:88
const TBook & GetBook(void) const
Get the Book member data.
Definition: Cit_proc_.hpp:214
TBook & SetBook(void)
Assign a value to Book data member.
Definition: Cit_proc_.hpp:223
CRef< TBook > m_Book
Definition: Cit_proc_.hpp:188
const TMeet & GetMeet(void) const
Get the Meet member data.
Definition: Cit_proc_.hpp:244
DECLARE_INTERNAL_TYPE_INFO()
CCit_proc_Base & operator=(const CCit_proc_Base &)
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
Definition: Cit_proc_.hpp:96
void ResetMeet(void)
Reset Meet data member.
Definition: Cit_proc_.cpp:66
bool IsSetBook(void) const
citation to meeting Check if a value has been assigned to Book data member.
Definition: Cit_proc_.hpp:202
bool IsSetMeet(void) const
time and location of meeting Check if a value has been assigned to Meet data member.
Definition: Cit_proc_.hpp:232
void ResetBook(void)
Reset Book data member.
Definition: Cit_proc_.cpp:52
bool CanGetBook(void) const
Check if it is safe to call GetBook method.
Definition: Cit_proc_.hpp:208
CCit_book TBook
Definition: Cit_proc_.hpp:87
CCit_proc_Base(const CCit_proc_Base &)
CRef< TMeet > m_Meet
Definition: Cit_proc_.hpp:189
bool CanGetMeet(void) const
Check if it is safe to call GetMeet method.
Definition: Cit_proc_.hpp:238
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Fri Jun 14 16:50:20 2024 by modify_doxy.py rev. 669887