Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/AtomAction/AddAction.def

    r8bb05e re4afb4  
    1313// i.e. there is an integer with variable name Z that can be found in
    1414// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    15 // "undefine" if no parameters are required
     15// "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value
    1616#define paramtypes (const element *)(BoxVector)
    17 #define paramtokens (ACTION::NAME)("position")
     17#define paramtokens ("add-atom")("domain-position")
     18#define paramdescriptions ("element of new atom")("position within current domain")
    1819#define paramreferences (elemental)(position)
     20#define paramdefaults (NODEFAULT)(NODEFAULT)
    1921
    2022#define statetypes (const atomId_t)
     
    2325// some defines for all the names, you may use ACTION, STATE and PARAMS
    2426#define CATEGORY Atom
     27#define MENUNAME "atom"
     28#define MENUPOSITION 1
    2529#define ACTIONNAME Add
    2630#define TOKEN "add-atom"
     31
     32// finally the information stored in the ActionTrait specialization
     33#define DESCRIPTION "add atom of specified element"
     34#define SHORTFORM "a"
Note: See TracChangeset for help on using the changeset viewer.