FairRootGroup / FairMQ

C++ Message Queuing Library and Framework
GNU Lesser General Public License v3.0
86 stars 34 forks source link

Provide state "traits" #442

Open dennisklein opened 2 years ago

dennisklein commented 2 years ago

States with auto transitions are sometimes not interesting to the user, it should be possible to filter them (essentially without having to know explicitly which states have an auto transition):

SubscribeToStateChange([](auto state){
  if (HasManualTransition(state)) {
    // ...
  }
});