00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 static const char help_msg[]=
00021
00022 " \n"
00023 " NAME: \n"
00024 " \n"
00025 " WavInfo - display header information of the sound file \n"
00026 " \n"
00027 " DESCRIPTION: \n"
00028 " \n"
00029 " WavInfo displays header information to the argument sound file. \n"
00030 " \n"
00031 " USAGE: \n"
00032 " \n"
00033 " shell> WavInfo [OPTIONS] sound_file \n"
00034 " \n"
00035 " RETURN: \n"
00036 " 0 if sound_file is a WAV file; 1 if not \n"
00037 " \n"
00038 " OPTIONS: \n"
00039 " \n"
00040 " --silent - Don't report file info to the standard output \n"
00041 " -D, --log-file NAME - Write debug to NAME file (dflt: WavInfo.log) \n"
00042 " -d, --log-stdout - Write debug to standard output \n"
00043 " -z, --log-size NUM - Maximum size debug file can reach (dfl: is 10Mb) \n"
00044 " -m, --mask MASK - Mask (default: ALL = 0x7fffffff) \n"
00045 " -h, --help - Print this messag \n"
00046 " -v, --version - Print version number \n";
00047
00048
00049 #include "WavInfo-main.h"
00050 #include "WavInfo.h"
00051
00052 #ifdef HAVE_CONFIG_H
00053 #include "config.h"
00054 #endif
00055
00056 int
00057 main (int argc, char* argv[])
00058 {
00059 static const char release[] = VERSION;
00060 int patch_level = 0;
00061
00062 WavInfo& server = *WavInfo::getInstance ();
00063
00064 server.set_version (release, patch_level);
00065 server.set_author ("Vladislav Grinchenko");
00066
00067 server.init (&argc, argv, help_msg);
00068
00069 server.initServer ();
00070 server.processServer ();
00071
00072 return server.get_exit_value ();
00073 }