NCBI C++ ToolKit
Manifest_.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
43 BEGIN_msbuild_SCOPE // namespace msbuild::
44 
45 
46 // generated classes
47 
49 {
50  m_Condition.erase();
51  m_set_State[0] &= ~0x3;
52 }
53 
55 {
56  m_Include.erase();
57  m_set_State[0] &= ~0xc;
58 }
59 
61 {
62  m_Exclude.erase();
63  m_set_State[0] &= ~0x30;
64 }
65 
67 {
68  m_Remove.erase();
69  m_set_State[0] &= ~0xc0;
70 }
71 
73 {
74  m_Label.erase();
75  m_set_State[0] &= ~0x300;
76 }
77 
79 {
80  ResetCondition();
81  ResetInclude();
82  ResetExclude();
83  ResetRemove();
84  ResetLabel();
85 }
86 
88 {
89  SET_INTERNAL_NAME("Manifest", "Attlist");
90  SET_CLASS_MODULE("msbuild_dataobj");
91  ADD_NAMED_STD_MEMBER("Condition", m_Condition)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
92  ADD_NAMED_STD_MEMBER("Include", m_Include)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
93  ADD_NAMED_STD_MEMBER("Exclude", m_Exclude)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
94  ADD_NAMED_STD_MEMBER("Remove", m_Remove)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
95  ADD_NAMED_STD_MEMBER("Label", m_Label)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
96  info->SetRandomOrder(true);
97  info->CodeVersion(22301);
98  info->DataSpec(ncbi::EDataSpec::eXSD);
99 }
101 
102 // constructor
104 {
105  memset(m_set_State,0,sizeof(m_set_State));
106 }
107 
108 // destructor
110 {
111 }
112 
113 
115 {
116  if ( m_choice != e_not_set )
117  ResetSelection();
118 }
119 
121 {
122  switch ( m_choice ) {
123  case e_AssemblyIdentity:
124  case e_AdditionalManifestFiles:
125  case e_InputResourceManifests:
126  case e_EnableDPIAwareness:
127  case e_TypeLibraryFile:
128  case e_OutputManifestFile:
129  case e_SuppressStartupBanner:
130  case e_VerboseOutput:
131  case e_ResourceOutputFileName:
132  case e_GenerateCatalogFiles:
133  case e_DependencyInformationFile:
134  case e_ManifestFromManagedAssembly:
135  case e_SuppressDependencyElement:
136  case e_GenerateCategoryTags:
137  case e_RegistrarScriptFile:
138  case e_ComponentFileName:
139  case e_ReplacementsFile:
140  case e_UpdateFileHashesSearchPath:
141  case e_AdditionalOptions:
142  case e_OutputResourceManifests:
143  m_string.Destruct();
144  break;
145  default:
146  break;
147  }
148  m_choice = e_not_set;
149 }
150 
151 void CManifest_Base::C_E_Manifest::DoSelect(E_Choice index, NCBI_NS_NCBI::CObjectMemoryPool* )
152 {
153  switch ( index ) {
154  case e_AssemblyIdentity:
155  case e_AdditionalManifestFiles:
156  case e_InputResourceManifests:
157  case e_EnableDPIAwareness:
158  case e_TypeLibraryFile:
159  case e_OutputManifestFile:
160  case e_SuppressStartupBanner:
161  case e_VerboseOutput:
162  case e_ResourceOutputFileName:
163  case e_GenerateCatalogFiles:
164  case e_DependencyInformationFile:
165  case e_ManifestFromManagedAssembly:
166  case e_SuppressDependencyElement:
167  case e_GenerateCategoryTags:
168  case e_RegistrarScriptFile:
169  case e_ComponentFileName:
170  case e_ReplacementsFile:
171  case e_UpdateFileHashesSearchPath:
172  case e_AdditionalOptions:
173  case e_OutputResourceManifests:
174  m_string.Construct();
175  break;
176  default:
177  break;
178  }
179  m_choice = index;
180 }
181 
183  "not set",
184  "AssemblyIdentity",
185  "AdditionalManifestFiles",
186  "InputResourceManifests",
187  "EnableDPIAwareness",
188  "TypeLibraryFile",
189  "OutputManifestFile",
190  "SuppressStartupBanner",
191  "VerboseOutput",
192  "ResourceOutputFileName",
193  "GenerateCatalogFiles",
194  "DependencyInformationFile",
195  "ManifestFromManagedAssembly",
196  "SuppressDependencyElement",
197  "GenerateCategoryTags",
198  "RegistrarScriptFile",
199  "ComponentFileName",
200  "ReplacementsFile",
201  "UpdateFileHashesSearchPath",
202  "AdditionalOptions",
203  "OutputResourceManifests"
204 };
205 
207 {
208  return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames, sizeof(sm_SelectionNames)/sizeof(sm_SelectionNames[0]));
209 }
210 
212 {
213  throw NCBI_NS_NCBI::CInvalidChoiceSelection(DIAG_COMPILE_INFO, this, m_choice, index, sm_SelectionNames, sizeof(sm_SelectionNames)/sizeof(sm_SelectionNames[0]));
214 }
215 
217 {
218  Select(e_AssemblyIdentity, NCBI_NS_NCBI::eDoNotResetVariant);
219  *m_string = value;
220 }
221 
223 {
224  Select(e_AdditionalManifestFiles, NCBI_NS_NCBI::eDoNotResetVariant);
225  *m_string = value;
226 }
227 
229 {
230  Select(e_InputResourceManifests, NCBI_NS_NCBI::eDoNotResetVariant);
231  *m_string = value;
232 }
233 
235 {
236  Select(e_EnableDPIAwareness, NCBI_NS_NCBI::eDoNotResetVariant);
237  *m_string = value;
238 }
239 
241 {
242  Select(e_TypeLibraryFile, NCBI_NS_NCBI::eDoNotResetVariant);
243  *m_string = value;
244 }
245 
247 {
248  Select(e_OutputManifestFile, NCBI_NS_NCBI::eDoNotResetVariant);
249  *m_string = value;
250 }
251 
253 {
254  Select(e_SuppressStartupBanner, NCBI_NS_NCBI::eDoNotResetVariant);
255  *m_string = value;
256 }
257 
259 {
260  Select(e_VerboseOutput, NCBI_NS_NCBI::eDoNotResetVariant);
261  *m_string = value;
262 }
263 
265 {
266  Select(e_ResourceOutputFileName, NCBI_NS_NCBI::eDoNotResetVariant);
267  *m_string = value;
268 }
269 
271 {
272  Select(e_GenerateCatalogFiles, NCBI_NS_NCBI::eDoNotResetVariant);
273  *m_string = value;
274 }
275 
277 {
278  Select(e_DependencyInformationFile, NCBI_NS_NCBI::eDoNotResetVariant);
279  *m_string = value;
280 }
281 
283 {
284  Select(e_ManifestFromManagedAssembly, NCBI_NS_NCBI::eDoNotResetVariant);
285  *m_string = value;
286 }
287 
289 {
290  Select(e_SuppressDependencyElement, NCBI_NS_NCBI::eDoNotResetVariant);
291  *m_string = value;
292 }
293 
295 {
296  Select(e_GenerateCategoryTags, NCBI_NS_NCBI::eDoNotResetVariant);
297  *m_string = value;
298 }
299 
301 {
302  Select(e_RegistrarScriptFile, NCBI_NS_NCBI::eDoNotResetVariant);
303  *m_string = value;
304 }
305 
307 {
308  Select(e_ComponentFileName, NCBI_NS_NCBI::eDoNotResetVariant);
309  *m_string = value;
310 }
311 
313 {
314  Select(e_ReplacementsFile, NCBI_NS_NCBI::eDoNotResetVariant);
315  *m_string = value;
316 }
317 
319 {
320  Select(e_UpdateFileHashesSearchPath, NCBI_NS_NCBI::eDoNotResetVariant);
321  *m_string = value;
322 }
323 
325 {
326  Select(e_AdditionalOptions, NCBI_NS_NCBI::eDoNotResetVariant);
327  *m_string = value;
328 }
329 
331 {
332  Select(e_OutputResourceManifests, NCBI_NS_NCBI::eDoNotResetVariant);
333  *m_string = value;
334 }
335 
336 // helper methods
337 
338 // type info
340 {
341  SET_INTERNAL_NAME("Manifest.Manifest", "E");
342  SET_CHOICE_MODULE("msbuild_dataobj");
343  SET_NAMESPACE("http://schemas.microsoft.com/developer/msbuild/2003")->SetNsQualified(true);
344  ADD_NAMED_BUF_CHOICE_VARIANT("AssemblyIdentity", m_string, STD, (NCBI_NS_STD::string));
345  ADD_NAMED_BUF_CHOICE_VARIANT("AdditionalManifestFiles", m_string, STD, (NCBI_NS_STD::string));
346  ADD_NAMED_BUF_CHOICE_VARIANT("InputResourceManifests", m_string, STD, (NCBI_NS_STD::string));
347  ADD_NAMED_BUF_CHOICE_VARIANT("EnableDPIAwareness", m_string, STD, (NCBI_NS_STD::string));
348  ADD_NAMED_BUF_CHOICE_VARIANT("TypeLibraryFile", m_string, STD, (NCBI_NS_STD::string));
349  ADD_NAMED_BUF_CHOICE_VARIANT("OutputManifestFile", m_string, STD, (NCBI_NS_STD::string));
350  ADD_NAMED_BUF_CHOICE_VARIANT("SuppressStartupBanner", m_string, STD, (NCBI_NS_STD::string));
351  ADD_NAMED_BUF_CHOICE_VARIANT("VerboseOutput", m_string, STD, (NCBI_NS_STD::string));
352  ADD_NAMED_BUF_CHOICE_VARIANT("ResourceOutputFileName", m_string, STD, (NCBI_NS_STD::string));
353  ADD_NAMED_BUF_CHOICE_VARIANT("GenerateCatalogFiles", m_string, STD, (NCBI_NS_STD::string));
354  ADD_NAMED_BUF_CHOICE_VARIANT("DependencyInformationFile", m_string, STD, (NCBI_NS_STD::string));
355  ADD_NAMED_BUF_CHOICE_VARIANT("ManifestFromManagedAssembly", m_string, STD, (NCBI_NS_STD::string));
356  ADD_NAMED_BUF_CHOICE_VARIANT("SuppressDependencyElement", m_string, STD, (NCBI_NS_STD::string));
357  ADD_NAMED_BUF_CHOICE_VARIANT("GenerateCategoryTags", m_string, STD, (NCBI_NS_STD::string));
358  ADD_NAMED_BUF_CHOICE_VARIANT("RegistrarScriptFile", m_string, STD, (NCBI_NS_STD::string));
359  ADD_NAMED_BUF_CHOICE_VARIANT("ComponentFileName", m_string, STD, (NCBI_NS_STD::string));
360  ADD_NAMED_BUF_CHOICE_VARIANT("ReplacementsFile", m_string, STD, (NCBI_NS_STD::string));
361  ADD_NAMED_BUF_CHOICE_VARIANT("UpdateFileHashesSearchPath", m_string, STD, (NCBI_NS_STD::string));
362  ADD_NAMED_BUF_CHOICE_VARIANT("AdditionalOptions", m_string, STD, (NCBI_NS_STD::string));
363  ADD_NAMED_BUF_CHOICE_VARIANT("OutputResourceManifests", m_string, STD, (NCBI_NS_STD::string));
364  info->CodeVersion(22301);
365  info->DataSpec(ncbi::EDataSpec::eXSD);
366 }
368 
369 // constructor
371  : m_choice(e_not_set)
372 {
373 }
374 
375 // destructor
377 {
378  Reset();
379 }
380 
381 
383 {
384  if ( !m_Attlist ) {
385  m_Attlist.Reset(new TAttlist());
386  return;
387  }
388  (*m_Attlist).Reset();
389 }
390 
392 {
393  m_Attlist.Reset(&value);
394 }
395 
397 {
398  m_Manifest.clear();
399  m_set_State[0] &= ~0xc;
400 }
401 
403 {
404  ResetAttlist();
405  ResetManifest();
406 }
407 
409 {
410  SET_CLASS_MODULE("msbuild_dataobj");
411  SET_NAMESPACE("http://schemas.microsoft.com/developer/msbuild/2003")->SetNsQualified(true);
412  ADD_NAMED_REF_MEMBER("Attlist", m_Attlist, C_Attlist)->SetAttlist();
413  ADD_NAMED_MEMBER("Manifest", m_Manifest, STL_list, (STL_CRef, (CLASS, (C_E_Manifest))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNotag();
414  info->RandomOrder();
415  info->CodeVersion(22301);
416  info->DataSpec(ncbi::EDataSpec::eXSD);
417 }
419 
420 // constructor
422 {
423  memset(m_set_State,0,sizeof(m_set_State));
424  if ( !IsAllocatedInPool() ) {
425  ResetAttlist();
426  }
427 }
428 
429 // destructor
431 {
432 }
433 
434 
435 
436 END_msbuild_SCOPE // namespace msbuild::
437 
#define END_msbuild_SCOPE
#define BEGIN_msbuild_SCOPE
User-defined methods of the data storage class.
BEGIN_NAMED_CLASS_INFO("", CManifest_Base::C_Attlist)
Definition: Manifest_.cpp:87
BEGIN_NAMED_BASE_CLASS_INFO("Manifest", CManifest)
Definition: Manifest_.cpp:408
BEGIN_NAMED_CHOICE_INFO("", CManifest_Base::C_E_Manifest)
Definition: Manifest_.cpp:339
NCBI modification end.
Definition: Manifest_.hpp:341
CManifest –.
Definition: Manifest.hpp:64
char value[7]
Definition: config.c:431
string
Definition: cgiapp.hpp:687
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
Definition: ncbidiag.hpp:170
#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
#define SET_NAMESPACE(name)
Definition: serialimpl.hpp:450
#define END_CHOICE_INFO
Definition: serialimpl.hpp:506
#define SET_INTERNAL_NAME(OwnerName, MemberName)
Definition: serialimpl.hpp:447
#define SET_CHOICE_MODULE(ModuleName)
Definition: serialimpl.hpp:500
#define ADD_NAMED_BUF_CHOICE_VARIANT(MemberAlias, MemberName, TypeMacro, TypeMacroArgs)
Definition: serialimpl.hpp:385
@ eDoNotResetVariant
Definition: serialbase.hpp:78
NCBI_NS_STD::string TAdditionalOptions
Definition: Manifest_.hpp:448
NCBI_NS_NCBI::CRef< TAttlist > m_Attlist
Definition: Manifest_.hpp:1106
TResourceOutputFileName & SetResourceOutputFileName(void)
Select the variant.
Definition: Manifest_.hpp:1557
NCBI_NS_STD::string TAdditionalManifestFiles
Definition: Manifest_.hpp:431
NCBI_NS_STD::string TResourceOutputFileName
Definition: Manifest_.hpp:438
TOutputManifestFile & SetOutputManifestFile(void)
Select the variant.
Definition: Manifest_.hpp:1497
TReplacementsFile & SetReplacementsFile(void)
Select the variant.
Definition: Manifest_.hpp:1717
NCBI_NS_STD::string TComponentFileName
Definition: Manifest_.hpp:445
void ResetExclude(void)
Reset Exclude data member.
Definition: Manifest_.cpp:60
NCBI_NS_STD::string TGenerateCatalogFiles
Definition: Manifest_.hpp:439
NCBI_NS_STD::string TManifestFromManagedAssembly
Definition: Manifest_.hpp:441
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< C_E_Manifest > > m_Manifest
Definition: Manifest_.hpp:1107
TOutputResourceManifests & SetOutputResourceManifests(void)
Select the variant.
Definition: Manifest_.hpp:1777
NCBI_NS_STD::string TGenerateCategoryTags
Definition: Manifest_.hpp:443
void ResetSelection(void)
Reset the selection (set it to e_not_set).
Definition: Manifest_.cpp:120
TAdditionalOptions & SetAdditionalOptions(void)
Select the variant.
Definition: Manifest_.hpp:1757
TComponentFileName & SetComponentFileName(void)
Select the variant.
Definition: Manifest_.hpp:1697
void ResetAttlist(void)
Reset Attlist data member.
Definition: Manifest_.cpp:382
void ResetInclude(void)
Reset Include data member.
Definition: Manifest_.cpp:54
static const char *const sm_SelectionNames[]
Definition: Manifest_.hpp:1004
Uint4 m_set_State[1]
Definition: Manifest_.hpp:1105
TEnableDPIAwareness & SetEnableDPIAwareness(void)
Select the variant.
Definition: Manifest_.hpp:1457
NCBI_NS_STD::string TUpdateFileHashesSearchPath
Definition: Manifest_.hpp:447
void ResetManifest(void)
Reset Manifest data member.
Definition: Manifest_.cpp:396
TInputResourceManifests & SetInputResourceManifests(void)
Select the variant.
Definition: Manifest_.hpp:1437
TGenerateCatalogFiles & SetGenerateCatalogFiles(void)
Select the variant.
Definition: Manifest_.hpp:1577
NCBI_NS_STD::string TAssemblyIdentity
Definition: Manifest_.hpp:430
static NCBI_NS_STD::string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
Definition: Manifest_.cpp:206
NCBI_NS_STD::string TVerboseOutput
Definition: Manifest_.hpp:437
void DoSelect(E_Choice index, NCBI_NS_NCBI::CObjectMemoryPool *pool=0)
Definition: Manifest_.cpp:151
NCBI_NS_STD::string TOutputManifestFile
Definition: Manifest_.hpp:435
NCBI_NS_STD::string TSuppressStartupBanner
Definition: Manifest_.hpp:436
TUpdateFileHashesSearchPath & SetUpdateFileHashesSearchPath(void)
Select the variant.
Definition: Manifest_.hpp:1737
TSuppressDependencyElement & SetSuppressDependencyElement(void)
Select the variant.
Definition: Manifest_.hpp:1637
TAssemblyIdentity & SetAssemblyIdentity(void)
Select the variant.
Definition: Manifest_.hpp:1397
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
Definition: Manifest_.hpp:1805
NCBI_NS_STD::string TReplacementsFile
Definition: Manifest_.hpp:446
TVerboseOutput & SetVerboseOutput(void)
Select the variant.
Definition: Manifest_.hpp:1537
TTypeLibraryFile & SetTypeLibraryFile(void)
Select the variant.
Definition: Manifest_.hpp:1477
NCBI_NS_STD::string TSuppressDependencyElement
Definition: Manifest_.hpp:442
NCBI_NS_STD::string m_Condition
Definition: Manifest_.hpp:328
NCBI_NS_STD::string TEnableDPIAwareness
Definition: Manifest_.hpp:433
void ResetLabel(void)
Reset Label data member.
Definition: Manifest_.cpp:72
virtual ~CManifest_Base(void)
Definition: Manifest_.cpp:430
TSuppressStartupBanner & SetSuppressStartupBanner(void)
Select the variant.
Definition: Manifest_.hpp:1517
TGenerateCategoryTags & SetGenerateCategoryTags(void)
Select the variant.
Definition: Manifest_.hpp:1657
NCBI_NS_STD::string TOutputResourceManifests
Definition: Manifest_.hpp:449
TManifestFromManagedAssembly & SetManifestFromManagedAssembly(void)
Select the variant.
Definition: Manifest_.hpp:1617
TAdditionalManifestFiles & SetAdditionalManifestFiles(void)
Select the variant.
Definition: Manifest_.hpp:1417
void Reset(void)
Reset the whole object.
Definition: Manifest_.cpp:78
TDependencyInformationFile & SetDependencyInformationFile(void)
Select the variant.
Definition: Manifest_.hpp:1597
NCBI_NS_STD::string TRegistrarScriptFile
Definition: Manifest_.hpp:444
TRegistrarScriptFile & SetRegistrarScriptFile(void)
Select the variant.
Definition: Manifest_.hpp:1677
NCBI_NS_STD::string TTypeLibraryFile
Definition: Manifest_.hpp:434
virtual void Reset(void)
Reset the whole object.
Definition: Manifest_.cpp:402
void Reset(void)
Reset the whole object.
Definition: Manifest_.cpp:114
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
Definition: Manifest_.cpp:211
void ResetRemove(void)
Reset Remove data member.
Definition: Manifest_.cpp:66
NCBI_NS_STD::string TDependencyInformationFile
Definition: Manifest_.hpp:440
C_Attlist TAttlist
Definition: Manifest_.hpp:1012
CManifest_Base(void)
Definition: Manifest_.cpp:421
void ResetCondition(void)
Reset Condition data member.
Definition: Manifest_.cpp:48
NCBI_NS_STD::string TInputResourceManifests
Definition: Manifest_.hpp:432
@ e_not_set
static MDB_envinfo info
Definition: mdb_load.c:37
Modified on Thu Dec 07 10:07:22 2023 by modify_doxy.py rev. 669887