// =====================================================================
//  $Id: TPrintWarrantyCommand.cc,v 1.2 2004/03/07 10:30:28 goiwai Exp $
//  $Name: CLDAQ-1-14-06 $
//  $Log: TPrintWarrantyCommand.cc,v $
//  Revision 1.2  2004/03/07 10:30:28  goiwai
//  ROOTに組みこむためのおまじないマクロを埋めこみました。
//  全てにおいて完全に動作するわけではありません。
//
//  Revision 1.1  2003/12/08 07:05:25  goiwai
//  著作権や保証の情報を表示します.
//  かっこだけでなくなるべく厳密にGPLに準拠しようと思いまして.
//
// =====================================================================
#include "TPrintWarrantyCommand.hh"
#include "TRunManager.hh"

static const Tstring _name = "warranty";
static const Tstring _desc = "Print a longer warranty notice.";

TPrintWarrantyCommand::TPrintWarrantyCommand( TRunManager* manager )
  : TCommand( manager, _name, _desc )
{;}

TPrintWarrantyCommand::~TPrintWarrantyCommand()
{;}

Tvoid TPrintWarrantyCommand::Execute( const TstringList& arguments )
{
  Tcout << Tendl;
  Tcout << Tproject << " " << Tversion << " - a Class Library for Data AcQuisition" << Tendl;
  Tcout << "Copyright (C) 2000-2004 Go IWAI <goiwai@users.sourceforge.jp>" << Tendl;
  Tcout << Tendl;
  Tcout <<
    // for GPL 2 or later
"    This program is free software; you can redistribute it and/or modify\n"
"    it under the terms of the GNU General Public License as published by\n"
"    the Free Software Foundation; either version 2 of the License , or\n"
"    (at your option) any later version.\n"
"\n"
"    This program is distributed in the hope that it will be useful,\n"
"    but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
"    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n"
"    GNU General Public License for more details.\n"
"\n"
"    You should have received a copy of the GNU General Public License\n"
"    along with this program. If not, write to\n"
"\n"
"       The Free Software Foundation, Inc.\n"
"       59 Temple Place, Suite 330\n"
"       Boston, MA 02111, USA.\n"
        << Tendl;

  return;
}

#ifdef __CLDAQ_ROOT_DLL
    ClassImp(TPrintWarrantyCommand)
#endif
