41 #ifndef msbuild__BUILD_SYSTEM_PROJECT_TREE_BUILDER_MSBUILD_CONTENT_BASE_HPP
42 #define msbuild__BUILD_SYSTEM_PROJECT_TREE_BUILDER_MSBUILD_CONTENT_BASE_HPP
51 #ifndef BEGIN_msbuild_SCOPE
52 # define BEGIN_msbuild_SCOPE BEGIN_SCOPE(msbuild)
53 # define END_msbuild_SCOPE END_SCOPE(msbuild)
74 typedef NCBI_NS_NCBI::CSerialObject
Tparent;
89 class C_Attlist :
public NCBI_NS_NCBI::CSerialObject
91 typedef NCBI_NS_NCBI::CSerialObject
Tparent;
435 NCBI_NS_NCBI::CObjectMemoryPool* pool);
763 NCBI_NS_NCBI::CUnionBuffer<NCBI_NS_STD::string>
m_string;
833 typedef NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< C_E_Content > >
TContent;
915 virtual void Reset(
void);
926 NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< C_E_Content > >
m_Content;
947 return IsSetInclude();
953 if (!CanGetInclude()) {
969 m_Include = std::forward<CContent_Base::C_Attlist::TInclude>(
value);
977 if (!IsSetInclude()) {
978 m_Include = UnassignedString();
994 return IsSetCondition();
1000 if (!CanGetCondition()) {
1009 m_Condition =
value;
1016 m_Condition = std::forward<CContent_Base::C_Attlist::TCondition>(
value);
1024 if (!IsSetCondition()) {
1025 m_Condition = UnassignedString();
1041 return IsSetExclude();
1047 if (!CanGetExclude()) {
1063 m_Exclude = std::forward<CContent_Base::C_Attlist::TExclude>(
value);
1071 if (!IsSetExclude()) {
1072 m_Exclude = UnassignedString();
1088 return IsSetRemove();
1094 if (!CanGetRemove()) {
1110 m_Remove = std::forward<CContent_Base::C_Attlist::TRemove>(
value);
1118 if (!IsSetRemove()) {
1119 m_Remove = UnassignedString();
1135 return IsSetLabel();
1141 if (!CanGetLabel()) {
1157 m_Label = std::forward<CContent_Base::C_Attlist::TLabel>(
value);
1165 if (!IsSetLabel()) {
1166 m_Label = UnassignedString();
1182 if ( m_choice != index )
1183 ThrowInvalidSelection(index);
1192 DoSelect(index, pool);
1199 Select(index, reset, 0);
1205 return m_choice == e_DependentUpon;
1211 CheckSelected(e_DependentUpon);
1225 return m_choice == e_Generator;
1231 CheckSelected(e_Generator);
1245 return m_choice == e_LastGenOutput;
1251 CheckSelected(e_LastGenOutput);
1265 return m_choice == e_CustomToolNamespace;
1271 CheckSelected(e_CustomToolNamespace);
1285 return m_choice == e_Link;
1291 CheckSelected(e_Link);
1305 return m_choice == e_Group;
1311 CheckSelected(e_Group);
1325 return m_choice == e_PublishState;
1331 CheckSelected(e_PublishState);
1345 return m_choice == e_IsAssembly;
1351 CheckSelected(e_IsAssembly);
1365 return m_choice == e_Visible;
1371 CheckSelected(e_Visible);
1385 return m_choice == e_SubType;
1391 CheckSelected(e_SubType);
1405 return m_choice == e_CopyToOutputDirectory;
1411 CheckSelected(e_CopyToOutputDirectory);
1425 return m_DGLCLGPIV.NotEmpty();
1437 if ( !m_DGLCLGPIV ) {
1440 return (*m_DGLCLGPIV);
1446 if ( !m_DGLCLGPIV ) {
1449 return (*m_DGLCLGPIV);
#define END_msbuild_SCOPE
#define BEGIN_msbuild_SCOPE
Files that are not compiled, but may be embedded or published.
Files that are not compiled, but may be embedded or published.
uint32_t Uint4
4-byte (32-bit) unsigned integer
const TGenerator & GetGenerator(void) const
Get the variant data.
const TSubType & GetSubType(void) const
Get the variant data.
void ResetSelection(void)
Reset the selection (set it to e_not_set).
NCBI_NS_STD::string m_Exclude
void ResetRemove(void)
Reset Remove data member.
NCBI_NS_STD::string TVisible
const TLabel & GetLabel(void) const
Get the Label member data.
static const char *const sm_SelectionNames[]
NCBI_NS_STD::string TCondition
void Reset(void)
Reset the whole object.
C_E_Content(const C_E_Content &)
bool IsLink(void) const
Check if variant Link is selected.
bool IsIsAssembly(void) const
Check if variant IsAssembly is selected.
void Reset(void)
Reset the whole object.
void ResetAttlist(void)
Reset Attlist data member.
TExclude & SetExclude(void)
Assign a value to Exclude data member.
const TVisible & GetVisible(void) const
Get the variant data.
Tparent::CMemberIndex< E_memberIndex, 6 > TmemberIndex
bool CanGetLabel(void) const
Check if it is safe to call GetLabel method.
NCBI_NS_NCBI::CSerialObject Tparent
const TCondition & GetCondition(void) const
Get the Condition member data.
const TDGLCLGPIV & GetDGLCLGPIV(void) const
Get the DGLCLGPIV member data.
TLink & SetLink(void)
Select the variant.
const TCustomToolNamespace & GetCustomToolNamespace(void) const
Get the variant data.
NCBI_NS_STD::string m_Remove
const TRemove & GetRemove(void) const
Get the Remove member data.
void * m_dummy_pointer_for_alignment
TGenerator & SetGenerator(void)
Select the variant.
bool IsCopyToOutputDirectory(void) const
Check if variant CopyToOutputDirectory is selected.
TRemove & SetRemove(void)
Assign a value to Remove data member.
TLabel & SetLabel(void)
Assign a value to Label data member.
NCBI_NS_STD::string TCustomToolNamespace
void DoSelect(E_Choice index, NCBI_NS_NCBI::CObjectMemoryPool *pool=0)
NCBI_NS_STD::string TPublishState
void Select(E_Choice index, NCBI_NS_NCBI::EResetVariant reset=NCBI_NS_NCBI::eDoResetVariant)
Select the requested variant if needed.
TLastGenOutput & SetLastGenOutput(void)
Select the variant.
bool IsSetDGLCLGPIV(void) const
Check if a value has been assigned to DGLCLGPIV data member.
bool IsDependentUpon(void) const
Check if variant DependentUpon is selected.
void ResetExclude(void)
Reset Exclude data member.
const TCopyToOutputDirectory & GetCopyToOutputDirectory(void) const
Get the variant data.
bool IsSetContent(void) const
Check if a value has been assigned to Content data member.
TIsAssembly & SetIsAssembly(void)
Select the variant.
NCBI_NS_STD::string TLastGenOutput
virtual ~CContent_Base(void)
bool CanGetRemove(void) const
Check if it is safe to call GetRemove method.
DECLARE_INTERNAL_TYPE_INFO()
bool CanGetInclude(void) const
Check if it is safe to call GetInclude method.
bool IsSetCondition(void) const
Optional expression evaluated to determine whether the items should be evaluated Check if a value has...
NCBI_NS_STD::string TSubType
static NCBI_NS_STD::string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
TInclude & SetInclude(void)
Assign a value to Include data member.
TPublishState & SetPublishState(void)
Select the variant.
TGroup & SetGroup(void)
Select the variant.
TDGLCLGPIV & SetDGLCLGPIV(void)
Assign a value to DGLCLGPIV data member.
bool IsSubType(void) const
Check if variant SubType is selected.
NCBI_NS_STD::string TGroup
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
const TPublishState & GetPublishState(void) const
Get the variant data.
E_Choice Which(void) const
Which variant is currently selected.
void ResetDGLCLGPIV(void)
Reset DGLCLGPIV data member.
bool IsGroup(void) const
Check if variant Group is selected.
C_Attlist & operator=(const C_Attlist &)
NCBI_NS_STD::string TCopyToOutputDirectory
bool IsSetInclude(void) const
redefine Include just to give a specific description Check if a value has been assigned to Include da...
const TDependentUpon & GetDependentUpon(void) const
Get the variant data.
NCBI_NS_STD::string TDependentUpon
virtual void Reset(void)
Reset the whole object.
const TLink & GetLink(void) const
Get the variant data.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
const TIsAssembly & GetIsAssembly(void) const
Get the variant data.
const TExclude & GetExclude(void) const
Get the Exclude member data.
void Reset(void)
Reset the whole object.
NCBI_NS_NCBI::CSerialObject Tparent
NCBI_NS_NCBI::CSerialObject Tparent
TDependentUpon & SetDependentUpon(void)
Select the variant.
TCustomToolNamespace & SetCustomToolNamespace(void)
Select the variant.
const TContent & GetContent(void) const
Get the Content member data.
void ResetLabel(void)
Reset Label data member.
C_E_Content & operator=(const C_E_Content &)
TContent & SetContent(void)
Assign a value to Content data member.
DECLARE_INTERNAL_TYPE_INFO()
const TGroup & GetGroup(void) const
Get the variant data.
NCBI_NS_STD::string TLabel
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
C_DGLCLGPIV & operator=(const C_DGLCLGPIV &)
bool IsSetRemove(void) const
Semi-colon separated list of files (wildcards are allowed) or other item names to remove from the exi...
NCBI_NS_STD::string m_Condition
NCBI_NS_STD::string TInclude
bool IsSetLabel(void) const
Optional expression.
CContent_Base(const CContent_Base &)
TCopyToOutputDirectory & SetCopyToOutputDirectory(void)
Select the variant.
void ResetCondition(void)
Reset Condition data member.
bool CanGetContent(void) const
Check if it is safe to call GetContent method.
bool IsSetExclude(void) const
Semi-colon separated list of files (wildcards are allowed) or other item names to exclude from the In...
DECLARE_INTERNAL_TYPE_INFO()
bool CanGetDGLCLGPIV(void) const
Check if it is safe to call GetDGLCLGPIV method.
C_Attlist(const C_Attlist &)
bool IsLastGenOutput(void) const
Check if variant LastGenOutput is selected.
bool IsCustomToolNamespace(void) const
Check if variant CustomToolNamespace is selected.
C_DGLCLGPIV(const C_DGLCLGPIV &)
NCBI_NS_STD::string TGenerator
NCBI_NS_STD::string TRemove
NCBI_NS_STD::string TIsAssembly
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
CContent_Base & operator=(const CContent_Base &)
TVisible & SetVisible(void)
Select the variant.
bool IsVisible(void) const
Check if variant Visible is selected.
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
TSubType & SetSubType(void)
Select the variant.
NCBI_NS_STD::string m_Label
NCBI_NS_NCBI::CRef< TAttlist > m_Attlist
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
NCBI_NS_NCBI::CSerialObject Tparent
DECLARE_INTERNAL_TYPE_INFO()
NCBI_NS_NCBI::CRef< TDGLCLGPIV > m_DGLCLGPIV
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< C_E_Content > > m_Content
const TInclude & GetInclude(void) const
Get the Include member data.
bool IsPublishState(void) const
Check if variant PublishState is selected.
bool IsGenerator(void) const
Check if variant Generator is selected.
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
NCBI_NS_STD::string m_Include
const TLastGenOutput & GetLastGenOutput(void) const
Get the variant data.
bool CanGetCondition(void) const
Check if it is safe to call GetCondition method.
TCondition & SetCondition(void)
Assign a value to Condition data member.
bool CanGetExclude(void) const
Check if it is safe to call GetExclude method.
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< C_E_Content > > TContent
NCBI_NS_STD::string TExclude
void ResetContent(void)
Reset Content data member.
void ResetInclude(void)
Reset Include data member.
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
Tparent::CMemberIndex< E_memberIndex, 2 > TmemberIndex
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
NCBI_NS_STD::string TLink
@ e_not_set
No variant selected.
@ e_PublishState
Default, Included, Excluded, DataFile, or Prerequisite.
@ e_Visible
Display in user interface (optional, boolean)
@ e_Generator
Name of any file generator that is run on this item.
@ e_CopyToOutputDirectory
Copy file to output directory (optional, boolean, default false)
@ e_Link
Notional path within project to display if the file is physically located outside of the project file...
@ e_MaxChoice
== e_CopyToOutputDirectory+1