BESServerUtils.cc

Go to the documentation of this file.
00001 // BESServerUtil.cc
00002 
00003 #include <iostream>
00004 
00005 using std::cout ;
00006 using std::endl ;
00007 
00008 #include "config.h"
00009 #include "BESServerUtils.h"
00010 #include "BESApp.h"
00011 
00012 void
00013 BESServerUtils::show_usage( const string &app_name )
00014 {
00015     cout << app_name
00016          << ": -c <CONFIG> -d <STREAM> -h -p <PORT> -s -u <UNIX_SOCKET> -v"
00017          << endl << endl ;
00018     cout << "-c use back-end server configuration file CONFIG" << endl ;
00019     cout << "-d set debugging to cerr or <filename>" << endl ;
00020     cout << "-h show this help screen and exit" << endl ;
00021     cout << "-p set port to PORT" << endl ;
00022     cout << "-s specifies a secure server using SLL authentication" << endl ;
00023     cout << "-u set unix socket to UNIX_SOCKET" << endl ;
00024     cout << "-v echos version and exit" << endl ;
00025     exit( 0 ) ;
00026 }
00027 
00028 void
00029 BESServerUtils::show_version( const string &app_name )
00030 {
00031     cout << app_name
00032          << ": " << PACKAGE_STRING << endl ;
00033     exit( 0 ) ;
00034 }
00035 

Generated on Wed Aug 29 03:20:59 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.5.2