Ignore:
File:
1 edited

Legend:

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

    r1fd675 re4afb4  
    77
    88// all includes and forward declarations necessary for non-integral types below
     9#include "Actions/Values.hpp"
    910#include "LinearAlgebra/Vector.hpp"
    1011
    1112// i.e. there is an integer with variable name Z that can be found in
    1213// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    13 // "undefine" if no parameters are required
    14 #define paramtypes (Vector) (bool)
    15 #define paramtokens (AtomTranslateAction::NAME) ("periodic")
    16 #define paramreferences (x) (periodic)
     14// "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value
     15#define paramtypes (Vector)(bool)
     16#define paramtokens ("translate-atoms")("periodic")
     17#define paramdescriptions ("translation vector")("system is constraint to periodic boundary conditions")
     18#define paramreferences (x)(periodic)
     19#define paramdefaults (NODEFAULT)("0")
    1720
    1821#define statetypes (std::vector<atom*>)
     
    2124// some defines for all the names, you may use ACTION, STATE and PARAMS
    2225#define CATEGORY Atom
     26#define MENUNAME "atom"
     27#define MENUPOSITION 4
    2328#define ACTIONNAME Translate
    2429#define TOKEN "translate-atoms"
    2530
     31
     32// finally the information stored in the ActionTrait specialization
     33#define DESCRIPTION "translate all selected atoms by given vector"
     34#define SHORTFORM "t"
Note: See TracChangeset for help on using the changeset viewer.