NCBI C++ ToolKit
Search_database_.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  * 'pepXML.xsd'.
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
44 
45 BEGIN_objects_SCOPE // namespace ncbi::objects::
46 
47 
48 // generated classes
49 
51 {
52  SET_ENUM_INTERNAL_NAME("search_database.Attlist", "type");
53  SET_ENUM_MODULE("pepXML");
54  ADD_ENUM_VALUE("AA", eAttlist_type_AA);
55  ADD_ENUM_VALUE("NA", eAttlist_type_NA);
56 }
58 
60 {
61  m_Local_path.erase();
62  m_set_State[0] &= ~0x3;
63 }
64 
66 {
67  m_URL.erase();
68  m_set_State[0] &= ~0xc;
69 }
70 
72 {
73  m_Database_name.erase();
74  m_set_State[0] &= ~0x30;
75 }
76 
78 {
79  m_Orig_database_url.erase();
80  m_set_State[0] &= ~0xc0;
81 }
82 
84 {
85  m_Database_release_date.erase();
86  m_set_State[0] &= ~0x300;
87 }
88 
90 {
91  m_Database_release_identifier.erase();
92  m_set_State[0] &= ~0xc00;
93 }
94 
96 {
97  ResetLocal_path();
98  ResetURL();
99  ResetDatabase_name();
100  ResetOrig_database_url();
101  ResetDatabase_release_date();
102  ResetDatabase_release_identifier();
103  ResetSize_in_db_entries();
104  ResetSize_of_residues();
105  ResetType();
106 }
107 
109 {
110  SET_INTERNAL_NAME("search_database", "Attlist");
111  SET_CLASS_MODULE("pepXML");
112  ADD_NAMED_STD_MEMBER("local_path", m_Local_path)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetNsQualified(false);
113  ADD_NAMED_STD_MEMBER("URL", m_URL)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
114  ADD_NAMED_STD_MEMBER("database_name", m_Database_name)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
115  ADD_NAMED_STD_MEMBER("orig_database_url", m_Orig_database_url)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
116  ADD_NAMED_STD_MEMBER("database_release_date", m_Database_release_date)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
117  ADD_NAMED_STD_MEMBER("database_release_identifier", m_Database_release_identifier)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
118  ADD_NAMED_STD_MEMBER("size_in_db_entries", m_Size_in_db_entries)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
119  ADD_NAMED_STD_MEMBER("size_of_residues", m_Size_of_residues)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
120  ADD_NAMED_ENUM_MEMBER("type", m_Type, EAttlist_type)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetNsQualified(false);
121  info->SetRandomOrder(true);
122  info->CodeVersion(22400);
123  info->DataSpec(ncbi::EDataSpec::eXSD);
124 }
126 
127 // constructor
129  : m_Size_in_db_entries(0), m_Size_of_residues(0), m_Type((EAttlist_type)(0))
130 {
131  memset(m_set_State,0,sizeof(m_set_State));
132 }
133 
134 // destructor
136 {
137 }
138 
139 
141 {
142  if ( !m_Attlist ) {
143  m_Attlist.Reset(new TAttlist());
144  return;
145  }
146  (*m_Attlist).Reset();
147 }
148 
150 {
151  m_Attlist.Reset(&value);
153 }
154 
156 {
157  ResetAttlist();
159 }
160 
162 {
163  SET_CLASS_MODULE("pepXML");
164  SET_NAMESPACE("http://regis-web.systemsbiology.net/pepXML")->SetNsQualified(true);
165  ADD_NAMED_REF_MEMBER("Attlist", m_Attlist, C_Attlist)->SetAttlist();
166  ADD_NAMED_NULL_MEMBER("search_database", null, ())->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetNotag();
167  info->RandomOrder();
168  info->CodeVersion(22400);
169  info->DataSpec(ncbi::EDataSpec::eXSD);
170 }
172 
173 // constructor
175 {
176  memset(m_set_State,0,sizeof(m_set_State));
177  if ( !IsAllocatedInPool() ) {
178  ResetAttlist();
179  }
180 }
181 
182 // destructor
184 {
185 }
186 
187 
188 
189 END_objects_SCOPE // namespace ncbi::objects::
190 
192 
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("search_database", CSearch_database)
BEGIN_NAMED_CLASS_INFO("", CSearch_database_Base::C_Attlist)
BEGIN_NAMED_ENUM_IN_INFO("", CSearch_database_Base::C_Attlist::, EAttlist_type, false)
END_ENUM_INFO
Definition: aln_errors.cpp:58
CSearch_database –.
#define MEMBER_PTR(MemberName)
Definition: serialimpl.hpp:284
#define SET_ENUM_INTERNAL_NAME(OwnerName, MemberName)
Definition: serialimpl.hpp:559
#define ADD_NAMED_NULL_MEMBER(MemberAlias, TypeMacro, TypeMacroArgs)
Definition: serialimpl.hpp:339
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
Definition: serialimpl.hpp:357
#define SET_ENUM_MODULE(ModuleName)
Definition: serialimpl.hpp:553
#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
#define SET_NAMESPACE(name)
Definition: serialimpl.hpp:450
#define ADD_NAMED_ENUM_MEMBER(MemberAlias, MemberName, EnumName)
Definition: serialimpl.hpp:351
#define ADD_ENUM_VALUE(EnumValueName, EnumValueValue)
Definition: serialimpl.hpp:562
#define SET_INTERNAL_NAME(OwnerName, MemberName)
Definition: serialimpl.hpp:447
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 ResetURL(void)
Reset URL data member.
virtual ~CSearch_database_Base(void)
void Reset(void)
Reset the whole object.
void ResetOrig_database_url(void)
Reset Orig_database_url data member.
void ResetLocal_path(void)
Reset Local_path data member.
void ResetDatabase_release_identifier(void)
Reset Database_release_identifier data member.
void ResetSearch_database(void)
Reset Search_database data member.
virtual void Reset(void)
Reset the whole object.
void ResetDatabase_release_date(void)
Reset Database_release_date data member.
void ResetDatabase_name(void)
Reset Database_name data member.
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
void ResetAttlist(void)
Reset Attlist data member.
CRef< TAttlist > m_Attlist
void SetSearch_database(void)
Set NULL data member (assign 'NULL' value to Search_database data member).
static MDB_envinfo info
Definition: mdb_load.c:37
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Fri Sep 20 14:57:24 2024 by modify_doxy.py rev. 669887