NCBI C++ ToolKit
ClCompile_.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("ClCompile", "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  m_Condition.erase();
117  m_set_State[0] &= ~0x3;
118 }
119 
121 {
122  ResetCondition();
123 }
124 
126 {
127  SET_INTERNAL_NAME("ClCompile.ClCompile.E.PrecompiledHeader", "Attlist");
128  SET_CLASS_MODULE("msbuild_dataobj");
129  ADD_NAMED_STD_MEMBER("Condition", m_Condition)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
130  info->SetRandomOrder(true);
131  info->CodeVersion(22301);
132  info->DataSpec(ncbi::EDataSpec::eXSD);
133 }
135 
136 // constructor
138 {
139  memset(m_set_State,0,sizeof(m_set_State));
140 }
141 
142 // destructor
144 {
145 }
146 
147 
149 {
150  if ( !m_Attlist ) {
151  m_Attlist.Reset(new TAttlist());
152  return;
153  }
154  (*m_Attlist).Reset();
155 }
156 
158 {
159  m_Attlist.Reset(&value);
160 }
161 
163 {
164  m_PrecompiledHeader.erase();
165  m_set_State[0] &= ~0xc;
166 }
167 
169 {
170  ResetAttlist();
171  ResetPrecompiledHeader();
172 }
173 
175 {
176  SET_CLASS_MODULE("msbuild_dataobj");
177  SET_NAMESPACE("http://schemas.microsoft.com/developer/msbuild/2003")->SetNsQualified(true);
178  ADD_NAMED_REF_MEMBER("Attlist", m_Attlist, C_Attlist)->SetAttlist();
179  ADD_NAMED_STD_MEMBER("PrecompiledHeader", m_PrecompiledHeader)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetNotag();
180  info->RandomOrder();
181  info->CodeVersion(22301);
182  info->DataSpec(ncbi::EDataSpec::eXSD);
183 }
185 
186 // constructor
188 {
189  memset(m_set_State,0,sizeof(m_set_State));
190  if ( !IsAllocatedInPool() ) {
191  ResetAttlist();
192  }
193 }
194 
195 // destructor
197 {
198 }
199 
200 
202 {
203  m_Condition.erase();
204  m_set_State[0] &= ~0x3;
205 }
206 
208 {
209  ResetCondition();
210 }
211 
213 {
214  SET_INTERNAL_NAME("ClCompile.ClCompile.E.CompileAsManaged", "Attlist");
215  SET_CLASS_MODULE("msbuild_dataobj");
216  ADD_NAMED_STD_MEMBER("Condition", m_Condition)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNsQualified(false);
217  info->SetRandomOrder(true);
218  info->CodeVersion(22301);
219  info->DataSpec(ncbi::EDataSpec::eXSD);
220 }
222 
223 // constructor
225 {
226  memset(m_set_State,0,sizeof(m_set_State));
227 }
228 
229 // destructor
231 {
232 }
233 
234 
236 {
237  if ( !m_Attlist ) {
238  m_Attlist.Reset(new TAttlist());
239  return;
240  }
241  (*m_Attlist).Reset();
242 }
243 
245 {
246  m_Attlist.Reset(&value);
247 }
248 
250 {
251  m_CompileAsManaged.erase();
252  m_set_State[0] &= ~0xc;
253 }
254 
256 {
257  ResetAttlist();
258  ResetCompileAsManaged();
259 }
260 
262 {
263  SET_CLASS_MODULE("msbuild_dataobj");
264  SET_NAMESPACE("http://schemas.microsoft.com/developer/msbuild/2003")->SetNsQualified(true);
265  ADD_NAMED_REF_MEMBER("Attlist", m_Attlist, C_Attlist)->SetAttlist();
266  ADD_NAMED_STD_MEMBER("CompileAsManaged", m_CompileAsManaged)->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetNotag();
267  info->RandomOrder();
268  info->CodeVersion(22301);
269  info->DataSpec(ncbi::EDataSpec::eXSD);
270 }
272 
273 // constructor
275 {
276  memset(m_set_State,0,sizeof(m_set_State));
277  if ( !IsAllocatedInPool() ) {
278  ResetAttlist();
279  }
280 }
281 
282 // destructor
284 {
285 }
286 
287 
289 {
290  if ( m_choice != e_not_set )
291  ResetSelection();
292 }
293 
295 {
296  switch ( m_choice ) {
297  case e_AdditionalIncludeDirectories:
298  case e_AdditionalUsingDirectories:
299  case e_ErrorReporting:
300  case e_WarningLevel:
301  case e_MinimalRebuild:
302  case e_DebugInformationFormat:
303  case e_PreprocessorDefinitions:
304  case e_Optimization:
305  case e_BasicRuntimeChecks:
306  case e_RuntimeLibrary:
307  case e_FunctionLevelLinking:
308  case e_FloatingPointModel_:
309  case e_IntrinsicFunctions:
310  case e_PrecompiledHeaderFile:
311  case e_MultiProcessorCompilation:
312  case e_UseUnicodeForAssemblerListing:
313  case e_UndefinePreprocessorDefinitions:
314  case e_StringPooling:
315  case e_BrowseInformation:
316  case e_FloatingPointExceptions:
317  case e_CreateHotpatchableImage:
318  case e_RuntimeTypeInfo:
319  case e_OpenMPSupport:
320  case e_CallingConvention:
321  case e_DisableSpecificWarnings:
322  case e_ForcedIncludeFiles:
323  case e_ForcedUsingFiles:
324  case e_ShowIncludes:
325  case e_UseFullPaths:
326  case e_OmitDefaultLibName:
327  case e_TreatSpecificWarningsAsErrors:
328  m_string.Destruct();
329  break;
330  case e_PrecompiledHeader:
331  case e_CompileAsManaged:
332  case e_AnyContent:
333  m_object->RemoveReference();
334  break;
335  default:
336  break;
337  }
338  m_choice = e_not_set;
339 }
340 
341 void CClCompile_Base::C_E_ClCompile::DoSelect(E_Choice index, NCBI_NS_NCBI::CObjectMemoryPool* pool)
342 {
343  switch ( index ) {
344  case e_PrecompiledHeader:
345  (m_object = new(pool) C_PrecompiledHeader())->AddReference();
346  break;
347  case e_CompileAsManaged:
348  (m_object = new(pool) C_CompileAsManaged())->AddReference();
349  break;
350  case e_AnyContent:
351  (m_object = new(pool) ncbi::CAnyContentObject())->AddReference();
352  break;
353  case e_AdditionalIncludeDirectories:
354  case e_AdditionalUsingDirectories:
355  case e_ErrorReporting:
356  case e_WarningLevel:
357  case e_MinimalRebuild:
358  case e_DebugInformationFormat:
359  case e_PreprocessorDefinitions:
360  case e_Optimization:
361  case e_BasicRuntimeChecks:
362  case e_RuntimeLibrary:
363  case e_FunctionLevelLinking:
364  case e_FloatingPointModel_:
365  case e_IntrinsicFunctions:
366  case e_PrecompiledHeaderFile:
367  case e_MultiProcessorCompilation:
368  case e_UseUnicodeForAssemblerListing:
369  case e_UndefinePreprocessorDefinitions:
370  case e_StringPooling:
371  case e_BrowseInformation:
372  case e_FloatingPointExceptions:
373  case e_CreateHotpatchableImage:
374  case e_RuntimeTypeInfo:
375  case e_OpenMPSupport:
376  case e_CallingConvention:
377  case e_DisableSpecificWarnings:
378  case e_ForcedIncludeFiles:
379  case e_ForcedUsingFiles:
380  case e_ShowIncludes:
381  case e_UseFullPaths:
382  case e_OmitDefaultLibName:
383  case e_TreatSpecificWarningsAsErrors:
384  m_string.Construct();
385  break;
386  default:
387  break;
388  }
389  m_choice = index;
390 }
391 
393  "not set",
394  "PrecompiledHeader",
395  "AdditionalIncludeDirectories",
396  "AdditionalUsingDirectories",
397  "CompileAsManaged",
398  "ErrorReporting",
399  "WarningLevel",
400  "MinimalRebuild",
401  "DebugInformationFormat",
402  "PreprocessorDefinitions",
403  "Optimization",
404  "BasicRuntimeChecks",
405  "RuntimeLibrary",
406  "FunctionLevelLinking",
407  "FloatingPointModel ",
408  "IntrinsicFunctions",
409  "PrecompiledHeaderFile",
410  "MultiProcessorCompilation",
411  "UseUnicodeForAssemblerListing",
412  "UndefinePreprocessorDefinitions",
413  "StringPooling",
414  "BrowseInformation",
415  "FloatingPointExceptions",
416  "CreateHotpatchableImage",
417  "RuntimeTypeInfo",
418  "OpenMPSupport",
419  "CallingConvention",
420  "DisableSpecificWarnings",
421  "ForcedIncludeFiles",
422  "ForcedUsingFiles",
423  "ShowIncludes",
424  "UseFullPaths",
425  "OmitDefaultLibName",
426  "TreatSpecificWarningsAsErrors",
427  "AnyContent"
428 };
429 
431 {
432  return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames, sizeof(sm_SelectionNames)/sizeof(sm_SelectionNames[0]));
433 }
434 
436 {
437  throw NCBI_NS_NCBI::CInvalidChoiceSelection(DIAG_COMPILE_INFO, this, m_choice, index, sm_SelectionNames, sizeof(sm_SelectionNames)/sizeof(sm_SelectionNames[0]));
438 }
439 
441 {
442  CheckSelected(e_PrecompiledHeader);
443  return *static_cast<const TPrecompiledHeader*>(m_object);
444 }
445 
447 {
448  Select(e_PrecompiledHeader, NCBI_NS_NCBI::eDoNotResetVariant);
449  return *static_cast<TPrecompiledHeader*>(m_object);
450 }
451 
453 {
454  TPrecompiledHeader* ptr = &value;
455  if ( m_choice != e_PrecompiledHeader || m_object != ptr ) {
456  ResetSelection();
457  (m_object = ptr)->AddReference();
458  m_choice = e_PrecompiledHeader;
459  }
460 }
461 
463 {
464  Select(e_AdditionalIncludeDirectories, NCBI_NS_NCBI::eDoNotResetVariant);
465  *m_string = value;
466 }
467 
469 {
470  Select(e_AdditionalUsingDirectories, NCBI_NS_NCBI::eDoNotResetVariant);
471  *m_string = value;
472 }
473 
475 {
476  CheckSelected(e_CompileAsManaged);
477  return *static_cast<const TCompileAsManaged*>(m_object);
478 }
479 
481 {
482  Select(e_CompileAsManaged, NCBI_NS_NCBI::eDoNotResetVariant);
483  return *static_cast<TCompileAsManaged*>(m_object);
484 }
485 
487 {
488  TCompileAsManaged* ptr = &value;
489  if ( m_choice != e_CompileAsManaged || m_object != ptr ) {
490  ResetSelection();
491  (m_object = ptr)->AddReference();
492  m_choice = e_CompileAsManaged;
493  }
494 }
495 
497 {
498  Select(e_ErrorReporting, NCBI_NS_NCBI::eDoNotResetVariant);
499  *m_string = value;
500 }
501 
503 {
504  Select(e_WarningLevel, NCBI_NS_NCBI::eDoNotResetVariant);
505  *m_string = value;
506 }
507 
509 {
510  Select(e_MinimalRebuild, NCBI_NS_NCBI::eDoNotResetVariant);
511  *m_string = value;
512 }
513 
515 {
516  Select(e_DebugInformationFormat, NCBI_NS_NCBI::eDoNotResetVariant);
517  *m_string = value;
518 }
519 
521 {
522  Select(e_PreprocessorDefinitions, NCBI_NS_NCBI::eDoNotResetVariant);
523  *m_string = value;
524 }
525 
527 {
528  Select(e_Optimization, NCBI_NS_NCBI::eDoNotResetVariant);
529  *m_string = value;
530 }
531 
533 {
534  Select(e_BasicRuntimeChecks, NCBI_NS_NCBI::eDoNotResetVariant);
535  *m_string = value;
536 }
537 
539 {
540  Select(e_RuntimeLibrary, NCBI_NS_NCBI::eDoNotResetVariant);
541  *m_string = value;
542 }
543 
545 {
546  Select(e_FunctionLevelLinking, NCBI_NS_NCBI::eDoNotResetVariant);
547  *m_string = value;
548 }
549 
551 {
552  Select(e_FloatingPointModel_, NCBI_NS_NCBI::eDoNotResetVariant);
553  *m_string = value;
554 }
555 
557 {
558  Select(e_IntrinsicFunctions, NCBI_NS_NCBI::eDoNotResetVariant);
559  *m_string = value;
560 }
561 
563 {
564  Select(e_PrecompiledHeaderFile, NCBI_NS_NCBI::eDoNotResetVariant);
565  *m_string = value;
566 }
567 
569 {
570  Select(e_MultiProcessorCompilation, NCBI_NS_NCBI::eDoNotResetVariant);
571  *m_string = value;
572 }
573 
575 {
576  Select(e_UseUnicodeForAssemblerListing, NCBI_NS_NCBI::eDoNotResetVariant);
577  *m_string = value;
578 }
579 
581 {
582  Select(e_UndefinePreprocessorDefinitions, NCBI_NS_NCBI::eDoNotResetVariant);
583  *m_string = value;
584 }
585 
587 {
588  Select(e_StringPooling, NCBI_NS_NCBI::eDoNotResetVariant);
589  *m_string = value;
590 }
591 
593 {
594  Select(e_BrowseInformation, NCBI_NS_NCBI::eDoNotResetVariant);
595  *m_string = value;
596 }
597 
599 {
600  Select(e_FloatingPointExceptions, NCBI_NS_NCBI::eDoNotResetVariant);
601  *m_string = value;
602 }
603 
605 {
606  Select(e_CreateHotpatchableImage, NCBI_NS_NCBI::eDoNotResetVariant);
607  *m_string = value;
608 }
609 
611 {
612  Select(e_RuntimeTypeInfo, NCBI_NS_NCBI::eDoNotResetVariant);
613  *m_string = value;
614 }
615 
617 {
618  Select(e_OpenMPSupport, NCBI_NS_NCBI::eDoNotResetVariant);
619  *m_string = value;
620 }
621 
623 {
624  Select(e_CallingConvention, NCBI_NS_NCBI::eDoNotResetVariant);
625  *m_string = value;
626 }
627 
629 {
630  Select(e_DisableSpecificWarnings, NCBI_NS_NCBI::eDoNotResetVariant);
631  *m_string = value;
632 }
633 
635 {
636  Select(e_ForcedIncludeFiles, NCBI_NS_NCBI::eDoNotResetVariant);
637  *m_string = value;
638 }
639 
641 {
642  Select(e_ForcedUsingFiles, NCBI_NS_NCBI::eDoNotResetVariant);
643  *m_string = value;
644 }
645 
647 {
648  Select(e_ShowIncludes, NCBI_NS_NCBI::eDoNotResetVariant);
649  *m_string = value;
650 }
651 
653 {
654  Select(e_UseFullPaths, NCBI_NS_NCBI::eDoNotResetVariant);
655  *m_string = value;
656 }
657 
659 {
660  Select(e_OmitDefaultLibName, NCBI_NS_NCBI::eDoNotResetVariant);
661  *m_string = value;
662 }
663 
665 {
666  Select(e_TreatSpecificWarningsAsErrors, NCBI_NS_NCBI::eDoNotResetVariant);
667  *m_string = value;
668 }
669 
671 {
672  CheckSelected(e_AnyContent);
673  return *static_cast<const TAnyContent*>(m_object);
674 }
675 
677 {
678  Select(e_AnyContent, NCBI_NS_NCBI::eDoNotResetVariant);
679  return *static_cast<TAnyContent*>(m_object);
680 }
681 
683 {
684  TAnyContent* ptr = &value;
685  if ( m_choice != e_AnyContent || m_object != ptr ) {
686  ResetSelection();
687  (m_object = ptr)->AddReference();
688  m_choice = e_AnyContent;
689  }
690 }
691 
692 // helper methods
693 
694 // type info
696 {
697  SET_INTERNAL_NAME("ClCompile.ClCompile", "E");
698  SET_CHOICE_MODULE("msbuild_dataobj");
699  SET_NAMESPACE("http://schemas.microsoft.com/developer/msbuild/2003")->SetNsQualified(true);
700  ADD_NAMED_REF_CHOICE_VARIANT("PrecompiledHeader", m_object, C_PrecompiledHeader)->SetOptional();
701  ADD_NAMED_BUF_CHOICE_VARIANT("AdditionalIncludeDirectories", m_string, STD, (NCBI_NS_STD::string));
702  ADD_NAMED_BUF_CHOICE_VARIANT("AdditionalUsingDirectories", m_string, STD, (NCBI_NS_STD::string));
703  ADD_NAMED_REF_CHOICE_VARIANT("CompileAsManaged", m_object, C_CompileAsManaged);
704  ADD_NAMED_BUF_CHOICE_VARIANT("ErrorReporting", m_string, STD, (NCBI_NS_STD::string));
705  ADD_NAMED_BUF_CHOICE_VARIANT("WarningLevel", m_string, STD, (NCBI_NS_STD::string));
706  ADD_NAMED_BUF_CHOICE_VARIANT("MinimalRebuild", m_string, STD, (NCBI_NS_STD::string));
707  ADD_NAMED_BUF_CHOICE_VARIANT("DebugInformationFormat", m_string, STD, (NCBI_NS_STD::string));
708  ADD_NAMED_BUF_CHOICE_VARIANT("PreprocessorDefinitions", m_string, STD, (NCBI_NS_STD::string));
709  ADD_NAMED_BUF_CHOICE_VARIANT("Optimization", m_string, STD, (NCBI_NS_STD::string));
710  ADD_NAMED_BUF_CHOICE_VARIANT("BasicRuntimeChecks", m_string, STD, (NCBI_NS_STD::string));
711  ADD_NAMED_BUF_CHOICE_VARIANT("RuntimeLibrary", m_string, STD, (NCBI_NS_STD::string));
712  ADD_NAMED_BUF_CHOICE_VARIANT("FunctionLevelLinking", m_string, STD, (NCBI_NS_STD::string));
713  ADD_NAMED_BUF_CHOICE_VARIANT("FloatingPointModel ", m_string, STD, (NCBI_NS_STD::string));
714  ADD_NAMED_BUF_CHOICE_VARIANT("IntrinsicFunctions", m_string, STD, (NCBI_NS_STD::string));
715  ADD_NAMED_BUF_CHOICE_VARIANT("PrecompiledHeaderFile", m_string, STD, (NCBI_NS_STD::string));
716  ADD_NAMED_BUF_CHOICE_VARIANT("MultiProcessorCompilation", m_string, STD, (NCBI_NS_STD::string));
717  ADD_NAMED_BUF_CHOICE_VARIANT("UseUnicodeForAssemblerListing", m_string, STD, (NCBI_NS_STD::string));
718  ADD_NAMED_BUF_CHOICE_VARIANT("UndefinePreprocessorDefinitions", m_string, STD, (NCBI_NS_STD::string));
719  ADD_NAMED_BUF_CHOICE_VARIANT("StringPooling", m_string, STD, (NCBI_NS_STD::string));
720  ADD_NAMED_BUF_CHOICE_VARIANT("BrowseInformation", m_string, STD, (NCBI_NS_STD::string));
721  ADD_NAMED_BUF_CHOICE_VARIANT("FloatingPointExceptions", m_string, STD, (NCBI_NS_STD::string));
722  ADD_NAMED_BUF_CHOICE_VARIANT("CreateHotpatchableImage", m_string, STD, (NCBI_NS_STD::string));
723  ADD_NAMED_BUF_CHOICE_VARIANT("RuntimeTypeInfo", m_string, STD, (NCBI_NS_STD::string));
724  ADD_NAMED_BUF_CHOICE_VARIANT("OpenMPSupport", m_string, STD, (NCBI_NS_STD::string));
725  ADD_NAMED_BUF_CHOICE_VARIANT("CallingConvention", m_string, STD, (NCBI_NS_STD::string));
726  ADD_NAMED_BUF_CHOICE_VARIANT("DisableSpecificWarnings", m_string, STD, (NCBI_NS_STD::string));
727  ADD_NAMED_BUF_CHOICE_VARIANT("ForcedIncludeFiles", m_string, STD, (NCBI_NS_STD::string));
728  ADD_NAMED_BUF_CHOICE_VARIANT("ForcedUsingFiles", m_string, STD, (NCBI_NS_STD::string));
729  ADD_NAMED_BUF_CHOICE_VARIANT("ShowIncludes", m_string, STD, (NCBI_NS_STD::string));
730  ADD_NAMED_BUF_CHOICE_VARIANT("UseFullPaths", m_string, STD, (NCBI_NS_STD::string));
731  ADD_NAMED_BUF_CHOICE_VARIANT("OmitDefaultLibName", m_string, STD, (NCBI_NS_STD::string));
732  ADD_NAMED_BUF_CHOICE_VARIANT("TreatSpecificWarningsAsErrors", m_string, STD, (NCBI_NS_STD::string));
733  ADD_NAMED_REF_CHOICE_VARIANT("AnyContent", m_object, NCBI_NS_NCBI::CAnyContentObject)->SetNotag();
734  info->CodeVersion(22301);
735  info->DataSpec(ncbi::EDataSpec::eXSD);
736 }
738 
739 // constructor
741  : m_choice(e_not_set)
742 {
743 }
744 
745 // destructor
747 {
748  Reset();
749 }
750 
751 
753 {
754  if ( !m_Attlist ) {
755  m_Attlist.Reset(new TAttlist());
756  return;
757  }
758  (*m_Attlist).Reset();
759 }
760 
762 {
763  m_Attlist.Reset(&value);
764 }
765 
767 {
768  m_ClCompile.clear();
769  m_set_State[0] &= ~0xc;
770 }
771 
773 {
774  ResetAttlist();
775  ResetClCompile();
776 }
777 
779 {
780  SET_CLASS_MODULE("msbuild_dataobj");
781  SET_NAMESPACE("http://schemas.microsoft.com/developer/msbuild/2003")->SetNsQualified(true);
782  ADD_NAMED_REF_MEMBER("Attlist", m_Attlist, C_Attlist)->SetAttlist();
783  ADD_NAMED_MEMBER("ClCompile", m_ClCompile, STL_list, (STL_CRef, (CLASS, (C_E_ClCompile))))->SetSetFlag(MEMBER_PTR(m_set_State[0]))->SetOptional()->SetNotag();
784  info->RandomOrder();
785  info->CodeVersion(22301);
786  info->DataSpec(ncbi::EDataSpec::eXSD);
787 }
789 
790 // constructor
792 {
793  memset(m_set_State,0,sizeof(m_set_State));
794  if ( !IsAllocatedInPool() ) {
795  ResetAttlist();
796  }
797 }
798 
799 // destructor
801 {
802 }
803 
804 
805 
806 END_msbuild_SCOPE // namespace msbuild::
807 
#define END_msbuild_SCOPE
#define BEGIN_msbuild_SCOPE
User-defined methods of the data storage class.
BEGIN_NAMED_CLASS_INFO("", CClCompile_Base::C_Attlist)
Definition: ClCompile_.cpp:87
BEGIN_NAMED_CHOICE_INFO("", CClCompile_Base::C_E_ClCompile)
Definition: ClCompile_.cpp:695
BEGIN_NAMED_BASE_CLASS_INFO("ClCompile", CClCompile)
Definition: ClCompile_.cpp:778
ncbi: removed COMFileReference ncbi: removed Xdcmake ncbi: removed Bscmake
Definition: ClCompile_.hpp:345
CClCompile –.
Definition: ClCompile.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_REF_CHOICE_VARIANT(MemberAlias, MemberName, ClassName)
Definition: serialimpl.hpp:400
#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_NCBI::CAnyContentObject TAnyContent
Definition: ClCompile_.hpp:885
TBrowseInformation & SetBrowseInformation(void)
Select the variant.
NCBI_NS_STD::string TStringPooling
Definition: ClCompile_.hpp:871
TRuntimeLibrary & SetRuntimeLibrary(void)
Select the variant.
C_Attlist TAttlist
TTreatSpecificWarningsAsErrors & SetTreatSpecificWarningsAsErrors(void)
Select the variant.
TCallingConvention & SetCallingConvention(void)
Select the variant.
void ResetRemove(void)
Reset Remove data member.
Definition: ClCompile_.cpp:66
TDebugInformationFormat & SetDebugInformationFormat(void)
Select the variant.
NCBI_NS_STD::string TForcedIncludeFiles
Definition: ClCompile_.hpp:879
void ResetLabel(void)
Reset Label data member.
Definition: ClCompile_.cpp:72
NCBI_NS_STD::string TTreatSpecificWarningsAsErrors
Definition: ClCompile_.hpp:884
TFloatingPointModel_ & SetFloatingPointModel_(void)
Select the variant.
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
NCBI_NS_STD::string TUndefinePreprocessorDefinitions
Definition: ClCompile_.hpp:870
TUseUnicodeForAssemblerListing & SetUseUnicodeForAssemblerListing(void)
Select the variant.
TOptimization & SetOptimization(void)
Select the variant.
void ResetAttlist(void)
Reset Attlist data member.
Definition: ClCompile_.cpp:235
NCBI_NS_STD::string TForcedUsingFiles
Definition: ClCompile_.hpp:880
NCBI_NS_STD::string TRuntimeTypeInfo
Definition: ClCompile_.hpp:875
void DoSelect(E_Choice index, NCBI_NS_NCBI::CObjectMemoryPool *pool=0)
Definition: ClCompile_.cpp:341
void ResetInclude(void)
Reset Include data member.
Definition: ClCompile_.cpp:54
virtual ~CClCompile_Base(void)
Definition: ClCompile_.cpp:800
NCBI_NS_STD::string TDisableSpecificWarnings
Definition: ClCompile_.hpp:878
TAdditionalUsingDirectories & SetAdditionalUsingDirectories(void)
Select the variant.
NCBI_NS_STD::string TFunctionLevelLinking
Definition: ClCompile_.hpp:864
void ResetClCompile(void)
Reset ClCompile data member.
Definition: ClCompile_.cpp:766
TAdditionalIncludeDirectories & SetAdditionalIncludeDirectories(void)
Select the variant.
virtual void Reset(void)
Reset the whole object.
Definition: ClCompile_.cpp:772
void ResetAttlist(void)
Reset Attlist data member.
Definition: ClCompile_.cpp:752
const TCompileAsManaged & GetCompileAsManaged(void) const
Get the variant data.
Definition: ClCompile_.cpp:474
NCBI_NS_STD::string TPreprocessorDefinitions
Definition: ClCompile_.hpp:860
void ResetPrecompiledHeader(void)
Reset PrecompiledHeader data member.
Definition: ClCompile_.cpp:162
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< C_E_ClCompile > > m_ClCompile
void Reset(void)
Reset the whole object.
Definition: ClCompile_.cpp:288
TPrecompiledHeaderFile & SetPrecompiledHeaderFile(void)
Select the variant.
void ResetAttlist(void)
Reset Attlist data member.
Definition: ClCompile_.cpp:148
TUseFullPaths & SetUseFullPaths(void)
Select the variant.
NCBI_NS_STD::string TErrorReporting
Definition: ClCompile_.hpp:856
TCompileAsManaged & SetCompileAsManaged(void)
Select the variant.
Definition: ClCompile_.cpp:480
TOpenMPSupport & SetOpenMPSupport(void)
Select the variant.
void Reset(void)
Reset the whole object.
Definition: ClCompile_.cpp:168
NCBI_NS_STD::string TOmitDefaultLibName
Definition: ClCompile_.hpp:883
NCBI_NS_STD::string TFloatingPointExceptions
Definition: ClCompile_.hpp:873
void ResetExclude(void)
Reset Exclude data member.
Definition: ClCompile_.cpp:60
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
NCBI_NS_STD::string TBrowseInformation
Definition: ClCompile_.hpp:872
TStringPooling & SetStringPooling(void)
Select the variant.
NCBI_NS_STD::string TIntrinsicFunctions
Definition: ClCompile_.hpp:866
NCBI_NS_STD::string TUseFullPaths
Definition: ClCompile_.hpp:882
TForcedIncludeFiles & SetForcedIncludeFiles(void)
Select the variant.
NCBI_NS_STD::string TCreateHotpatchableImage
Definition: ClCompile_.hpp:874
TBasicRuntimeChecks & SetBasicRuntimeChecks(void)
Select the variant.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
Definition: ClCompile_.cpp:435
static const char *const sm_SelectionNames[]
void ResetSelection(void)
Reset the selection (set it to e_not_set).
Definition: ClCompile_.cpp:294
TDisableSpecificWarnings & SetDisableSpecificWarnings(void)
Select the variant.
NCBI_NS_STD::string TBasicRuntimeChecks
Definition: ClCompile_.hpp:862
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
NCBI_NS_STD::string TMultiProcessorCompilation
Definition: ClCompile_.hpp:868
TFunctionLevelLinking & SetFunctionLevelLinking(void)
Select the variant.
TShowIncludes & SetShowIncludes(void)
Select the variant.
void Reset(void)
Reset the whole object.
Definition: ClCompile_.cpp:78
void ResetCondition(void)
Reset Condition data member.
Definition: ClCompile_.cpp:114
NCBI_NS_STD::string TRuntimeLibrary
Definition: ClCompile_.hpp:863
TUndefinePreprocessorDefinitions & SetUndefinePreprocessorDefinitions(void)
Select the variant.
NCBI_NS_STD::string TAdditionalIncludeDirectories
Definition: ClCompile_.hpp:853
NCBI_NS_STD::string TFloatingPointModel_
Definition: ClCompile_.hpp:865
TAnyContent & SetAnyContent(void)
Select the variant.
Definition: ClCompile_.cpp:676
TPreprocessorDefinitions & SetPreprocessorDefinitions(void)
Select the variant.
static NCBI_NS_STD::string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
Definition: ClCompile_.cpp:430
NCBI_NS_STD::string TAdditionalUsingDirectories
Definition: ClCompile_.hpp:854
const TPrecompiledHeader & GetPrecompiledHeader(void) const
Get the variant data.
Definition: ClCompile_.cpp:440
NCBI_NS_STD::string TMinimalRebuild
Definition: ClCompile_.hpp:858
TMultiProcessorCompilation & SetMultiProcessorCompilation(void)
Select the variant.
NCBI_NS_STD::string m_Condition
Definition: ClCompile_.hpp:330
TForcedUsingFiles & SetForcedUsingFiles(void)
Select the variant.
NCBI_NS_STD::string TDebugInformationFormat
Definition: ClCompile_.hpp:859
TIntrinsicFunctions & SetIntrinsicFunctions(void)
Select the variant.
NCBI_NS_STD::string TWarningLevel
Definition: ClCompile_.hpp:857
const TAnyContent & GetAnyContent(void) const
Get the variant data.
Definition: ClCompile_.cpp:670
TErrorReporting & SetErrorReporting(void)
Select the variant.
void ResetCompileAsManaged(void)
Reset CompileAsManaged data member.
Definition: ClCompile_.cpp:249
NCBI_NS_STD::string TUseUnicodeForAssemblerListing
Definition: ClCompile_.hpp:869
Uint4 m_set_State[1]
TPrecompiledHeader & SetPrecompiledHeader(void)
Select the variant.
Definition: ClCompile_.cpp:446
NCBI_NS_STD::string TCallingConvention
Definition: ClCompile_.hpp:877
TRuntimeTypeInfo & SetRuntimeTypeInfo(void)
Select the variant.
TMinimalRebuild & SetMinimalRebuild(void)
Select the variant.
void ResetCondition(void)
Reset Condition data member.
Definition: ClCompile_.cpp:201
NCBI_NS_STD::string TPrecompiledHeaderFile
Definition: ClCompile_.hpp:867
NCBI_NS_STD::string TOpenMPSupport
Definition: ClCompile_.hpp:876
void ResetCondition(void)
Reset Condition data member.
Definition: ClCompile_.cpp:48
NCBI_NS_NCBI::CRef< TAttlist > m_Attlist
NCBI_NS_STD::string TOptimization
Definition: ClCompile_.hpp:861
TWarningLevel & SetWarningLevel(void)
Select the variant.
void Reset(void)
Reset the whole object.
Definition: ClCompile_.cpp:255
TCreateHotpatchableImage & SetCreateHotpatchableImage(void)
Select the variant.
TOmitDefaultLibName & SetOmitDefaultLibName(void)
Select the variant.
NCBI_NS_STD::string TShowIncludes
Definition: ClCompile_.hpp:881
TFloatingPointExceptions & SetFloatingPointExceptions(void)
Select the variant.
@ e_not_set
static MDB_envinfo info
Definition: mdb_load.c:37
Modified on Sat Dec 09 04:48:23 2023 by modify_doxy.py rev. 669887