libsent/src/util/j_printf.c

メッセージテキスト出力とエラー終了 [詳細]

#include <sent/stddefs.h>
#include <sent/tcpip.h>
#include <stdarg.h>

j_printf.cのインクルード依存関係図

ソースコードを見る。

マクロ定義

#define MAX_PRINTF_LEN   4096
 Maximum string length at one printf call

関数

void set_print_func (void(*print)(char *), void(*printerr)(char *), void(*flush)(void))
int j_printf (char *fmt,...)
 Output a text message to standard out.
int j_printerr (char *fmt,...)
 Output a text message to standard error
int j_flushprint ()
 Flush text message
int module_send (int sd, char *fmt,...)
void j_error_register_exitfunc (void(*f)())
void j_error (char *fmt,...)
void j_exit_register_exitfunc (void(*f)())
void j_exit ()

変数

static void(*) j_print_func (char *) = NULL
 Alternative output function replacing standard output
static void(*) j_printerr_func (char *) = NULL
 Alternative output function replacing stndard error
static void(*) j_flush_func (void) = NULL
 Alternative function to flush the output
static char inbuf [MAX_PRINTF_LEN]
 Local work area for text output
static char outbuf [MAX_PRINTF_LEN]
 Local work area for charset conversion
static void(*) error_func () = NULL
 Alternative function to be executed for application error exit
static void(*) exit_func () = NULL
 Alternative function to be executed at application normal exit


説明

メッセージテキスト出力とエラー終了

作者:
Akinobu LEE
日付:
Thu Feb 17 16:02:41 2005
メッセージ出力用の汎用関数の定義です. 認識結果の端末出力やネットワークへの出力といった, Julius の主要な出力はここの関数を使って行われます. また,出力文字コードの変換もここで行います.

Revision
1.3

j_printf.c で定義されています。


関数

void set_print_func ( void(*)(char *)  print,
void(*)(char *)  printerr,
void(*)(void)  flush 
)

Set the alternative output functions instead of normal tty output.

引数:
print [in] function to output string in stdout
printerr [in] function to output string in stderr
flush [in] function to flush the stdout

j_printf.c の 57 行で定義されています。

int j_printf ( char *  fmt,
  ... 
)

Output a text message to standard out.

The output device can be changed by set_print_func().

引数:
fmt [in] format string, like printf.
... [in] variable length argument like printf.
戻り値:
the same as printf, i.e. number of characters printed.

j_printf.c の 76 行で定義されています。

参照元 accept_from()・adin_file_begin()・adin_mic_read()・adin_mic_standby()・adin_sndfile_begin()・adin_stdin_begin()・allocateAudioBufferList()・bt_current_max_word()・callback_list_error()・check_wchmm()・config_file_parse()・ConvInputProc()・detailed_help()・disp_ptree()・do_align()・exec_exclude_vectors()・hmm_check()・lcdset_register_with_category()・list_error()・main_module_loop()・main_recognition_loop()・make_base_phone()・make_ngram_ref()・make_ptree()・mark_exclude_vector()・msock_exec_command()・multigram_activate()・multigram_add()・multigram_build_append()・multigram_deactivate()・multigram_delete()・multigram_exec()・multigram_exec_activate()・multigram_exec_delete()・multigram_read_file()・multigram_setup()・new_select_param_kind()・new_str2phseq()・param_strip_zero()・print_all_basephone_name()・print_all_gram()・print_callback_detail()・print_callback_name()・print_dfa_cp()・print_dfa_info()・print_error_callback()・print_format()・print_hmmdef_info()・print_hmminfo()・print_info()・print_ngram_info()・print_phone_info()・print_setting()・print_voca_info()・print_wchmm_info()・print_wchmm_s()・print_wchmm_s_arc()・print_wchmm_w()・print_winfo_w()・printAudioBuffer()・printStreamInfo()・put_all_in_stack()・put_atom()・put_hmm_arc()・put_hmm_outprob()・put_htk_dens()・put_htk_hmm()・put_htk_state()・put_htk_trans()・put_htk_var()・put_hypo_cmscore()・put_hypo_phoneme()・put_hypo_wname()・put_hypo_woutput()・put_logical_hmm()・put_para()・put_param_head()・put_param_info()・put_vec()・put_voca()・rd_dens()・rd_state()・rd_tmix()・rd_trans()・rd_var()・RealTimeCMNUpdate()・RealTimeInit()・RealTimeParam()・scan_word()・select_param_vmark()・test_expand_triphone()・test_interword_triphone()・ttyout_gmm()・ttyout_pass1_current()・ttyout_pass1_end()・ttyout_pass1_final()・ttyout_pass2()・ttyout_pass2_end()・ttyout_pass2_failed()・ttyout_rejected()・wb_ok()・wchmm_check_interactive()・wchmm_fbs()・wt_dens()・wt_trans()・wt_var().

