Public Members
- Parameter (const QString &nam, const QString &def=QString())
- Parameter (const QString &nam, Map *def)
- Parameter (const Parameter &par)
- virtual ~Parameter ()
- void setDataType (const QString & pref)
- int checkDataType (const QDict <Map> & vars) const
- const QString & name (void) const
- void setName (const QString & nam)
- Map * eval (const QDict <Map> &vars)
- Parameter * copy () const
- void printDebug (const QString &tab=QString()) const
- Map * map (void) const
- QString string (void) const
void setDataType (const QString & pref)
|
Sets the data type we want this parameter to be. We can then
quickly check if this parameter has a correct type using
checkDatatype
Example:
setDataType("Constant");
...
if (!checkDataType(vars)) return;
Generated by: antlarr@terminus on Mon Jun 5 03:54:02 2000, using kdoc 2.0a22. |