NCBI C++ ToolKit
UsingTaskType_.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  * 'msbuild_dataobj.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 BEGIN_msbuild_SCOPE // namespace msbuild::
45 
46 
47 // generated classes
48 
50 {
51  m_Condition.erase();
52  m_set_State[0] &= ~0x3;
53 }
54 
56 {
57  m_AssemblyName.erase();
58  m_set_State[0] &= ~0xc;
59 }
60 
62 {
63  m_AssemblyFile.erase();
64  m_set_State[0] &= ~0x30;
65 }
66 
68 {
69  m_TaskName.erase();
70  m_set_State[0] &= ~0xc0;
71 }
72 
74 {
75  m_TaskFactory.erase();
76  m_set_State[0] &= ~0x300;
77 }
78 
80 {
81  ResetCondition();
82  ResetAssemblyName();
83  ResetAssemblyFile();
84  ResetTaskName();
85  ResetTaskFactory();
86 }
87 
89 {
90  SET_INTERNAL_NAME("UsingTaskType", "Attlist");
91  SET_CLASS_MODULE("msbuild_dataobj");
92  ADD_NAMED_STD_MEMBER("Condition", m_Condition)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
93  ADD_NAMED_STD_MEMBER("AssemblyName", m_AssemblyName)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
94  ADD_NAMED_STD_MEMBER("AssemblyFile", m_AssemblyFile)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
95  ADD_NAMED_STD_MEMBER("TaskName", m_TaskName)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetNsQualified(false);
96  ADD_NAMED_STD_MEMBER("TaskFactory", m_TaskFactory)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
97  info->SetRandomOrder(true);
98  info->CodeVersion(22400);
99  info->DataSpec(ncbi::EDataSpec::eXSD);
100 }
102 
103 // constructor
105 {
106  memset(m_set_State,0,sizeof(m_set_State));
107 }
108 
109 // destructor
111 {
112 }
113 
114 
116 {
119  info->CodeVersion(22400);
120  info->DataSpec(ncbi::EDataSpec::eXSD);
121 }
123 
124 
126 {
127  if ( !m_Attlist ) {
128  m_Attlist.Reset(new TAttlist());
129  return;
130  }
131  (*m_Attlist).Reset();
132 }
133 
135 {
136  m_Attlist.Reset(&value);
137 }
138 
140 {
141  m_ParameterGroup.Reset();
142 }
143 
145 {
146  m_ParameterGroup.Reset(&value);
147 }
148 
150 {
151  if ( !m_ParameterGroup )
152  m_ParameterGroup.Reset(new TParameterGroup());
153  return (*m_ParameterGroup);
154 }
155 
157 {
158  m_Task.Reset();
159 }
160 
162 {
163  m_Task.Reset(&value);
164 }
165 
167 {
168  if ( !m_Task )
169  m_Task.Reset(new TTask());
170  return (*m_Task);
171 }
172 
174 {
175  ResetAttlist();
177  ResetTask();
178 }
179 
181 {
182  SET_CLASS_MODULE("msbuild_dataobj");
183  SET_NAMESPACE("http://schemas.microsoft.com/developer/msbuild/2003")->SetNsQualified(false);
184  ADD_NAMED_REF_MEMBER("Attlist", m_Attlist, C_Attlist)->SetAttlist();
185  ADD_NAMED_REF_MEMBER("ParameterGroup", m_ParameterGroup, CParameterGroup)->SetOptional()->SetNsQualified(true);
186  ADD_NAMED_REF_MEMBER("Task", m_Task, C_Task)->SetOptional()->SetNsQualified(true);
187  info->RandomOrder();
188  info->CodeVersion(22400);
189  info->DataSpec(ncbi::EDataSpec::eXSD);
190 }
192 
193 // constructor
195 {
196  memset(m_set_State,0,sizeof(m_set_State));
197  if ( !IsAllocatedInPool() ) {
198  ResetAttlist();
199  }
200 }
201 
202 // destructor
204 {
205 }
206 
207 
208 
209 END_msbuild_SCOPE // namespace msbuild::
210 
#define END_msbuild_SCOPE
#define BEGIN_msbuild_SCOPE
User-defined methods of the data storage class.
User-defined methods of the data storage class.
SET_FULL_ALIAS
BEGIN_NAMED_BASE_CLASS_INFO("UsingTaskType", CUsingTaskType)
BEGIN_NAMED_CLASS_INFO("", CUsingTaskType_Base::C_Attlist)
CParameterGroup –.
CUsingTaskBodyType –.
CUsingTaskType –.
#define MEMBER_PTR(MemberName)
Definition: serialimpl.hpp:284
#define SET_CLASS_ALIAS_DATA_PTR
Definition: serialimpl.hpp:628
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
Definition: serialimpl.hpp:357
#define BEGIN_NESTED_ALIAS_INFO(AliasName, ClassName, RefType, RefCode)
Definition: serialimpl.hpp:597
#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 END_ALIAS_INFO
Definition: serialimpl.hpp:631
#define SET_INTERNAL_NAME(OwnerName, MemberName)
Definition: serialimpl.hpp:447
CParameterGroup TParameterGroup
void ResetTaskFactory(void)
Reset TaskFactory data member.
NCBI_NS_NCBI::CRef< TAttlist > m_Attlist
void ResetTaskName(void)
Reset TaskName data member.
void ResetAssemblyName(void)
Reset AssemblyName data member.
void ResetTask(void)
Reset Task data member.
void ResetParameterGroup(void)
Reset ParameterGroup data member.
TParameterGroup & SetParameterGroup(void)
Assign a value to ParameterGroup data member.
NCBI_NS_NCBI::CRef< TTask > m_Task
virtual void Reset(void)
Reset the whole object.
void ResetAttlist(void)
Reset Attlist data member.
void ResetCondition(void)
Reset Condition data member.
void Reset(void)
Reset the whole object.
void ResetAssemblyFile(void)
Reset AssemblyFile data member.
TTask & SetTask(void)
Assign a value to Task data member.
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
virtual ~CUsingTaskType_Base(void)
NCBI_NS_NCBI::CRef< TParameterGroup > m_ParameterGroup
static MDB_envinfo info
Definition: mdb_load.c:37
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
Modified on Tue May 07 08:17:11 2024 by modify_doxy.py rev. 669887