cdappl.cpp

来自「磁盘管理工具,主要管理光盘信息和内容希望大家喜欢」· C++ 代码 · 共 91 行

CPP
91
字号
//$Id: CDAppl.cpp,v 1.16 2006/06/08 01:11:09 markus Rel $//PROJECT     : CDManager//SUBSYSTEM   : Application//REFERENCES  ://TODO        ://BUGS        ://REVISION    : $Revision: 1.16 $//AUTHOR      : Markus Schwab//CREATED     : 22.12.2004//COPYRIGHT   : Copyright (C) 2004 - 2006// This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or// (at your option) any later version.// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.// You should have received a copy of the GNU General Public License// along with this program; if not, write to the Free Software// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.#define DONT_CONVERT#include <cdmgr-cfg.h>#include <glibmm/convert.h>#include <YGP/INIFile.h>#if WITH_MOVIES == 1#  include "Movie.h"#endif#include "CDManager.h"#include "CDAppl.h"const YGP::IVIOApplication::longOptions CDAppl::lo[] = {   { IVIOAPPL_HELP_OPTION },   { "user", 'u' },   { "password", 'p' },   { "file", 'f' },   { "version", 'V' },   { NULL, '\0' } };//-----------------------------------------------------------------------------/// Destructor//-----------------------------------------------------------------------------CDAppl::~CDAppl () {}//-----------------------------------------------------------------------------/// Displays the help//-----------------------------------------------------------------------------void CDAppl::showHelp () const {   std::cout << _("Utility to manage CDs\n\nUsage:") << PACKAGE             << _(" [OPTIONS]\n\n")             << "  -u, --user ....... " << _("[USER] User for database login\n")             << "  -p, --password ... " << _("[PWD] Password for database login\n")             << "  -f, --file ....... " << _("[FILE] Use file as INI file\n")             << "  -V, --version .... " << _("Output version information and exit\n")             << "  -h, -?, --help ... " << _("Displays this help and exit\n\n")             << _("The INI file can have the following entries:\n\n")             <<  ("  [Database]\n"		  "  User=user\n"		  "  Password=pwd\n\n"		  "  [Export]\n"		  "  MovieHead=Movies.head\n"		  "  MovieFoot=Movies.foot\n"		  "  RecordHead=Records.head\n"		  "  RecordFoot=Records.foot\n"		  "  OutputDir=/var/www/cds/\n"#if WITH_MOVIES == 1		  "  \n[Movies]\n"		  "  Language=de\n"#endif);}//-----------------------------------------------------------------------------/// Checks the validity of the passed option/// \param option: Actual option/// \returns \c bool: Status; false: Invalid option/option-value Require :///     option not '\0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?