mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk : Add disableIO() to PdmXmlFieldHandle
This commit is contained in:
parent
6ca1ef6653
commit
64a8a07f6a
@ -40,6 +40,15 @@ PdmXmlFieldHandle::PdmXmlFieldHandle(PdmFieldHandle* owner, bool 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
|
||||
/// to PdmObjectHandle derived onbjects.
|
||||
|
@ -30,6 +30,8 @@ public:
|
||||
|
||||
bool isIOReadable() const { return m_isIOReadable; }
|
||||
bool isIOWritable() const { return m_isIOWritable; }
|
||||
|
||||
void disableIO();
|
||||
void setIOWritable(bool isWritable) { m_isIOWritable = isWritable; }
|
||||
void setIOReadable(bool isReadable) { m_isIOReadable = isReadable; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user