Skip to content

Commit 1ba5de6

Browse files
authored
Implement Operational State Cluster PhaseList attribute (#36350)
* Update chef-operational-state-delegate-impl.h opPhase * Update chef-operational-state-delegate-impl.h Implement mOperationalPhaseList * Restyle * Update chef-operational-state-delegate-impl.h Use CharSpan * Update chef-operational-state-delegate-impl.h * Clean
1 parent 7cb6510 commit 1ba5de6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/chef/common/chef-operational-state-delegate-impl.h

+2
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,15 @@ class OperationalStateDelegate : public GenericOperationalStateDelegateImpl
110110
GenericOperationalState(to_underlying(OperationalStateEnum::kPaused)),
111111
GenericOperationalState(to_underlying(OperationalStateEnum::kError)),
112112
};
113+
const CharSpan opPhaseList[3] = { "pre-soak"_span, "rinse"_span, "spin"_span };
113114

114115
public:
115116
const uint32_t kExampleCountDown = 30;
116117

117118
OperationalStateDelegate()
118119
{
119120
GenericOperationalStateDelegateImpl::mOperationalStateList = Span<const GenericOperationalState>(opStateList);
121+
GenericOperationalStateDelegateImpl::mOperationalPhaseList = Span<const CharSpan>(opPhaseList);
120122
}
121123

122124
/**

0 commit comments

Comments
 (0)