|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
36 #ifndef HDMI_CCEC_OSAL_CONDITION_HPP_
37 #define HDMI_CCEC_OSAL_CONDITION_HPP_
41 CCEC_OSAL_BEGIN_NAMESPACE
73 Condition(
bool initial) : cond(initial) {this->initial = initial;};
93 virtual void set(
void) {cond =
true;};
103 virtual bool isSet(
void) {
return cond;};
113 virtual void reset(
void) {cond = initial;};
119 CCEC_OSAL_END_NAMESPACE
virtual bool isSet(void)
Check the state of the object. Returns the state of the object, which will be either true/false.
virtual void set(void)
Set the state of the object. Sets the state of the object, which will be either true/false.
~Condition()
Destructor. Destroys the Condition object.
virtual void reset(void)
Resets the state of the object. Reset the state of object to default, which is set while creating the...
Condition(bool initial)
Constructor. Creates an Condition object with state set to given parameter.
Condition(void)
Constructor. Creates an Condition object with state set to false.