mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fwk: Added convenience methods to access the ui/xml capabilities in objects
This commit is contained in:
@@ -229,6 +229,16 @@ bool PdmXmlObjectHandle::isValidXmlElementName(const QString& name)
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Implementation of xmlCapability() defined in cafPdmObjectHandle.h
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
PdmXmlObjectHandle* PdmObjectHandle::xmlCapability()
|
||||
{
|
||||
PdmXmlObjectHandle* xmlField = capability<PdmXmlObjectHandle>();
|
||||
assert(xmlField);
|
||||
|
||||
return xmlField;
|
||||
}
|
||||
|
||||
|
||||
} // end namespace caf
|
||||
|
||||
Reference in New Issue
Block a user