Skip to content

Commit

Permalink
Implement Operational State Cluster PhaseList attribute (#36350)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
lboue authored and pull[bot] committed Dec 2, 2024
1 parent 9236e69 commit 1160336
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/chef/common/chef-operational-state-delegate-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,15 @@ class OperationalStateDelegate : public GenericOperationalStateDelegateImpl
GenericOperationalState(to_underlying(OperationalStateEnum::kPaused)),
GenericOperationalState(to_underlying(OperationalStateEnum::kError)),
};
const CharSpan opPhaseList[3] = { "pre-soak"_span, "rinse"_span, "spin"_span };

public:
const uint32_t kExampleCountDown = 30;

OperationalStateDelegate()
{
GenericOperationalStateDelegateImpl::mOperationalStateList = Span<const GenericOperationalState>(opStateList);
GenericOperationalStateDelegateImpl::mOperationalPhaseList = Span<const CharSpan>(opPhaseList);
}

/**
Expand Down

0 comments on commit 1160336

Please sign in to comment.