PlotCmd.h 1.62 KB
Newer Older
Francois Gygi committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2008 The Regents of the University of California
//
// This file is part of Qbox
//
// Qbox is distributed 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.
// See the file COPYING in the root directory of this distribution
// or <http://www.gnu.org/licenses/>.
//
////////////////////////////////////////////////////////////////////////////////
//
// PlotCmd.h:
//
////////////////////////////////////////////////////////////////////////////////

#ifndef PLOTCMD_H
#define PLOTCMD_H

#include <iostream>
#include <cstdlib>
#include <string>
using namespace std;

#include "UserInterface.h"
#include "Sample.h"

class PlotCmd : public Cmd
{
  public:

  Sample *s;

  PlotCmd(Sample *sample) : s(sample) {};

38 39
  const char *name(void) const { return "plot"; }
  const char *help_msg(void) const
Francois Gygi committed
40 41 42 43
  {
    return
    "\n plot\n\n"
    " syntax: plot filename\n"
44
    "         plot -density [-spin {1|2}] filename\n"
45
    "         plot -vlocal  [-spin {1|2}] filename\n"
46 47
    "         plot -wf <n> [-spin {1|2}] filename\n"
    "         plot -wfs <nmin> <nmax> [-spin {1|2}] filename\n\n"
Francois Gygi committed
48 49
    "   The plot command creates a plot file in xyz or cube format.\n\n"
    "   The default format is xyz, used for plotting atoms only.\n"
50 51
    "   When using the -density option, the charge density is written.\n"
    "   When using the -vlocal option, the local potential is written.\n\n";
Francois Gygi committed
52 53 54 55 56
  }

  int action(int argc, char **argv);
};
#endif