/* * BondSetDegreeAction.def * * Created on: Oct 01, 2016 * Author: heber */ // all includes and forward declarations necessary for non-integral types below #include "types.hpp" #include #include #include "Bond/BondInfo.hpp" typedef std::vector BondDegrees_t; #include "Parameters/Validators/RangeValidator.hpp" // i.e. there is an integer with variable name Z that can be found in // ValueStorage by the token "Z" -> first column: int, Z, "Z" // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value //#define paramtypes (const element *)(BoxVector) TODO: use a validator #define paramtypes (int) #define paramtokens ("set-bond-degree") #define paramdescriptions ("new bond degree for each bond") #define paramreferences (degree) #define paramdefaults (PARAM_DEFAULT(1)) #define paramvalids \ (RangeValidator(1,10)) #define statetypes (BondDegrees_t) #define statereferences (bonddegrees) // some defines for all the names, you may use ACTION, STATE and PARAMS #define CATEGORY Bond #define MENUNAME "bond" #define MENUPOSITION 3 #define ACTIONNAME SetDegree #define TOKEN "set-bond-degree" // finally the information stored in the ActionTrait specialization #define DESCRIPTION "sets the bond degree for all selected pairs of atoms" #undef SHORTFORM