Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MoleculeAction/CopyAction.def

    r1a7fd2 re4afb4  
    1111// i.e. there is an integer with variable name Z that can be found in
    1212// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    13 // "undefine" if no parameters are required
    14 #define paramtypes (molecule *) (Vector)
    15 #define paramtokens (MoleculeCopyAction::NAME) ("position")
    16 #define paramreferences (mol) (position)
     13// "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value
     14#define paramtypes (const molecule *)(Vector)
     15#define paramtokens ("copy-molecule")("position")
     16#define paramdescriptions ("molecule to copy")("position in R^3 space")
     17#undef paramdefaults
     18#define paramreferences (mol)(position)
    1719
    1820#define statetypes (molecule *)
     
    2123// some defines for all the names, you may use ACTION, STATE and PARAMS
    2224#define CATEGORY Molecule
     25#define MENUNAME "molecule"
     26#define MENUPOSITION 2
    2327#define ACTIONNAME Copy
    2428#define TOKEN "copy-molecule"
    2529
     30
     31// finally the information stored in the ActionTrait specialization
     32#define DESCRIPTION "copies a molecule with all atoms and bonds"
     33#undef SHORTFORM
Note: See TracChangeset for help on using the changeset viewer.