int j_printerr ( char *  fmt,
  ... 
)

Output a text message to standard error

The output device can be changed by set_print_func().

引数:
fmt [in] format string, like printf.
... [in] variable length argument like printf.
戻り値:
the same as printf, i.e. number of characters printed.

j_printf.c の 110 行で定義されています。

参照元 add_bigram_rl()・add_unigram()・adin_cut()・adin_cut_callback_store_buffer()・adin_file_begin()・adin_file_open()・adin_file_standby()・adin_mic_read()・adin_mic_standby()・adin_mic_start()・adin_mic_stop()・adin_netaudio_read()・adin_netaudio_start()・adin_setup_func()・adin_sndfile_begin()・adin_sndfile_end()・adin_sndfile_standby()・adin_stdin_begin()・adin_tcpip_begin()・adin_tcpip_end()・adin_tcpip_read()・adin_tcpip_send_pause()・adin_tcpip_send_resume()・adin_tcpip_send_terminate()・adin_tcpip_standby()・adin_thread_create()・adin_thread_process()・allocateAudioBufferList()・args_needed_exit()・build_state2gs()・build_wchmm()・build_wchmm2()・charconv_iconv_setup()・charconv_libjcode_setup()・charconv_win32()・charconv_win32_setup()・check_format()・check_header()・check_hmm_limit()・check_hmm_options()・check_specs()・CMN_load_from_file()・CMN_save_to_file()・codebook_add()・config_file_parse()・configure_param()・ConvInputProc()・decode_output_selection()・dens_add()・dfa_symbol_lookup()・error_missing_left_triphone()・error_missing_right_triphone()・final_fusion()・finalize_1st_pass()・get_back_trellis_proceed()・get_dens_data()・get_line()・get_state_data()・get_trans_data()・get_var_data()・gms_init()・guess_basenum()・guess_if_cd_hmm()・hmm_add_physical_to_logical()・hmm_add_pseudo_phones()・htk_config_file_parse()・htk_hmm_set_pause_model()・htk_hmmdata_add()・init_dfa()・init_hmminfo()・init_ngram_arpa()・init_ngram_bin()・init_voca()・initialize_dict()・initialize_GMM()・initialize_GSHMM()・initialize_HMM()・m_errexit()・main_recognition_loop()・make_connection()・make_connection_unix()・make_costbl_hamming()・make_costbl_makemfcc()・make_dfa_voca_ref()・make_fft_table()・make_log_tbl()・make_sintbl_wcep()・make_voca_ref()・msock_exec_command()・multigram_add_prefix_filelist()・mybmalloc_set_param()・NA_standby()・new_param_check_and_adjust()・new_SS_load_from_file()・new_str2wordseq()・new_wav2mfcc()・ngram_read_arpa()・ngram_read_bin()・opt_parse()・param_qualstr2code()・put_voca_err()・rd()・rd_header()・rdhmmdef()・rdhmmlist()・read_binhmm()・read_global_opt()・read_param()・record_sample_close()・select_param_vmark()・select_result_output()・set_and_check_total_info()・set_bigram()・set_unigram()・set_unknown_id()・setup_wav()・state_add()・state_read()・tmix_create_codebook_index()・trans_add()・triphone_callback_normal()・triphone_callback_right()・ttyout_pass1_begin()・ttyout_status_recready()・usage()・var_add()・var_read()・viterbi_segment()・voca_load_htkdict_line()・voca_lookup_wid()・voca_mono2tri()・wchmm_add_word()・wchmm_index_ststart()・write_header()・wrwav_close()・wt()・xrun_recovery().

