Commit 29da96ea by Francois Gygi

Removed deprecated use of conversion from char* to const char* in headers.


git-svn-id: http://qboxcode.org/svn/qb/trunk@1309 cba15fb0-1239-40c8-b417-11db7ca47a34
parent fc491af8
......@@ -33,8 +33,8 @@ class AngleCmd : public Cmd
AngleCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "angle"; }
char *help_msg(void) const
const char *name(void) const { return "angle"; }
const char *help_msg(void) const
{
return
"\n angle\n\n"
......
......@@ -34,8 +34,8 @@ class AtomCmd : public Cmd
AtomCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "atom"; }
char *help_msg(void) const
const char *name(void) const { return "atom"; }
const char *help_msg(void) const
{
return
"\n atom\n\n"
......
......@@ -33,7 +33,7 @@ class AtomsDyn : public Var
public:
char *name ( void ) const { return "atoms_dyn"; };
const char *name ( void ) const { return "atoms_dyn"; };
int set ( int argc, char **argv )
{
......
......@@ -35,8 +35,8 @@ class BisectionCmd : public Cmd
BisectionCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "bisection"; }
char *help_msg(void) const
const char *name(void) const { return "bisection"; }
const char *help_msg(void) const
{
return
"\n bisection\n\n"
......
......@@ -32,7 +32,7 @@ class BlHF : public Var
public:
char *name ( void ) const { return "blHF"; };
const char *name ( void ) const { return "blHF"; };
int set ( int argc, char **argv )
{
......
......@@ -32,7 +32,7 @@ class BtHF : public Var
public:
char *name ( void ) const { return "btHF"; };
const char *name ( void ) const { return "btHF"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class Cell : public Var
public:
char *name ( void ) const { return "cell"; };
const char *name ( void ) const { return "cell"; };
int set ( int argc, char **argv )
{
......
......@@ -34,7 +34,7 @@ class CellDyn : public Var
public:
char *name ( void ) const { return "cell_dyn"; };
const char *name ( void ) const { return "cell_dyn"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class CellLock : public Var
public:
char *name ( void ) const { return "cell_lock"; };
const char *name ( void ) const { return "cell_lock"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class CellMass : public Var
public:
char *name ( void ) const { return "cell_mass"; };
const char *name ( void ) const { return "cell_mass"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class ChargeMixCoeff : public Var
public:
char *name ( void ) const { return "charge_mix_coeff"; };
const char *name ( void ) const { return "charge_mix_coeff"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class ChargeMixNdim : public Var
public:
char *name ( void ) const { return "charge_mix_ndim"; };
const char *name ( void ) const { return "charge_mix_ndim"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class ChargeMixRcut : public Var
public:
char *name ( void ) const { return "charge_mix_rcut"; };
const char *name ( void ) const { return "charge_mix_rcut"; };
int set ( int argc, char **argv )
{
......
......@@ -37,9 +37,8 @@ class ComputeMLWFCmd : public Cmd
ComputeMLWFCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "compute_mlwf"; }
char *help_msg(void) const
const char *name(void) const { return "compute_mlwf"; }
const char *help_msg(void) const
{
return
"\n compute_mlwf\n\n"
......
......@@ -31,8 +31,8 @@ class ConstraintCmd : public Cmd
ConstraintCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "constraint"; }
char *help_msg(void) const
const char *name(void) const { return "constraint"; }
const char *help_msg(void) const
{
return
"\n constraint\n\n"
......
......@@ -33,7 +33,7 @@ class Debug : public Var
public:
char *name ( void ) const { return "debug"; };
const char *name ( void ) const { return "debug"; };
int set ( int argc, char **argv )
{
......
......@@ -33,8 +33,8 @@ class DistanceCmd : public Cmd
DistanceCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "distance"; }
char *help_msg(void) const
const char *name(void) const { return "distance"; }
const char *help_msg(void) const
{
return
"\n distance\n\n"
......
......@@ -32,7 +32,7 @@ class Dspin : public Var
public:
char *name ( void ) const { return "delta_spin"; };
const char *name ( void ) const { return "delta_spin"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class Dt : public Var
public:
char *name ( void ) const { return "dt"; };
const char *name ( void ) const { return "dt"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class Ecut : public Var
public:
char *name ( void ) const { return "ecut"; };
const char *name ( void ) const { return "ecut"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class Ecutprec : public Var
public:
char *name ( void ) const { return "ecutprec"; };
const char *name ( void ) const { return "ecutprec"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class Ecuts : public Var
public:
char *name ( void ) const { return "ecuts"; };
const char *name ( void ) const { return "ecuts"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class Emass : public Var
public:
char *name ( void ) const { return "emass"; };
const char *name ( void ) const { return "emass"; };
int set ( int argc, char **argv )
{
......
......@@ -31,8 +31,8 @@ class ExtForceCmd : public Cmd
ExtForceCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "extforce"; }
char *help_msg(void) const
const char *name(void) const { return "extforce"; }
const char *help_msg(void) const
{
return
"\n extforce\n\n"
......
......@@ -33,7 +33,7 @@ class ExtStress : public Var
public:
char *name ( void ) const { return "ext_stress"; };
const char *name ( void ) const { return "ext_stress"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class FermiTemp : public Var
public:
char *name ( void ) const { return "fermi_temp"; };
const char *name ( void ) const { return "fermi_temp"; };
int set ( int argc, char **argv )
{
......
......@@ -36,8 +36,8 @@ class FoldInWsCmd : public Cmd
FoldInWsCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "fold_in_ws"; }
char *help_msg(void) const
const char *name(void) const { return "fold_in_ws"; }
const char *help_msg(void) const
{
return
"\n fold_in_ws\n\n"
......
......@@ -36,9 +36,8 @@ class HelpCmd : public Cmd
HelpCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "help"; }
char *help_msg(void) const
const char *name(void) const { return "help"; }
const char *help_msg(void) const
{
return
"\n help\n\n"
......
......@@ -32,8 +32,8 @@ class KpointCmd : public Cmd
KpointCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "kpoint"; }
char *help_msg(void) const
const char *name(void) const { return "kpoint"; }
const char *help_msg(void) const
{
return
"\n kpoint\n\n"
......
......@@ -33,8 +33,8 @@ class ListAtomsCmd : public Cmd
ListAtomsCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "list_atoms"; }
char *help_msg(void) const
const char *name(void) const { return "list_atoms"; }
const char *help_msg(void) const
{
return
"\n list_atoms\n\n"
......
......@@ -33,8 +33,8 @@ class ListSpeciesCmd : public Cmd
ListSpeciesCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "list_species"; }
char *help_msg(void) const
const char *name(void) const { return "list_species"; }
const char *help_msg(void) const
{
return
"\n list_species\n\n"
......
......@@ -36,9 +36,8 @@ class LoadCmd : public Cmd
LoadCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "load"; }
char *help_msg(void) const
const char *name(void) const { return "load"; }
const char *help_msg(void) const
{
return
"\n load\n\n"
......
......@@ -36,8 +36,8 @@ class MoveCmd : public Cmd
MoveCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "move"; }
char *help_msg(void) const
const char *name(void) const { return "move"; }
const char *help_msg(void) const
{
return
"\n move\n\n"
......
......@@ -33,7 +33,7 @@ class Nempty : public Var
public:
char *name ( void ) const { return "nempty"; };
const char *name ( void ) const { return "nempty"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class NetCharge : public Var
public:
char *name ( void ) const { return "net_charge"; };
const char *name ( void ) const { return "net_charge"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class Nrowmax : public Var
public:
char *name ( void ) const { return "nrowmax"; };
const char *name ( void ) const { return "nrowmax"; };
int set ( int argc, char **argv )
{
......
......@@ -32,7 +32,7 @@ class Nspin : public Var
public:
char *name ( void ) const { return "nspin"; };
const char *name ( void ) const { return "nspin"; };
int set ( int argc, char **argv )
{
......
......@@ -36,9 +36,8 @@ class PlotCmd : public Cmd
PlotCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "plot"; }
char *help_msg(void) const
const char *name(void) const { return "plot"; }
const char *help_msg(void) const
{
return
"\n plot\n\n"
......
......@@ -35,9 +35,8 @@ class PrintCmd : public Cmd
PrintCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "print"; }
char *help_msg(void) const
const char *name(void) const { return "print"; }
const char *help_msg(void) const
{
return
"\n print\n\n"
......
......@@ -36,9 +36,8 @@ class QuitCmd : public Cmd
QuitCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "quit"; }
char *help_msg(void) const
const char *name(void) const { return "quit"; }
const char *help_msg(void) const
{
return
"\n quit\n\n"
......
......@@ -32,8 +32,8 @@ class RandomizeRCmd : public Cmd
RandomizeRCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "randomize_r"; }
char *help_msg(void) const
const char *name(void) const { return "randomize_r"; }
const char *help_msg(void) const
{
return
"\n randomize_r\n\n"
......
......@@ -32,8 +32,8 @@ class RandomizeVCmd : public Cmd
RandomizeVCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "randomize_v"; }
char *help_msg(void) const
const char *name(void) const { return "randomize_v"; }
const char *help_msg(void) const
{
return
"\n randomize_v\n\n"
......
......@@ -33,8 +33,8 @@ class RandomizeWfCmd : public Cmd
RandomizeWfCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "randomize_wf"; }
char *help_msg(void) const
const char *name(void) const { return "randomize_wf"; }
const char *help_msg(void) const
{
return
"\n randomize_wf\n\n"
......
......@@ -33,7 +33,7 @@ class RefCell : public Var
public:
char *name ( void ) const { return "ref_cell"; };
const char *name ( void ) const { return "ref_cell"; };
int set ( int argc, char **argv )
{
......
......@@ -37,8 +37,8 @@ class RescaleVCmd : public Cmd
RescaleVCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "rescale_v"; }
char *help_msg(void) const
const char *name(void) const { return "rescale_v"; }
const char *help_msg(void) const
{
return
"\n rescale_v\n\n"
......
......@@ -36,8 +36,8 @@ class ResetVcmCmd : public Cmd
ResetVcmCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "reset_vcm"; }
char *help_msg(void) const
const char *name(void) const { return "reset_vcm"; }
const char *help_msg(void) const
{
return
"\n reset_vcm\n\n"
......
......@@ -35,9 +35,8 @@ class RseedCmd : public Cmd
RseedCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "rseed"; }
char *help_msg(void) const
const char *name(void) const { return "rseed"; }
const char *help_msg(void) const
{
return
"\n rseed\n\n"
......
......@@ -34,8 +34,8 @@ class RunCmd : public Cmd
RunCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "run"; }
char *help_msg(void) const
const char *name(void) const { return "run"; }
const char *help_msg(void) const
{
return
"\n run\n\n"
......
......@@ -36,9 +36,8 @@ class SaveCmd : public Cmd
SaveCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "save"; }
char *help_msg(void) const
const char *name(void) const { return "save"; }
const char *help_msg(void) const
{
return
"\n save\n\n"
......
......@@ -36,9 +36,8 @@ class SetCmd : public Cmd
SetCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "set"; }
char *help_msg(void) const
const char *name(void) const { return "set"; }
const char *help_msg(void) const
{
return
"\n set\n\n"
......
......@@ -36,9 +36,8 @@ class SpeciesCmd : public Cmd
SpeciesCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "species"; }
char *help_msg(void) const
const char *name(void) const { return "species"; }
const char *help_msg(void) const
{
return
"\n species\n\n"
......
......@@ -36,8 +36,8 @@ class StatusCmd : public Cmd
StatusCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "status"; }
char *help_msg(void) const
const char *name(void) const { return "status"; }
const char *help_msg(void) const
{
return
"\n run\n\n"
......
......@@ -36,8 +36,8 @@ class StrainCmd : public Cmd
StrainCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "strain"; }
char *help_msg(void) const
const char *name(void) const { return "strain"; }
const char *help_msg(void) const
{
return
"\n strain\n\n"
......
......@@ -33,7 +33,7 @@ class Stress : public Var
public:
char *name ( void ) const { return "stress"; };
const char *name ( void ) const { return "stress"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class ThTemp : public Var
public:
char *name ( void ) const { return "th_temp"; };
const char *name ( void ) const { return "th_temp"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class ThTime : public Var
public:
char *name ( void ) const { return "th_time"; };
const char *name ( void ) const { return "th_time"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class ThWidth : public Var
public:
char *name ( void ) const { return "th_width"; };
const char *name ( void ) const { return "th_width"; };
int set ( int argc, char **argv )
{
......
......@@ -33,7 +33,7 @@ class Thermostat : public Var
public:
char *name ( void ) const { return "thermostat"; };
const char *name ( void ) const { return "thermostat"; };
int set ( int argc, char **argv )
{
......
......@@ -33,8 +33,8 @@ class TorsionCmd : public Cmd
TorsionCmd(Sample *sample) : s(sample) {};
char *name(void) const { return "torsion"; }
char *help_msg(void) const
const char *name(void) const { return "torsion"; }
const char *help_msg(void) const
{
return
"\n torsion\n\n"
......
......@@ -33,8 +33,8 @@ class Cmd
{
public:
UserInterface *ui;
virtual char *name(void) const = 0;
virtual char *help_msg(void) const = 0;
virtual const char *name(void) const = 0;
virtual const char *help_msg(void) const = 0;
virtual int action(int argc, char **argv) = 0;
virtual ~Cmd(void) {}
};
......@@ -43,7 +43,7 @@ class Var
{
public:
UserInterface *ui;
virtual char *name ( void ) const = 0;
virtual const char *name ( void ) const = 0;
virtual int set ( int argc, char **argv ) = 0;
virtual std::string print ( void ) const = 0;
virtual ~Var(void) {}
......@@ -68,7 +68,7 @@ class UserInterface
cmdlist.push_back( newcmd );
};
Cmd *findCmd(char *cmdname)
Cmd *findCmd(const char *cmdname)
{
std::list<Cmd*>::iterator cmd;
for ( cmd = cmdlist.begin();
......@@ -91,7 +91,7 @@ class UserInterface
varlist.push_back( newvar );
};
Var *findVar(char *varname)
Var *findVar(const char *varname)
{
std::list<Var*>::iterator var;
for ( var = varlist.begin();
......
......@@ -33,7 +33,7 @@ class WfDiag : public Var
public:
char *name ( void ) const { return "wf_diag"; };
const char *name ( void ) const { return "wf_diag"; };
int set ( int argc, char **argv )
{
......
......@@ -35,7 +35,7 @@ class WfDyn : public Var
public:
char *name ( void ) const { return "wf_dyn"; };
const char *name ( void ) const { return "wf_dyn"; };
int set ( int argc, char **argv )
{
......
......@@ -32,7 +32,7 @@ class Xc : public Var
public:
char *name ( void ) const { return "xc"; };
const char *name ( void ) const { return "xc"; };
int set ( int argc, char **argv )
{
......