/* * GeneratePotentialsAction.def * * Created on: May 13, 2021 * Author: heber */ // all includes and forward declarations necessary for non-integral types below #include "Parameters/Validators/STLVectorValidator.hpp" #include "Parameters/Validators/Specific/ElementValidator.hpp" #include "Parameters/Validators/Specific/PotentialTypeValidator.hpp" #include #include // 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 (std::vector)(std::vector) #define paramtokens ("fragment-charges")("potential-list") #define paramdescriptions ("charges specifying the fragment")("list of potentials to generate or empty for all") #define paramdefaults (NOPARAM_DEFAULT)(NOPARAM_DEFAULT) #define paramreferences (fragment)(potential_list) #define paramvalids \ (STLVectorValidator< std::vector >(0,99, ElementValidator())) \ (STLVectorValidator< std::vector >(0,99, PotentialTypeValidator())) #undef statetypes #undef statereferences // some defines for all the names, you may use ACTION, STATE and PARAMS #define CATEGORY Potential #define MENUNAME "potential" #define MENUPOSITION 13 #define ACTIONNAME GeneratePotentials #define TOKEN "generate-potentials" // finally the information stored in the ActionTrait specialization #define DESCRIPTION "instantiates all matching TREMOLO potentials for a specified fragment" #undef SHORTFORM