// ExtractEventByIndex extracts the event at the given index from the events slice, removing it from the slice, and returns it.
ExtractEventByIndex extracts the event at the given index from the events slice, removing it from the slice, and returns it.
// ExtractEventByIndex extracts the event at the given index from the events slice removing it from the slice and returns it .
func (event_dispatcher *EventDispatcher_struct) ExtractEventByIndex( index uint ) ( return_report error_report.ErrorReport_struct ){
	var temp_event interface{};
	var event Event_struct;
	var get_error_report error_report.ErrorReport_struct;
	var remove_error_report error_report.ErrorReport_struct;
	get_error_report = event_dispatcher.GetEventByIndex(index);
	if( get_error_report.NoError() == true ){
		temp_event = get_error_report.Data["event"]
		event = temp_event.(Event_struct);
		remove_error_report = event_dispatcher.RemoveEventByIndex(index);
		if( remove_error_report.NoError() == true ){
			return_report = error_report.New( 0, map[string]interface{}{ "event": event, "events_slice_length": remove_error_report.Data["events_slice_length"] }, nil );
		} else{
			return_report = error_report.New( ERROR_CODE_SUBORDINATE_FUNCTION_ERROR, map[string]interface{}{ "message": "event_dispatcher.RemoveEventByIndex() returned an error." }, &remove_error_report );
		}
	} else{
		return_report = error_report.New( ERROR_CODE_SUBORDINATE_FUNCTION_ERROR, map[string]interface{}{ "message": "event_dispatcher.GetEventByIndex() returned an error." }, &get_error_report );
	}
	return return_report;
}
func ( event_dispatcher * EventDispatcher_struct ) ExtractEventByIndex ( index uint ) ( return_report error_report . ErrorReport_struct ) { var temp_event interface { } ; var event Event_struct ; var get_error_report error_report . ErrorReport_struct ; var remove_error_report error_report . ErrorReport_struct ; get_error_report = event_dispatcher . GetEventByIndex ( index ) ; if ( get_error_report . NoError ( ) == true ) { temp_event = get_error_report . Data [ " " ] event = temp_event . ( Event_struct ) ; remove_error_report = event_dispatcher . RemoveEventByIndex ( index ) ; if ( remove_error_report . NoError ( ) == true ) { return_report = error_report . New ( 0 , map [ string ] interface { } { " " : event , " " : remove_error_report . Data [ " " ] } , nil ) ; } else { return_report = error_report . New ( ERROR_CODE_SUBORDINATE_FUNCTION_ERROR , map [ string ] interface { } { " " : " " } , & remove_error_report ) ; } } else { return_report = error_report . New ( ERROR_CODE_SUBORDINATE_FUNCTION_ERROR , map [ string ] interface { } { " " : " " } , & get_error_report ) ; } return return_report ; }
ExtractEventByIndex extracts the event at the given index from the events slice, removing it from the slice, and returns it.
ExtractEventByIndex extracts the event at the given index from the events slice removing it from the slice and returns it .
//Variables //Parametres //Function //Return