NCBI C++ ToolKit
CDD_Rep_Get_Blob_By_Seq_Id_.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 CDD_Rep_Get_Blob_By_Seq_Id_.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/objtools/data_loaders/cdd/cdd_access/cdd_access.asn">cdd_access.asn</a>
34 /// and additional tune-up parameters:
35 /// <a href="/IEB/ToolBox/CPP_DOC/lxr/source/src/objtools/data_loaders/cdd/cdd_access/cdd_access.def">cdd_access.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 OBJTOOLS_DATA_LOADERS_CDD_CDD_ACCESS_CDD_REP_GET_BLOB_BY_SEQ_ID_BASE_HPP
42 #define OBJTOOLS_DATA_LOADERS_CDD_CDD_ACCESS_CDD_REP_GET_BLOB_BY_SEQ_ID_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
57 class CSeq_annot;
58 
59 
60 // generated classes
61 
62 
63 /** @addtogroup dataspec_NCBI_CDDAccess
64  *
65  * @{
66  */
67 
68 /////////////////////////////////////////////////////////////////////////////
69 /// Reply to the get-blob-by-seq-id request.
70 /// Reply is a composite of get-blob-id + get-blob replies.
71 ///
72 /// CCDD_Reply_Get_Blob_By_Seq_Id_Base --
73 ///
74 
76 {
78 public:
79  // constructor
81  // destructor
83 
84  // type info
86 
87  // types
88  typedef CSeq_annot TBlob;
90 
91  // member index
92  enum class E_memberIndex {
93  e__allMandatory = 0,
94  e_blob,
95  e_blob_id
96  };
98 
99  // getters
100  // setters
101 
102  /// return Seq-annot (like a get-blob request)
103  /// Check if a value has been assigned to Blob data member.
104  ///
105  /// Data member Blob is mandatory;
106  /// its type is defined as 'typedef CSeq_annot TBlob'
107  /// @return
108  /// - true, if a value has been assigned.
109  /// - false, otherwise.
110  bool IsSetBlob(void) const;
111 
112  /// Check if it is safe to call GetBlob method.
113  ///
114  /// @return
115  /// - true, if the data member is getatable.
116  /// - false, otherwise.
117  bool CanGetBlob(void) const;
118 
119  /// Reset Blob data member.
120  void ResetBlob(void);
121 
122  /// Get the Blob member data.
123  ///
124  /// @return
125  /// Reference to the member data.
126  const TBlob& GetBlob(void) const;
127 
128  /// Assign a value to Blob data member.
129  ///
130  /// @param value
131  /// Reference to value.
132  void SetBlob(TBlob& value);
133 
134  /// Assign a value to Blob data member.
135  ///
136  /// @return
137  /// Reference to the data value.
138  TBlob& SetBlob(void);
139 
140  /// return blob-id (like a get-blob-id request)
141  /// Check if a value has been assigned to Blob_id data member.
142  ///
143  /// Data member Blob_id is mandatory;
144  /// its type is defined as 'typedef CCDD_Reply_Get_Blob_Id TBlob_id'
145  /// @return
146  /// - true, if a value has been assigned.
147  /// - false, otherwise.
148  bool IsSetBlob_id(void) const;
149 
150  /// Check if it is safe to call GetBlob_id method.
151  ///
152  /// @return
153  /// - true, if the data member is getatable.
154  /// - false, otherwise.
155  bool CanGetBlob_id(void) const;
156 
157  /// Reset Blob_id data member.
158  void ResetBlob_id(void);
159 
160  /// Get the Blob_id member data.
161  ///
162  /// @return
163  /// Reference to the member data.
164  const TBlob_id& GetBlob_id(void) const;
165 
166  /// Assign a value to Blob_id data member.
167  ///
168  /// @param value
169  /// Reference to value.
170  void SetBlob_id(TBlob_id& value);
171 
172  /// Assign a value to Blob_id data member.
173  ///
174  /// @return
175  /// Reference to the data value.
176  TBlob_id& SetBlob_id(void);
177 
178  /// Reset the whole object
179  virtual void Reset(void);
180 
181 
182 private:
183  // Prohibit copy constructor and assignment operator
186 
187  // data
188  Uint4 m_set_State[1];
191 };
192 
193 /* @} */
194 
195 
196 
197 
198 
199 ///////////////////////////////////////////////////////////
200 ///////////////////// inline methods //////////////////////
201 ///////////////////////////////////////////////////////////
202 inline
204 {
205  return m_Blob.NotEmpty();
206 }
207 
208 inline
210 {
211  return true;
212 }
213 
214 inline
216 {
217  if ( !m_Blob ) {
218  const_cast<CCDD_Reply_Get_Blob_By_Seq_Id_Base*>(this)->ResetBlob();
219  }
220  return (*m_Blob);
221 }
222 
223 inline
225 {
226  if ( !m_Blob ) {
227  ResetBlob();
228  }
229  return (*m_Blob);
230 }
231 
232 inline
234 {
235  return m_Blob_id.NotEmpty();
236 }
237 
238 inline
240 {
241  return true;
242 }
243 
244 inline
246 {
247  if ( !m_Blob_id ) {
248  const_cast<CCDD_Reply_Get_Blob_By_Seq_Id_Base*>(this)->ResetBlob_id();
249  }
250  return (*m_Blob_id);
251 }
252 
253 inline
255 {
256  if ( !m_Blob_id ) {
257  ResetBlob_id();
258  }
259  return (*m_Blob_id);
260 }
261 
262 ///////////////////////////////////////////////////////////
263 ////////////////// end of inline methods //////////////////
264 ///////////////////////////////////////////////////////////
265 
266 
267 
268 
269 
270 END_objects_SCOPE // namespace ncbi::objects::
271 
273 
274 
275 #endif // OBJTOOLS_DATA_LOADERS_CDD_CDD_ACCESS_CDD_REP_GET_BLOB_BY_SEQ_ID_BASE_HPP
Reply to the get-blob-by-seq-id request.
CCDD_Reply_Get_Blob_Id –.
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_CDD_ACCESS_EXPORT
Definition: ncbi_export.h:1505
void ResetBlob(void)
Reset Blob data member.
CCDD_Reply_Get_Blob_By_Seq_Id_Base & operator=(const CCDD_Reply_Get_Blob_By_Seq_Id_Base &)
CCDD_Reply_Get_Blob_By_Seq_Id_Base(const CCDD_Reply_Get_Blob_By_Seq_Id_Base &)
TBlob_id & SetBlob_id(void)
Assign a value to Blob_id data member.
bool IsSetBlob_id(void) const
return blob-id (like a get-blob-id request) Check if a value has been assigned to Blob_id data member...
const TBlob & GetBlob(void) const
Get the Blob member data.
bool CanGetBlob(void) const
Check if it is safe to call GetBlob method.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
bool CanGetBlob_id(void) const
Check if it is safe to call GetBlob_id method.
const TBlob_id & GetBlob_id(void) const
Get the Blob_id member data.
void ResetBlob_id(void)
Reset Blob_id data member.
TBlob & SetBlob(void)
Assign a value to Blob data member.
bool IsSetBlob(void) const
return Seq-annot (like a get-blob request) Check if a value has been assigned to Blob data member.
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Sat Jun 08 14:21:21 2024 by modify_doxy.py rev. 669887