#include <iostream>
#include <time.h>
{
const state_t st_first{
this,
"first" };
const state_t st_second{
this,
"second" };
const state_t st_third{
this,
"third" };
public :
a_example_t( context_t ctx )
{
st_first.event( &a_example_t::on_first );
st_first.event( &a_example_t::on_finish );
st_second.event( &a_example_t::on_second );
st_third.event( &a_example_t::on_third );
}
{
this >>= st_first;
so_5::send< first >( *this );
so_5::send< second >( *this );
so_5::send< third >( *this );
so_5::send< finish >( *this );
}
private :
void on_first( mhood_t<first> ) {}
void on_second( mhood_t<first> ) {}
void on_third( mhood_t<first> ) {}
void on_finish( mhood_t<finish> )
{
}
};
int main()
{
try
{
} );
},
params.message_delivery_tracer(
params.message_delivery_tracer_filter(
return h && (nullptr == *h);
} ) );
} );
}
catch( const std::exception & ex )
{
std::cerr << "Error: " << ex.what() << std::endl;
return 1;
}
return 0;
}