AppFwk : Add disableIO() to PdmXmlFieldHandle

This commit is contained in:
Magne Sjaastad 2017-10-03 15:23:44 +02:00
parent 6ca1ef6653
commit 64a8a07f6a
2 changed files with 11 additions and 0 deletions

View File

@ -40,6 +40,15 @@ PdmXmlFieldHandle::PdmXmlFieldHandle(PdmFieldHandle* owner, bool giveOwnership)
owner->addCapability(this, giveOwnership); owner->addCapability(this, giveOwnership);
} }
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void PdmXmlFieldHandle::disableIO()
{
setIOReadable(false);
setIOWritable(false);
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// Returns the classKeyword of the child class type, if this field is supposed to contain pointers /// Returns the classKeyword of the child class type, if this field is supposed to contain pointers
/// to PdmObjectHandle derived onbjects. /// to PdmObjectHandle derived onbjects.

View File

@ -30,6 +30,8 @@ public:
bool isIOReadable() const { return m_isIOReadable; } bool isIOReadable() const { return m_isIOReadable; }
bool isIOWritable() const { return m_isIOWritable; } bool isIOWritable() const { return m_isIOWritable; }
void disableIO();
void setIOWritable(bool isWritable) { m_isIOWritable = isWritable; } void setIOWritable(bool isWritable) { m_isIOWritable = isWritable; }
void setIOReadable(bool isReadable) { m_isIOReadable = isReadable; } void setIOReadable(bool isReadable) { m_isIOReadable = isReadable; }