NCBI C++ ToolKit
BlastOutput_.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  * 'blastxml.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_Version.erase();
62  m_set_State[0] &= ~0xc;
63 }
64 
66 {
67  m_Reference.erase();
68  m_set_State[0] &= ~0x30;
69 }
70 
72 {
73  m_Db.erase();
74  m_set_State[0] &= ~0xc0;
75 }
76 
78 {
79  m_Query_ID.erase();
80  m_set_State[0] &= ~0x300;
81 }
82 
84 {
85  m_Query_def.erase();
86  m_set_State[0] &= ~0xc00;
87 }
88 
90 {
91  m_Query_seq.erase();
92  m_set_State[0] &= ~0xc000;
93 }
94 
96 {
97  if ( !m_Param ) {
98  m_Param.Reset(new TParam());
99  return;
100  }
101  (*m_Param).Reset();
102 }
103 
105 {
106  m_Param.Reset(&value);
107 }
108 
110 {
111  m_Iterations.clear();
112  m_set_State[0] &= ~0xc0000;
113 }
114 
116 {
117  m_Mbstat.Reset();
118 }
119 
121 {
122  m_Mbstat.Reset(&value);
123 }
124 
126 {
127  if ( !m_Mbstat )
128  m_Mbstat.Reset(new TMbstat());
129  return (*m_Mbstat);
130 }
131 
133 {
134  ResetProgram();
135  ResetVersion();
136  ResetReference();
137  ResetDb();
138  ResetQuery_ID();
139  ResetQuery_def();
140  ResetQuery_len();
141  ResetQuery_seq();
142  ResetParam();
143  ResetIterations();
144  ResetMbstat();
145 }
146 
148 {
149  SET_CLASS_MODULE("NCBI-BlastOutput");
150  ADD_NAMED_STD_MEMBER("program", m_Program)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
151  ADD_NAMED_STD_MEMBER("version", m_Version)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
152  ADD_NAMED_STD_MEMBER("reference", m_Reference)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
153  ADD_NAMED_STD_MEMBER("db", m_Db)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
154  ADD_NAMED_STD_MEMBER("query-ID", m_Query_ID)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
155  ADD_NAMED_STD_MEMBER("query-def", m_Query_def)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
156  ADD_NAMED_STD_MEMBER("query-len", m_Query_len)->SetSetFlag(MEMBER_PTR(m_set_State[0]));
157  ADD_NAMED_STD_MEMBER("query-seq", m_Query_seq)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional();
158  ADD_NAMED_REF_MEMBER("param", m_Param, CParameters);
159  ADD_NAMED_MEMBER("iterations", m_Iterations, STL_list, (STL_CRef, (CLASS, (CIteration))))->SetSetFlag(MEMBER_PTR(m_set_State[0]));
160  ADD_NAMED_REF_MEMBER("mbstat", m_Mbstat, CStatistics)->SetOptional();
161  info->RandomOrder();
162  info->CodeVersion(22400);
163  info->DataSpec(ncbi::EDataSpec::eASN);
164 }
166 
167 // constructor
169  : m_Query_len(0)
170 {
171  memset(m_set_State,0,sizeof(m_set_State));
172  if ( !IsAllocatedInPool() ) {
173  ResetParam();
174  }
175 }
176 
177 // destructor
179 {
180 }
181 
182 
183 
184 END_objects_SCOPE // namespace ncbi::objects::
185 
187 
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("BlastOutput", CBlastOutput)
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CBlastOutput –.
Definition: BlastOutput.hpp:66
CIteration –.
Definition: Iteration.hpp:66
CParameters –.
Definition: Parameters.hpp:66
CStatistics –.
Definition: Statistics.hpp:66
#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 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 ResetQuery_def(void)
Reset Query_def data member.
void ResetIterations(void)
Reset Iterations data member.
void ResetVersion(void)
Reset Version data member.
TParam & SetParam(void)
Assign a value to Param data member.
CParameters TParam
void ResetDb(void)
Reset Db data member.
void ResetQuery_len(void)
Reset Query_len data member.
void ResetQuery_ID(void)
Reset Query_ID data member.
CRef< TMbstat > m_Mbstat
CStatistics TMbstat
virtual void Reset(void)
Reset the whole object.
void ResetMbstat(void)
Reset Mbstat data member.
list< CRef< CIteration > > m_Iterations
void ResetQuery_seq(void)
Reset Query_seq data member.
void ResetProgram(void)
Reset Program data member.
void ResetParam(void)
Reset Param data member.
CRef< TParam > m_Param
virtual ~CBlastOutput_Base(void)
TMbstat & SetMbstat(void)
Assign a value to Mbstat data member.
void ResetReference(void)
Reset Reference data member.
static MDB_envinfo info
Definition: mdb_load.c:37
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Sun Jul 14 04:54:37 2024 by modify_doxy.py rev. 669887