source: src/Actions/AtomAction/AddAction.def@ 91c409

Candidate_v1.7.0 stable
Last change on this file since 91c409 was 399c69, checked in by Frederik Heber <frederik.heber@…>, 20 months ago

Rewrote AddAction to use UndoRedoHelpers.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 * AddAction.def
3 *
4 * Created on: Aug 26, 2010
5 * Author: heber
6 */
7
8// all includes and forward declarations necessary for non-integral types below
9#include "LinearAlgebra/Vector.hpp"
10#include "World.hpp"
11class element;
12#include <map>
13#include <vector>
14typedef std::map< moleculeId_t, std::vector<AtomicInfo> > WalkersInMolecule_t;
15
16#include "Parameters/Validators/Specific/BoxVectorValidator.hpp"
17#include "Parameters/Validators/Specific/ElementValidator.hpp"
18
19// i.e. there is an integer with variable name Z that can be found in
20// ValueStorage by the token "Z" -> first column: int, Z, "Z"
21// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
22//#define paramtypes (const element *)(BoxVector) TODO: use a validator
23#define paramtypes (const element *)(Vector)
24#define paramtokens ("add-atom")("domain-position")
25#define paramdescriptions ("element of new atom")("position within current domain")
26#define paramreferences (elemental)(position)
27#define paramdefaults (NOPARAM_DEFAULT)(NOPARAM_DEFAULT)
28#define paramvalids \
29(ElementValidator()) \
30(BoxVectorValidator())
31
32#define statetypes (WalkersInMolecule_t)
33#define statereferences (WalkersInMolecule)
34
35// some defines for all the names, you may use ACTION, STATE and PARAMS
36#define CATEGORY Atom
37#define MENUNAME "atom"
38#define MENUPOSITION 1
39#define ACTIONNAME Add
40#define TOKEN "add-atom"
41
42// finally the information stored in the ActionTrait specialization
43#define DESCRIPTION "add atom of specified element"
44#define SHORTFORM "a"
Note: See TracBrowser for help on using the repository browser.