41 #ifndef msbuild__BUILD_SYSTEM_PROJECT_TREE_BUILDER_MSBUILD_PREBUILDEVENTITEM_BASE_HPP
42 #define msbuild__BUILD_SYSTEM_PROJECT_TREE_BUILDER_MSBUILD_PREBUILDEVENTITEM_BASE_HPP
51 #ifndef BEGIN_msbuild_SCOPE
52 # define BEGIN_msbuild_SCOPE BEGIN_SCOPE(msbuild)
53 # define END_msbuild_SCOPE END_SCOPE(msbuild)
73 typedef NCBI_NS_NCBI::CSerialObject
Tparent;
88 class C_Attlist :
public NCBI_NS_NCBI::CSerialObject
90 typedef NCBI_NS_NCBI::CSerialObject
Tparent;
407 NCBI_NS_NCBI::CObjectMemoryPool* pool);
483 NCBI_NS_NCBI::CUnionBuffer<NCBI_NS_STD::string>
m_string;
572 virtual void Reset(
void);
604 return IsSetCondition();
610 if (!CanGetCondition()) {
626 m_Condition = std::forward<CPreBuildEventItem_Base::C_Attlist::TCondition>(
value);
634 if (!IsSetCondition()) {
635 m_Condition = UnassignedString();
651 return IsSetInclude();
657 if (!CanGetInclude()) {
673 m_Include = std::forward<CPreBuildEventItem_Base::C_Attlist::TInclude>(
value);
681 if (!IsSetInclude()) {
682 m_Include = UnassignedString();
698 return IsSetExclude();
704 if (!CanGetExclude()) {
720 m_Exclude = std::forward<CPreBuildEventItem_Base::C_Attlist::TExclude>(
value);
728 if (!IsSetExclude()) {
729 m_Exclude = UnassignedString();
745 return IsSetRemove();
751 if (!CanGetRemove()) {
767 m_Remove = std::forward<CPreBuildEventItem_Base::C_Attlist::TRemove>(
value);
775 if (!IsSetRemove()) {
776 m_Remove = UnassignedString();
798 if (!CanGetLabel()) {
814 m_Label = std::forward<CPreBuildEventItem_Base::C_Attlist::TLabel>(
value);
823 m_Label = UnassignedString();
839 if ( m_choice != index )
840 ThrowInvalidSelection(index);
849 DoSelect(index, pool);
856 Select(index, reset, 0);
862 return m_choice == e_Message;
868 CheckSelected(e_Message);
882 return m_choice == e_Command;
888 CheckSelected(e_Command);
#define END_msbuild_SCOPE
#define BEGIN_msbuild_SCOPE
CPreBuildEventItem_Base –.
uint32_t Uint4
4-byte (32-bit) unsigned integer
const TPreBuildEventItem & GetPreBuildEventItem(void) const
Get the PreBuildEventItem member data.
void * m_dummy_pointer_for_alignment
virtual ~CPreBuildEventItem_Base(void)
C_E_PreBuildEventItem & operator=(const C_E_PreBuildEventItem &)
C_E_PreBuildEventItem(void)
const TInclude & GetInclude(void) const
Get the Include member data.
NCBI_NS_NCBI::CSerialObject Tparent
NCBI_NS_STD::string TCondition
TInclude & SetInclude(void)
Assign a value to Include data member.
bool IsSetRemove(void) const
Semi-colon separated list of files (wildcards are allowed) or other item names to remove from the exi...
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
NCBI_NS_STD::string TMessage
bool IsCommand(void) const
Check if variant Command is selected.
void Reset(void)
Reset the whole object.
void Select(E_Choice index, NCBI_NS_NCBI::EResetVariant reset=NCBI_NS_NCBI::eDoResetVariant)
Select the requested variant if needed.
bool IsSetCondition(void) const
Optional expression evaluated to determine whether the items should be evaluated Check if a value has...
bool CanGetInclude(void) const
Check if it is safe to call GetInclude method.
void ResetRemove(void)
Reset Remove data member.
TExclude & SetExclude(void)
Assign a value to Exclude data member.
bool IsSetLabel(void) const
Optional expression.
CPreBuildEventItem_Base(void)
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
const TExclude & GetExclude(void) const
Get the Exclude member data.
bool IsSetPreBuildEventItem(void) const
Check if a value has been assigned to PreBuildEventItem data member.
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
C_Attlist(const C_Attlist &)
bool CanGetCondition(void) const
Check if it is safe to call GetCondition method.
bool IsSetInclude(void) const
Semi-colon separated list of files (wildcards are allowed) or other item names to include in this ite...
NCBI_NS_STD::string TExclude
bool CanGetRemove(void) const
Check if it is safe to call GetRemove method.
const TRemove & GetRemove(void) const
Get the Remove member data.
static const char *const sm_SelectionNames[]
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
DECLARE_INTERNAL_TYPE_INFO()
NCBI_NS_NCBI::CSerialObject Tparent
void ResetAttlist(void)
Reset Attlist data member.
const TMessage & GetMessage(void) const
Get the variant data.
NCBI_NS_STD::string TCommand
void ResetCondition(void)
Reset Condition data member.
NCBI_NS_STD::string m_Remove
void ResetExclude(void)
Reset Exclude data member.
void DoSelect(E_Choice index, NCBI_NS_NCBI::CObjectMemoryPool *pool=0)
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< C_E_PreBuildEventItem > > TPreBuildEventItem
virtual void Reset(void)
Reset the whole object.
NCBI_NS_STD::string TInclude
NCBI_NS_STD::list< NCBI_NS_NCBI::CRef< C_E_PreBuildEventItem > > m_PreBuildEventItem
TMessage & SetMessage(void)
Select the variant.
~C_E_PreBuildEventItem(void)
NCBI_NS_NCBI::CRef< TAttlist > m_Attlist
TRemove & SetRemove(void)
Assign a value to Remove data member.
C_E_PreBuildEventItem C_E
bool CanGetPreBuildEventItem(void) const
Check if it is safe to call GetPreBuildEventItem method.
void ResetPreBuildEventItem(void)
Reset PreBuildEventItem data member.
static NCBI_NS_STD::string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
C_Attlist & operator=(const C_Attlist &)
C_E_PreBuildEventItem(const C_E_PreBuildEventItem &)
NCBI_NS_STD::string TLabel
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
NCBI_NS_STD::string m_Condition
bool IsSetExclude(void) const
Semi-colon separated list of files (wildcards are allowed) or other item names to exclude from the In...
NCBI_NS_STD::string m_Exclude
void ResetSelection(void)
Reset the selection (set it to e_not_set).
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
TCondition & SetCondition(void)
Assign a value to Condition data member.
void Reset(void)
Reset the whole object.
bool IsMessage(void) const
Check if variant Message is selected.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
CPreBuildEventItem_Base(const CPreBuildEventItem_Base &)
NCBI_NS_STD::string m_Label
bool CanGetExclude(void) const
Check if it is safe to call GetExclude method.
Tparent::CMemberIndex< E_memberIndex, 6 > TmemberIndex
CPreBuildEventItem_Base & operator=(const CPreBuildEventItem_Base &)
DECLARE_INTERNAL_TYPE_INFO()
void ResetInclude(void)
Reset Include data member.
bool CanGetLabel(void) const
Check if it is safe to call GetLabel method.
TLabel & SetLabel(void)
Assign a value to Label data member.
const TCommand & GetCommand(void) const
Get the variant data.
E_Choice Which(void) const
Which variant is currently selected.
TPreBuildEventItem & SetPreBuildEventItem(void)
Assign a value to PreBuildEventItem data member.
DECLARE_INTERNAL_TYPE_INFO()
void ResetLabel(void)
Reset Label data member.
NCBI_NS_NCBI::CSerialObject Tparent
NCBI_NS_STD::string m_Include
NCBI_NS_STD::string TRemove
TCommand & SetCommand(void)
Select the variant.
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
const TCondition & GetCondition(void) const
Get the Condition member data.
const TLabel & GetLabel(void) const
Get the Label member data.
@ e_MaxChoice
== e_Command+1
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value