HepCmdArgInt


The HepCmdArgInt class is a subclass of the HepCmdArg class.

See also

HepCmdArg, HepCmdArgFloat, HepCmdArgBoolean, HepCmdArgString, HepCmdArgStringList, HepCmdLine,

Declaration

#include "CLHEP/String/CmdArg.h"

class HepCmdArgInt : public HepCmdArg

Public Member Functions

Constructor
HepCmdArgInt(char optchar, const HepString & keyword, const HepString & value, const HepString & description, int defValue = 0)
Constructor
HepCmdArgInt(const HepString & value, const HepString & description)
Constructor
HepCmdArgInt(const HepString & value, const HepString & description, int defValue)
Destructor
virtual ~HepCmdArgInt()
Conversion operator
inline operator int()
Integer cast operator. This is how you get the value out!
=
inline HepCmdArgInt & operator= (int);
Assignment of value.
setValue
virtual int setValue(int argc, char **arg)

Example

CLHEP/test/testCmd.cc


30 September 1997
EVC