📄 cdwriter.cpp
字号:
//$Id: CDWriter.cpp,v 1.25 2007/03/05 19:38:36 markus Rel $//PROJECT : CDManager//SUBSYSTEM : CDWriter//REFERENCES ://TODO ://BUGS ://REVISION : $Revision: 1.25 $//AUTHOR : Markus Schwab//CREATED : 07.01.2005//COPYRIGHT : Copyright (C) 2005 - 2007// 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 <cstring>#include <string>#include <fstream>#include <sstream>#include <iostream>#include <stdexcept>#include <glibmm/ustring.h>#include <glibmm/convert.h>#include <YGP/File.h>#include <YGP/Check.h>#include <YGP/Trace.h>#include <YGP/ADate.h>#include <YGP/ATStamp.h>#include <YGP/Relation.h>#include <YGP/Tokenize.h>#include <YGP/Exception.h>#include "DB.h"#include "Words.h"#include "Genres.h"#include "Writer.h"#include "Language.h"#if WITH_MOVIES == 1# include "Movie.h"# include "Director.h"#endif#if WITH_RECORDS == 1# include "Record.h"# include "Interpret.h"#endif#include "CDWriter.h"#include "Options.meta"const YGP::IVIOApplication::longOptions CDWriter::lo[] = { { IVIOAPPL_HELP_OPTION }, { "version", 'V' },#if WITH_RECORDS == 1 { "recHeader", 'r' }, { "recFooter", 'R' },#endif#if WITH_MOVIES == 1 { "movieHeader", 'm' }, { "movieFooter", 'M' },#endif { "outputDir", 'd' }, { NULL, '\0' } };//-----------------------------------------------------------------------------/// Destructor//-----------------------------------------------------------------------------CDWriter::~CDWriter () { TRACE9 ("CDWriter::~CDWriter ()");}//-----------------------------------------------------------------------------/// Displays the help//-----------------------------------------------------------------------------void CDWriter::showHelp () const { std::cout << _("Utitily to write HTML documents from data received\n\nUsage: ") << name () << _(" [OPTIONS] [LANGUAGE-ID] [MEMORY-ID]\n\n") << " -d, --outputDir ..... " << _("Directory to export data to\n")#if WITH_RECORDS == 1 << " -r, --recHeader ..... " << _("File to use as header for records\n") << " -R, --recFooter ..... " << _("File to use as footer for records\n")#endif#if WITH_MOVIES == 1 << " -m, --movieHeader ... " << _("File to use as header for movies\n") << " -M, --movieFooter ... " << _("File to use as footer for movies\n")#endif << " -V, --version ....... " << _("Output version information and exit\n") << " -h, -?, --help ...... " << _("Displays this help and exit\n\n");}//-----------------------------------------------------------------------------/// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -