Fix WaitForState(string stateName)

This commit is contained in:
Alexey Rybalchenko 2019-07-11 10:35:12 +02:00 committed by Dennis Klein
parent 4af0393c11
commit 418d42b060

View File

@ -492,7 +492,7 @@ class FairMQDevice
fair::mq::State WaitForNextState(); fair::mq::State WaitForNextState();
void WaitForState(fair::mq::State state); void WaitForState(fair::mq::State state);
void WaitForState(const std::string& state) { fair::mq::StateMachine::GetState(state); } void WaitForState(const std::string& state) { WaitForState(fair::mq::StateMachine::GetState(state)); }
void SubscribeToStateChange(const std::string& key, std::function<void(const fair::mq::State)> callback) { fStateMachine.SubscribeToStateChange(key, callback); } void SubscribeToStateChange(const std::string& key, std::function<void(const fair::mq::State)> callback) { fStateMachine.SubscribeToStateChange(key, callback); }
void UnsubscribeFromStateChange(const std::string& key) { fStateMachine.UnsubscribeFromStateChange(key); } void UnsubscribeFromStateChange(const std::string& key) { fStateMachine.UnsubscribeFromStateChange(key); }