Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

mparameter.h File Reference

More...

#include <magic/mstring.h>
#include <magic/mmap.h>

Go to the source code of this file.

Compounds

class  BoolParameter
class  DoubleParameter
class  DynParameter
 Dynamic field (or object) type parameter. More...

class  IntParameter
class  IParameterized
 Interface for dynamically parameterizable objects. More...

class  StringParameter

Defines

#define INITPARAMS(mapname, initcode)


Detailed Description

Definition in file mparameter.h.


Define Documentation

#define INITPARAMS mapname,
initcode   
 

Value:

try { const_cast<StringMap&>(mapname).failByThrow(); initcode \
    } catch (Exception e) {\
        String errorstr = e.what();\
        errorstr += "\nInitialization parameter missing. Parameters are:\n";\
        Array<DynParameter>* pars = parameters ();\
        for (int i=0; i<pars->size(); i++)\
            errorstr += (*pars)[i].name () + " ";\
        errorstr += '\n';\
        throw Exception (errorstr);\
    }
The INITPARAMS macro handles and prints errors in IParameterized::init() function.

Definition at line 170 of file mparameter.h.


Generated on Thu Feb 10 20:06:43 2005 for LibMagiC by doxygen1.2.18