41 #ifndef msbuild__BUILD_SYSTEM_PROJECT_TREE_BUILDER_MSBUILD_PROPERTYGROUPTYPE_BASE_HPP
42 #define msbuild__BUILD_SYSTEM_PROJECT_TREE_BUILDER_MSBUILD_PROPERTYGROUPTYPE_BASE_HPP
51 #ifndef BEGIN_msbuild_SCOPE
52 # define BEGIN_msbuild_SCOPE BEGIN_SCOPE(msbuild)
53 # define END_msbuild_SCOPE END_SCOPE(msbuild)
81 typedef NCBI_NS_NCBI::CSerialObject
Tparent;
96 class C_Attlist :
public NCBI_NS_NCBI::CSerialObject
98 typedef NCBI_NS_NCBI::CSerialObject
Tparent;
294 NCBI_NS_NCBI::CObjectMemoryPool* pool);
535 virtual void Reset(
void);
567 return IsSetCondition();
573 if (!CanGetCondition()) {
589 m_Condition = std::forward<CPropertyGroupType_Base::C_Attlist::TCondition>(
value);
597 if (!IsSetCondition()) {
598 m_Condition = UnassignedString();
620 if (!CanGetLabel()) {
636 m_Label = std::forward<CPropertyGroupType_Base::C_Attlist::TLabel>(
value);
645 m_Label = UnassignedString();
661 if ( m_choice != index )
662 ThrowInvalidSelection(index);
671 DoSelect(index, pool);
678 Select(index, reset, 0);
684 return m_choice == e_CharacterSet;
690 return m_choice == e_ConfigurationType;
696 return m_choice == e_Keyword;
702 return m_choice == e_ProjectGuid;
708 return m_choice == e_AnyContent;
#define END_msbuild_SCOPE
#define BEGIN_msbuild_SCOPE
Groups property definitions.
Groups property definitions.
uint32_t Uint4
4-byte (32-bit) unsigned integer
TKeyword & SetKeyword(void)
Select the variant.
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
CConfigurationType TConfigurationType
const TAnyContent & GetAnyContent(void) const
Get the variant data.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
NCBI_NS_NCBI::CSerialObject * m_object
E_Choice Which(void) const
Which variant is currently selected.
CProjectGuid TProjectGuid
NCBI_NS_NCBI::CAnyContentObject TAnyContent
TCondition & SetCondition(void)
Assign a value to Condition data member.
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< C_E_PropertyGroupType > > m_PropertyGroupType
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
void Reset(void)
Reset the whole object.
void Reset(void)
Reset the whole object.
NCBI_NS_STD::string TCondition
void ResetPropertyGroupType(void)
Reset PropertyGroupType data member.
NCBI_NS_NCBI::CSerialObject Tparent
TProjectGuid & SetProjectGuid(void)
Select the variant.
CPropertyGroupType_Base(const CPropertyGroupType_Base &)
NCBI_NS_STD::string TLabel
void Select(E_Choice index, NCBI_NS_NCBI::EResetVariant reset=NCBI_NS_NCBI::eDoResetVariant)
Select the requested variant if needed.
virtual ~CPropertyGroupType_Base(void)
const TKeyword & GetKeyword(void) const
Get the variant data.
const TLabel & GetLabel(void) const
Get the Label member data.
const TConfigurationType & GetConfigurationType(void) const
Get the variant data.
const TProjectGuid & GetProjectGuid(void) const
Get the variant data.
bool IsCharacterSet(void) const
Check if variant CharacterSet is selected.
DECLARE_INTERNAL_TYPE_INFO()
bool CanGetCondition(void) const
Check if it is safe to call GetCondition method.
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
C_E_PropertyGroupType(const C_E_PropertyGroupType &)
C_E_PropertyGroupType C_E
void DoSelect(E_Choice index, NCBI_NS_NCBI::CObjectMemoryPool *pool=0)
C_E_PropertyGroupType & operator=(const C_E_PropertyGroupType &)
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
void ResetSelection(void)
Reset the selection (set it to e_not_set).
TAnyContent & SetAnyContent(void)
Select the variant.
DECLARE_INTERNAL_TYPE_INFO()
bool IsConfigurationType(void) const
Check if variant ConfigurationType is selected.
NCBI_NS_NCBI::CSerialObject Tparent
bool IsAnyContent(void) const
Check if variant AnyContent is selected.
DECLARE_INTERNAL_TYPE_INFO()
static NCBI_NS_STD::string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
CPropertyGroupType_Base(void)
bool IsSetPropertyGroupType(void) const
Check if a value has been assigned to PropertyGroupType data member.
C_E_PropertyGroupType(void)
const TCharacterSet & GetCharacterSet(void) const
Get the variant data.
bool IsSetLabel(void) const
Optional expression.
bool CanGetLabel(void) const
Check if it is safe to call GetLabel method.
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< C_E_PropertyGroupType > > TPropertyGroupType
void ResetAttlist(void)
Reset Attlist data member.
bool IsKeyword(void) const
Check if variant Keyword is selected.
C_Attlist(const C_Attlist &)
bool CanGetPropertyGroupType(void) const
Check if it is safe to call GetPropertyGroupType method.
TConfigurationType & SetConfigurationType(void)
Select the variant.
CPropertyGroupType_Base & operator=(const CPropertyGroupType_Base &)
static const char *const sm_SelectionNames[]
const TCondition & GetCondition(void) const
Get the Condition member data.
TLabel & SetLabel(void)
Assign a value to Label data member.
virtual void Reset(void)
Reset the whole object.
void ResetCondition(void)
Reset Condition data member.
NCBI_NS_STD::string m_Condition
bool IsSetCondition(void) const
NCBI modification end Optional expression evaluated to determine whether the PropertyGroup should be ...
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
TPropertyGroupType & SetPropertyGroupType(void)
Assign a value to PropertyGroupType data member.
TCharacterSet & SetCharacterSet(void)
Select the variant.
NCBI_NS_NCBI::CSerialObject Tparent
bool IsProjectGuid(void) const
Check if variant ProjectGuid is selected.
const TPropertyGroupType & GetPropertyGroupType(void) const
Get the PropertyGroupType member data.
~C_E_PropertyGroupType(void)
NCBI_NS_NCBI::CRef< TAttlist > m_Attlist
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
void ResetLabel(void)
Reset Label data member.
NCBI_NS_STD::string m_Label
CCharacterSet TCharacterSet
C_Attlist & operator=(const C_Attlist &)
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
@ e_not_set
No variant selected.
@ e_AnyContent
NCBI modification begin <xs:sequence minOccurs="0" maxOccurs="unbounded"> <xs:element ref="msb:Proper...
@ e_MaxChoice
== e_AnyContent+1
const GenericPointer< typename T::ValueType > T2 value