int j_flushprint (  ) 

Flush text message

The output device can be changed by set_print_func().

戻り値:
the same as fflush, i.e. 0 on success, other if failed.

j_printf.c の 141 行で定義されています。

参照元 main_recognition_loop()・ttyout_pass1_current()・ttyout_pass2()・ttyout_pass2_end().

int module_send ( int  sd,
char *  fmt,
  ... 
)

Generic function to send a formatted message to client module.

引数:
sd [in] socket descriptor
fmt [in] format string, like printf.
... [in] variable length argument like printf.
戻り値:
the same as printf, i.e. number of characters printed.

j_printf.c の 162 行で定義されています。

参照元 m_errexit()・m_exit()・msock_exec_command()・msock_gmm()・msock_pass1_current()・msock_pass1_final()・msock_pass2()・msock_pass2_begin()・msock_pass2_end()・msock_pass2_failed()・msock_rejected()・msock_status_param()・msock_status_process_offline()・msock_status_process_online()・msock_status_recend()・msock_status_recready()・msock_status_recstart()・msock_word_out1()・msock_word_out2()・multigram_activate()・send_gram_info().

void j_error_register_exitfunc ( void(*)()  f  ) 

Register a function that should be executed just before application error exit.

引数:
f [in] pointer to the function

j_printf.c の 200 行で定義されています。

参照元 system_bootup().

void j_error ( char *  fmt,
  ... 
)

Output error message and exit the program.

引数:
fmt [in] format string, like printf.
... [in] variable length argument like printf.

j_printf.c の 212 行で定義されています。

参照元 accept_from()・add_unigram()・adin_initialize()・adin_mic_standby()・adin_tcpip_end()・adin_thread_create()・aptree_remove_entry()・aptree_search_data()・build_wchmm()・build_wchmm2()・charconv_iconv()・check_header()・check_specs()・checkdir()・checkpath()・config_file_parse()・cpair_append()・dfa_pause_word_append()・extract_cpair()・final_fusion()・first_token()・getl_fd()・getl_sd()・hmm_add_pseudo_phones_sub()・htk_config_file_parse()・init_dfa()・init_hmminfo()・init_ngram_arpa()・init_ngram_bin()・InitFBank()・initialize_dict()・initialize_HMM()・lookup_word()・main()・main_module_loop()・main_recognition_loop()・make_record_filename()・mark_exclude_vector()・mark_word_edge()・mfcfilelist_nextfile()・msock_exec_command()・multigram_read_file()・mycalloc()・mymalloc()・myrealloc()・new_wav2mfcc()・newnode()・next_token()・ngram_compact_bigram_context()・ngram_read_arpa()・ngram_read_bin()・opt_parse()・opt_terminate()・outprob_cd()・outprob_style()・print_info()・ptree_search_data()・rd_para()・rderr()・rdhmmdef()・rdhmmlist()・rdn()・rdn_str()・RealTimeInit()・RealTimePipeLinePrepare()・record_sample_close()・record_sample_open()・record_sample_write()・regist_cdset()・rest_token()・scan_word()・set_bigram()・set_unigram()・setup_result_msock()・totalstatelen()・trace_backptr()・wchmm_add_word()・wchmm_link_hmm()・WeightCepstrum()・winfo_expand()・WMP_calc_init()・WMP_init()・wrt()・wt_data()・wt_dens()・wt_state()・wt_tmix().

void j_exit_register_exitfunc ( void(*)()  f  ) 

Register a function that should be executed just before application ends.

引数:
f [in] pointer to the function

j_printf.c の 235 行で定義されています。

参照元 system_bootup().

void j_exit (  ) 

Exit the program.

j_printf.c の 245 行で定義されています。

参照元 detailed_help()・gmm_init()・main_recognition_loop()・msock_exec_command()・opt_parse()・usage().


Julianに対してTue Dec 26 12:58:06 2006に生成されました。  doxygen 1.5.0