Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::diag::Condition Class Reference

A class that represents an enable condition for processing an event by DM. More...

#include <condition.h>

Public Member Functions

 Condition (const ara::core::InstanceSpecifier &specifier)
 Constructor. More...
 
ara::core::Result< ConditionTypeGetCondition ()
 Get the current condition status. More...
 
ara::core::Result< void > SetCondition (ConditionType condition)
 Set the current condtion status. More...
 

Detailed Description

A class that represents an enable condition for processing an event by DM.

Constructor & Destructor Documentation

◆ Condition()

ara::diag::Condition::Condition ( const ara::core::InstanceSpecifier specifier)
explicit

Constructor.

Parameters
specifierInstance specifier that owns the condition

Member Function Documentation

◆ GetCondition()

ara::core::Result< ConditionType > ara::diag::Condition::GetCondition ( )

Get the current condition status.

Returns
True result if the condition is enabled, otherwise false

◆ SetCondition()

ara::core::Result< void > ara::diag::Condition::SetCondition ( ConditionType  condition)

Set the current condtion status.

Parameters
conditionCurrent status to be assigned to the condition
Returns
No error will be returned