Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

/home/vlg/develop/gwavmerger/raven/WavInfo-main.cpp

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by assa-genesis
00003 //------------------------------------------------------------------------------
00004 // $Id: WavInfo-main.cpp,v 1.4 2003/02/07 05:15:08 vlg Exp $
00005 //------------------------------------------------------------------------------
00006 //                            WavInfo-main.cpp
00007 //------------------------------------------------------------------------------
00008 //
00009 // Author : Vladislav Grinchenko
00010 // Date   : Sun Dec 16 18:27:08 2001
00011 //
00012 // History:
00013 //
00014 // When        Who  What
00015 // ----------  ---  --------------------------
00016 // 12/16/01    VLG  Created
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 }

Generated on Tue Feb 11 23:05:19 2003 for gwavmerger by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002