char const* AIStateMachineThreadBase::state_str_impl(state_type run_state) const { switch(run_state) { AI_CASE_RETURN(start_thread); AI_CASE_RETURN(wait_stopped); } return "UNKNOWN STATE"; }
char const* AIFetchInventoryFolder::state_str_impl(state_type run_state) const { switch(run_state) { AI_CASE_RETURN(AIFetchInventoryFolder_checkFolderExists); AI_CASE_RETURN(AIFetchInventoryFolder_fetchDescendents); AI_CASE_RETURN(AIFetchInventoryFolder_folderCompleted); } return "UNKNOWN STATE"; }
char const* AIFilePicker::state_str_impl(state_type run_state) const { switch(run_state) { AI_CASE_RETURN(AIFilePicker_initialize_plugin); AI_CASE_RETURN(AIFilePicker_plugin_running); AI_CASE_RETURN(AIFilePicker_canceled); AI_CASE_RETURN(AIFilePicker_done); } return "UNKNOWN STATE"; }
char const* UpdateItemSM::state_str_impl(state_type run_state) const { switch(run_state) { // A complete listing of hello_world_state_type. AI_CASE_RETURN(UpdateItem_idle); AI_CASE_RETURN(UpdateItem_doit); } llassert(false); return "UNKNOWN STATE"; }
char const* AIStateMachine::event_str(event_type event) { switch(event) { AI_CASE_RETURN(initial_run); AI_CASE_RETURN(schedule_run); AI_CASE_RETURN(normal_run); AI_CASE_RETURN(insert_abort); } llassert(false); return "UNKNOWN EVENT"; }
char const* HelloWorld::state_str_impl(state_type run_state) const { switch(run_state) { // A complete listing of hello_world_state_type. AI_CASE_RETURN(HelloWorld_start); AI_CASE_RETURN(HelloWorld_done); } #if directly_derived_from_AIStateMachine llassert(false); return "UNKNOWN STATE"; #else llassert(run_state < direct_base_type::max_state); return direct_base_type::state_str_impl(run_state); #endif }
char const* AIStateMachine::state_str(base_state_type state) { switch(state) { AI_CASE_RETURN(bs_reset); AI_CASE_RETURN(bs_initialize); AI_CASE_RETURN(bs_multiplex); AI_CASE_RETURN(bs_abort); AI_CASE_RETURN(bs_finish); AI_CASE_RETURN(bs_callback); AI_CASE_RETURN(bs_killed); } llassert(false); return "UNKNOWN BASE STATE"; }
char const* AICurlEasyRequestStateMachine::state_str_impl(state_type run_state) const { switch(run_state) { AI_CASE_RETURN(AICurlEasyRequestStateMachine_addRequest); AI_CASE_RETURN(AICurlEasyRequestStateMachine_waitAdded); AI_CASE_RETURN(AICurlEasyRequestStateMachine_timedOut); AI_CASE_RETURN(AICurlEasyRequestStateMachine_removed); AI_CASE_RETURN(AICurlEasyRequestStateMachine_removed_after_finished); AI_CASE_RETURN(AICurlEasyRequestStateMachine_bad_file_descriptor); } return "UNKNOWN STATE"; }
// Return stringified 'state'. char const* AIStateMachine::state_str(state_type state) { if (state >= min_state && state < max_state) { switch (state) { AI_CASE_RETURN(bs_initialize); AI_CASE_RETURN(bs_run); AI_CASE_RETURN(bs_abort); AI_CASE_RETURN(bs_finish); AI_CASE_RETURN(bs_callback); AI_CASE_RETURN(bs_killed); } } return state_str_impl(state); }