NCBI C++ ToolKit
Blast4_queue_search_reques_.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  * 'blast.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
47 
48 BEGIN_objects_SCOPE // namespace ncbi::objects::
49 
50 
51 // generated classes
52 
54 {
55  m_Program.erase();
56  m_set_State[0] &= ~0x3;
57 }
58 
60 {
61  m_Service.erase();
62  m_set_State[0] &= ~0xc;
63 }
64 
66 {
67  if ( !m_Queries ) {
68  m_Queries.Reset(new TQueries());
69  return;
70  }
71  (*m_Queries).Reset();
72 }
73 
75 {
76  m_Queries.Reset(&value);
77 }
78 
80 {
81  if ( !m_Subject ) {
82  m_Subject.Reset(new TSubject());
83  return;
84  }
85  (*m_Subject).Reset();
86 }
87 
89 {
90  m_Subject.Reset(&value);
91 }
92 
94 {
95  m_Paramset.erase();
96  m_set_State[0] &= ~0x300;
97 }
98 
100 {
101  m_Algorithm_options.Reset();
102 }
103 
105 {
106  m_Algorithm_options.Reset(&value);
107 }
108 
110 {
111  if ( !m_Algorithm_options )
113  return (*m_Algorithm_options);
114 }
115 
117 {
118  m_Program_options.Reset();
119 }
120 
122 {
123  m_Program_options.Reset(&value);
124 }
125 
127 {
128  if ( !m_Program_options )
129  m_Program_options.Reset(new TProgram_options());
130  return (*m_Program_options);
131 }
132 
134 {
135  m_Format_options.Reset();
136 }
137 
139 {
140  m_Format_options.Reset(&value);
141 }
142 
144 {
145  if ( !m_Format_options )
146  m_Format_options.Reset(new TFormat_options());
147  return (*m_Format_options);
148 }
149 
151 {
152  ResetProgram();
153  ResetService();
154  ResetQueries();
155  ResetSubject();
156  ResetParamset();
160 }
161 
163 {
164  SET_CLASS_MODULE("NCBI-Blast4");
165  ADD_NAMED_STD_MEMBER("program", m_Program)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
166  ADD_NAMED_STD_MEMBER("service", m_Service)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
167  ADD_NAMED_REF_MEMBER("queries", m_Queries, CBlast4_queries);
168  ADD_NAMED_REF_MEMBER("subject", m_Subject, CBlast4_subject);
169  ADD_NAMED_STD_MEMBER("paramset", m_Paramset)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
170  ADD_NAMED_REF_MEMBER("algorithm-options", m_Algorithm_options, CBlast4_parameters)->SetOptional();
171  ADD_NAMED_REF_MEMBER("program-options", m_Program_options, CBlast4_parameters)->SetOptional();
172  ADD_NAMED_REF_MEMBER("format-options", m_Format_options, CBlast4_parameters)->SetOptional();
173  info->RandomOrder();
174  info->CodeVersion(22301);
175  info->DataSpec(ncbi::EDataSpec::eASN);
176 }
178 
179 // constructor
181 {
182  memset(m_set_State,0,sizeof(m_set_State));
183  if ( !IsAllocatedInPool() ) {
184  ResetQueries();
185  ResetSubject();
186  }
187 }
188 
189 // destructor
191 {
192 }
193 
194 
195 
196 END_objects_SCOPE // namespace ncbi::objects::
197 
199 
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("Blast4-queue-search-request", CBlast4_queue_search_request)
User-defined methods of the data storage class.
CBlast4_queue_search_request –.
CBlast4_subject –.
char value[7]
Definition: config.c:431
#define MEMBER_PTR(MemberName)
Definition: serialimpl.hpp:284
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
Definition: serialimpl.hpp:357
#define END_CLASS_INFO
Definition: serialimpl.hpp:456
#define ADD_NAMED_STD_MEMBER(MemberAlias, MemberName)
Definition: serialimpl.hpp:345
#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
void ResetProgram(void)
Reset Program data member.
TAlgorithm_options & SetAlgorithm_options(void)
Assign a value to Algorithm_options data member.
void ResetProgram_options(void)
Reset Program_options data member.
void ResetAlgorithm_options(void)
Reset Algorithm_options data member.
void ResetService(void)
Reset Service data member.
void ResetFormat_options(void)
Reset Format_options data member.
void ResetSubject(void)
Reset Subject data member.
TQueries & SetQueries(void)
Assign a value to Queries data member.
TProgram_options & SetProgram_options(void)
Assign a value to Program_options data member.
virtual void Reset(void)
Reset the whole object.
TSubject & SetSubject(void)
Assign a value to Subject data member.
void ResetQueries(void)
Reset Queries data member.
TFormat_options & SetFormat_options(void)
Assign a value to Format_options data member.
void ResetParamset(void)
Reset Paramset data member.
static MDB_envinfo info
Definition: mdb_load.c:37
Modified on Thu Nov 30 04:54:45 2023 by modify_doxy.py rev. 669887