pub struct Control<'m> { /* private fields */ }Expand description
A borrowed, release-bound view of one IfcPermit, IfcProjectOrder,
IfcActionRequest or IfcPerformanceHistory.
Implementations§
Source§impl<'m> Control<'m>
impl<'m> Control<'m>
Sourcepub fn kind(&self) -> ControlKind
pub fn kind(&self) -> ControlKind
Which of the four controls this is.
Sourcepub fn release(&self) -> SchemaVersion
pub fn release(&self) -> SchemaVersion
The release the record is read against.
Sourcepub fn declares(&self, attribute: &'static str) -> bool
pub fn declares(&self, attribute: &'static str) -> bool
Whether the release declares attribute, named by its IFC4 name as
the accessors are (Identification covers IFC2X3’s PermitID,
RequestID and ID). An undeclared attribute reads as None; this
tells it apart from one left unset.
Sourcepub fn owner_history(&self) -> Option<EntityId>
pub fn owner_history(&self) -> Option<EntityId>
OwnerHistory: optional from IFC4 on, required in IFC2X3.
Sourcepub fn description(&self) -> Option<&'m str>
pub fn description(&self) -> Option<&'m str>
Description.
Sourcepub fn object_type(&self) -> Option<&'m str>
pub fn object_type(&self) -> Option<&'m str>
ObjectType: the name a USERDEFINED predefined type stands for.
Sourcepub fn identification(&self) -> Option<&'m str>
pub fn identification(&self) -> Option<&'m str>
Identification, or the IFC2X3 identifier IFC4 renamed to it
(PermitID, RequestID, ID). IFC2X3 IfcPerformanceHistory
declares none.
Sourcepub fn predefined_type(&self) -> Option<&'m str>
pub fn predefined_type(&self) -> Option<&'m str>
The PredefinedType token without its dots, e.g. WORKORDER.
IFC2X3 declares one only for IfcProjectOrder, where it is required.
Sourcepub fn status(&self) -> Option<&'m str>
pub fn status(&self) -> Option<&'m str>
Status. Declared by neither performance history, nor in IFC2X3 by
a permit or an action request.
Sourcepub fn long_description(&self) -> Option<&'m str>
pub fn long_description(&self) -> Option<&'m str>
LongDescription. Not declared by IFC2X3 or by a performance
history.
Sourcepub fn life_cycle_phase(&self) -> Option<&'m str>
pub fn life_cycle_phase(&self) -> Option<&'m str>
LifeCyclePhase. Declared, and required, only by a performance
history.
Sourcepub fn assignments(&self) -> ControlResult<Vec<ControlAssignment<'m>>>
pub fn assignments(&self) -> ControlResult<Vec<ControlAssignment<'m>>>
Every IfcRelAssignsToControl whose RelatingControl is this
control, in file order.
§Errors
The record refusals of read_control for a relationship that
names this control but does not fit its release. Relationships
naming other controls are not inspected.